Home
last modified time | relevance | path

Searched refs:TSM (Results 1 – 25 of 64) sorted by relevance

123

/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/
DLayer.cpp21 Error IRLayer::add(JITDylib &JD, ThreadSafeModule TSM, VModuleKey K) { in add() argument
23 *this, *getManglingOptions(), std::move(TSM), std::move(K))); in add()
28 ThreadSafeModule TSM, VModuleKey K) in IRMaterializationUnit() argument
29 : MaterializationUnit(SymbolFlagsMap(), std::move(K)), TSM(std::move(TSM)) { in IRMaterializationUnit()
31 assert(this->TSM && "Module must not be null"); in IRMaterializationUnit()
33 MangleAndInterner Mangle(ES, this->TSM.getModuleUnlocked()->getDataLayout()); in IRMaterializationUnit()
34 this->TSM.withModuleDo([&](Module &M) { in IRMaterializationUnit()
79 ThreadSafeModule TSM, VModuleKey K, SymbolFlagsMap SymbolFlags, in IRMaterializationUnit() argument
82 TSM(std::move(TSM)), SymbolToDefinition(std::move(SymbolToDefinition)) {} in IRMaterializationUnit()
85 if (TSM) in getName()
[all …]
DCompileOnDemandLayer.cpp16 static ThreadSafeModule extractSubModule(ThreadSafeModule &TSM, in extractSubModule() argument
57 auto NewTSM = cloneToNewContext(TSM, ShouldExtract, DeleteExtractedDefs); in extractSubModule()
72 ThreadSafeModule TSM, VModuleKey K, in PartitioningIRMaterializationUnit() argument
74 : IRMaterializationUnit(ES, MO, std::move(TSM), std::move(K)), in PartitioningIRMaterializationUnit()
78 ThreadSafeModule TSM, SymbolFlagsMap SymbolFlags, in PartitioningIRMaterializationUnit() argument
81 : IRMaterializationUnit(std::move(TSM), std::move(K), in PartitioningIRMaterializationUnit()
88 Parent.emitPartition(std::move(R), std::move(TSM), in materialize()
128 ThreadSafeModule TSM) { in emit() argument
129 assert(TSM && "Null module"); in emit()
139 TSM.withModuleDo([&](Module &M) { in emit()
[all …]
DIRCompileLayer.cpp29 ThreadSafeModule TSM) { in emit() argument
30 assert(TSM && "Module must not be null"); in emit()
32 if (auto Obj = TSM.withModuleDo(*Compile)) { in emit()
36 NotifyCompiled(R.getVModuleKey(), std::move(TSM)); in emit()
38 TSM = ThreadSafeModule(); in emit()
DSpeculation.cpp62 ThreadSafeModule TSM) { in emit() argument
64 assert(TSM && "Speculation Layer received Null Module ?"); in emit()
65 assert(TSM.getContext().getContext() != nullptr && in emit()
69 TSM.withModuleDo([this, &R](Module &M) { in emit()
139 assert(!TSM.withModuleDo([](const Module &M) { return verifyModule(M); }) && in emit()
142 NextLayer.emit(std::move(R), std::move(TSM)); in emit()
DLLJIT.cpp63 Error LLJIT::addIRModule(JITDylib &JD, ThreadSafeModule TSM) { in addIRModule() argument
64 assert(TSM && "Can not add null module"); in addIRModule()
67 TSM.withModuleDo([&](Module &M) { return applyDataLayout(M); })) in addIRModule()
70 return CompileLayer->add(JD, std::move(TSM), ES->allocateVModule()); in addIRModule()
202 Error LLLazyJIT::addLazyIRModule(JITDylib &JD, ThreadSafeModule TSM) { in addLazyIRModule() argument
203 assert(TSM && "Can not add null module"); in addLazyIRModule()
205 if (auto Err = TSM.withModuleDo([&](Module &M) -> Error { in addLazyIRModule()
214 return CODLayer->add(JD, std::move(TSM), ES->allocateVModule()); in addLazyIRModule()
DIRTransformLayer.cpp21 ThreadSafeModule TSM) { in emit() argument
22 assert(TSM && "Module must not be null"); in emit()
24 if (auto TransformedTSM = Transform(std::move(TSM), R)) in emit()
DThreadSafeModule.cpp18 ThreadSafeModule cloneToNewContext(ThreadSafeModule &TSM, in cloneToNewContext() argument
21 assert(TSM && "Can not clone null module"); in cloneToNewContext()
26 return TSM.withModuleDo([&](Module &M) { in cloneToNewContext()
/external/llvm-project/llvm/lib/ExecutionEngine/Orc/
DLayer.cpp25 Error IRLayer::add(ResourceTrackerSP RT, ThreadSafeModule TSM) { in add() argument
29 *this, *getManglingOptions(), std::move(TSM)), in add()
35 ThreadSafeModule TSM) in IRMaterializationUnit() argument
36 : MaterializationUnit(SymbolFlagsMap(), nullptr), TSM(std::move(TSM)) { in IRMaterializationUnit()
38 assert(this->TSM && "Module must not be null"); in IRMaterializationUnit()
40 MangleAndInterner Mangle(ES, this->TSM.getModuleUnlocked()->getDataLayout()); in IRMaterializationUnit()
41 this->TSM.withModuleDo([&](Module &M) { in IRMaterializationUnit()
101 ThreadSafeModule TSM, SymbolFlagsMap SymbolFlags, in IRMaterializationUnit() argument
104 TSM(std::move(TSM)), SymbolToDefinition(std::move(SymbolToDefinition)) {} in IRMaterializationUnit()
107 if (TSM) in getName()
[all …]
DCompileOnDemandLayer.cpp20 static ThreadSafeModule extractSubModule(ThreadSafeModule &TSM, in extractSubModule() argument
61 auto NewTSM = cloneToNewContext(TSM, ShouldExtract, DeleteExtractedDefs); in extractSubModule()
76 ThreadSafeModule TSM, in PartitioningIRMaterializationUnit() argument
78 : IRMaterializationUnit(ES, MO, std::move(TSM)), Parent(Parent) {} in PartitioningIRMaterializationUnit()
81 ThreadSafeModule TSM, SymbolFlagsMap SymbolFlags, in PartitioningIRMaterializationUnit() argument
84 : IRMaterializationUnit(std::move(TSM), std::move(SymbolFlags), in PartitioningIRMaterializationUnit()
91 Parent.emitPartition(std::move(R), std::move(TSM), in materialize()
131 std::unique_ptr<MaterializationResponsibility> R, ThreadSafeModule TSM) { in emit() argument
132 assert(TSM && "Null module"); in emit()
142 TSM.withModuleDo([&](Module &M) { in emit()
[all …]
DIRCompileLayer.cpp29 ThreadSafeModule TSM) { in emit() argument
30 assert(TSM && "Module must not be null"); in emit()
32 if (auto Obj = TSM.withModuleDo(*Compile)) { in emit()
36 NotifyCompiled(*R, std::move(TSM)); in emit()
38 TSM = ThreadSafeModule(); in emit()
DSpeculation.cpp59 ThreadSafeModule TSM) { in emit() argument
61 assert(TSM && "Speculation Layer received Null Module ?"); in emit()
62 assert(TSM.getContext().getContext() != nullptr && in emit()
66 TSM.withModuleDo([this, &R](Module &M) { in emit()
136 assert(!TSM.withModuleDo([](const Module &M) { return verifyModule(M); }) && in emit()
139 NextLayer.emit(std::move(R), std::move(TSM)); in emit()
DIRTransformLayer.cpp21 ThreadSafeModule TSM) { in emit() argument
22 assert(TSM && "Module must not be null"); in emit()
24 if (auto TransformedTSM = Transform(std::move(TSM), *R)) in emit()
DThreadSafeModule.cpp18 ThreadSafeModule cloneToNewContext(const ThreadSafeModule &TSM, in cloneToNewContext() argument
21 assert(TSM && "Can not clone null module"); in cloneToNewContext()
26 return TSM.withModuleDo([&](Module &M) { in cloneToNewContext()
/external/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
DLayer.h37 ThreadSafeModule TSM);
44 IRMaterializationUnit(ThreadSafeModule TSM, SymbolFlagsMap SymbolFlags,
52 const ThreadSafeModule &getModule() const { return TSM; } in getModule()
55 ThreadSafeModule TSM;
60 const ThreadSafeModule &TSM);
99 virtual Error add(ResourceTrackerSP RT, ThreadSafeModule TSM);
103 Error add(JITDylib &JD, ThreadSafeModule TSM) { in add() argument
104 return add(JD.getDefaultResourceTracker(), std::move(TSM)); in add()
109 ThreadSafeModule TSM) = 0;
123 ThreadSafeModule TSM);
DIRTransformLayer.h42 ThreadSafeModule TSM) override;
44 static ThreadSafeModule identityTransform(ThreadSafeModule TSM, in identityTransform() argument
46 return TSM; in identityTransform()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/
DLayer.h39 ThreadSafeModule TSM, VModuleKey K);
46 IRMaterializationUnit(ThreadSafeModule TSM, VModuleKey K,
53 const ThreadSafeModule &getModule() const { return TSM; } in getModule()
56 ThreadSafeModule TSM;
98 virtual Error add(JITDylib &JD, ThreadSafeModule TSM,
102 virtual void emit(MaterializationResponsibility R, ThreadSafeModule TSM) = 0;
115 ThreadSafeModule TSM, VModuleKey K);
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsBasicUsage/
DOrcV2CBindingsBasicUsage.c60 LLVMOrcThreadSafeModuleRef TSM = LLVMOrcCreateNewThreadSafeModule(M, TSCtx); in createDemoModule() local
67 return TSM; in createDemoModule()
93 LLVMOrcThreadSafeModuleRef TSM = createDemoModule(); in main() local
99 if ((Err = LLVMOrcLLJITAddLLVMIRModule(J, MainJD, TSM))) { in main()
102 LLVMOrcDisposeThreadSafeModule(TSM); in main()
/external/llvm-project/llvm/unittests/ExecutionEngine/Orc/
DThreadSafeModuleTest.cpp26 ThreadSafeModule TSM(std::move(M), std::move(TSCtx)); in TEST() local
63 ThreadSafeModule TSM(std::move(M), std::move(TSCtx)); in TEST() local
64 TSM = ThreadSafeModule(); in TEST()
71 ThreadSafeModule TSM(std::move(M), TSCtx); in TEST() local
75 { auto L = TSM.getContext().getLock(); } in TEST()
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/
DOrcV2CBindingsRemovableCode.c60 LLVMOrcThreadSafeModuleRef TSM = LLVMOrcCreateNewThreadSafeModule(M, TSCtx); in createDemoModule() local
67 return TSM; in createDemoModule()
93 LLVMOrcThreadSafeModuleRef TSM = createDemoModule(); in main() local
101 if ((Err = LLVMOrcLLJITAddLLVMIRModuleWithRT(J, RT, TSM))) { in main()
104 LLVMOrcDisposeThreadSafeModule(TSM); in main()
/external/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
DKaleidoscopeJIT.h96 Error addModule(ThreadSafeModule TSM, ResourceTrackerSP RT = nullptr) {
100 return OptimizeLayer.add(RT, std::move(TSM));
109 optimizeModule(ThreadSafeModule TSM, const MaterializationResponsibility &R) { in optimizeModule() argument
110 TSM.withModuleDo([](Module &M) { in optimizeModule()
127 return std::move(TSM); in optimizeModule()
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsReflectProcessSymbols/
DOrcV2CBindingsReflectProcessSymbols.c105 LLVMOrcThreadSafeModuleRef TSM = LLVMOrcCreateNewThreadSafeModule(M, TSCtx); in createDemoModule() local
112 return TSM; in createDemoModule()
160 LLVMOrcThreadSafeModuleRef TSM = createDemoModule(); in main() local
166 if ((Err = LLVMOrcLLJITAddLLVMIRModule(J, MainJD, TSM))) { in main()
169 LLVMOrcDisposeThreadSafeModule(TSM); in main()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86PadShortFunction.cpp93 TargetSchedModel TSM; member
115 TSM.init(&MF.getSubtarget()); in runOnMachineFunction()
211 CyclesToEnd += TSM.computeInstrLatency(&MI); in cyclesUntilReturn()
225 unsigned IssueWidth = TSM.getIssueWidth(); in addPadding()
228 BuildMI(*MBB, MBBI, DL, TSM.getInstrInfo()->get(X86::NOOP)); in addPadding()
/external/llvm-project/llvm/lib/Target/X86/
DX86PadShortFunction.cpp94 TargetSchedModel TSM; member
116 TSM.init(&MF.getSubtarget()); in runOnMachineFunction()
212 CyclesToEnd += TSM.computeInstrLatency(&MI); in cyclesUntilReturn()
226 unsigned IssueWidth = TSM.getIssueWidth(); in addPadding()
229 BuildMI(*MBB, MBBI, DL, TSM.getInstrInfo()->get(X86::NOOP)); in addPadding()
/external/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
DKaleidoscopeJIT.h122 Error addModule(ThreadSafeModule TSM, ResourceTrackerSP RT = nullptr) {
126 return OptimizeLayer.add(RT, std::move(TSM));
135 optimizeModule(ThreadSafeModule TSM, const MaterializationResponsibility &R) { in optimizeModule() argument
136 TSM.withModuleDo([](Module &M) { in optimizeModule()
153 return std::move(TSM); in optimizeModule()
/external/llvm-project/llvm/examples/OrcV2Examples/LLJITWithOptimizingIRTransform/
DLLJITWithOptimizingIRTransform.cpp81 Expected<ThreadSafeModule> operator()(ThreadSafeModule TSM, in operator ()() argument
83 TSM.withModuleDo([this](Module &M) { in operator ()()
88 return std::move(TSM); in operator ()()

123