#include "llvm/ExecutionEngine/Orc/ReOptimizeLayer.h" #include "llvm/ExecutionEngine/Orc/Mangling.h" usingnamespacellvm; usingnamespaceorc; bool ReOptimizeLayer::ReOptMaterializationUnitState::tryStartReoptimize() { … } void ReOptimizeLayer::ReOptMaterializationUnitState::reoptimizeSucceeded() { … } void ReOptimizeLayer::ReOptMaterializationUnitState::reoptimizeFailed() { … } Error ReOptimizeLayer::reigsterRuntimeFunctions(JITDylib &PlatformJD) { … } void ReOptimizeLayer::emit(std::unique_ptr<MaterializationResponsibility> R, ThreadSafeModule TSM) { … } Error ReOptimizeLayer::reoptimizeIfCallFrequent(ReOptimizeLayer &Parent, ReOptMaterializationUnitID MUID, unsigned CurVersion, ThreadSafeModule &TSM) { … } Expected<SymbolMap> ReOptimizeLayer::emitMUImplSymbols(ReOptMaterializationUnitState &MUState, uint32_t Version, JITDylib &JD, ThreadSafeModule TSM) { … } void ReOptimizeLayer::rt_reoptimize(SendErrorFn SendResult, ReOptMaterializationUnitID MUID, uint32_t CurVersion) { … } Expected<Constant *> ReOptimizeLayer::createReoptimizeArgBuffer( Module &M, ReOptMaterializationUnitID MUID, uint32_t CurVersion) { … } void ReOptimizeLayer::createReoptimizeCall(Module &M, Instruction &IP, GlobalVariable *ArgBuffer) { … } ReOptimizeLayer::ReOptMaterializationUnitState & ReOptimizeLayer::createMaterializationUnitState(const ThreadSafeModule &TSM) { … } ReOptimizeLayer::ReOptMaterializationUnitState & ReOptimizeLayer::getMaterializationUnitState(ReOptMaterializationUnitID MUID) { … } void ReOptimizeLayer::registerMaterializationUnitResource( ResourceKey Key, ReOptMaterializationUnitState &State) { … } Error ReOptimizeLayer::handleRemoveResources(JITDylib &JD, ResourceKey K) { … } void ReOptimizeLayer::handleTransferResources(JITDylib &JD, ResourceKey DstK, ResourceKey SrcK) { … }