Home
last modified time | relevance | path

Searched refs:TheJIT (Results 1 – 18 of 18) sorted by relevance

/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITMultipleModuleTest.cpp98 TheJIT->addModule(std::move(B)); in TEST_F()
100 uint64_t ptr = TheJIT->getFunctionAddress(FA->getName().str()); in TEST_F()
103 ptr = TheJIT->getFunctionAddress(FB->getName().str()); in TEST_F()
118 TheJIT->addModule(std::move(B)); in TEST_F()
120 uint64_t ptr = TheJIT->getFunctionAddress(FB->getName().str()); in TEST_F()
121 TheJIT->finalizeObject(); in TEST_F()
124 ptr = TheJIT->getFunctionAddress(FA->getName().str()); in TEST_F()
139 TheJIT->addModule(std::move(B)); in TEST_F()
141 uint64_t ptr = TheJIT->getFunctionAddress(FB->getName().str()); in TEST_F()
142 TheJIT->finalizeObject(); in TEST_F()
[all …]
DMCJITObjectCacheTest.cpp93 ASSERT_TRUE(bool(TheJIT)); in compileAndRun()
97 TheJIT->finalizeObject(); in compileAndRun()
98 void *vPtr = TheJIT->getPointerToFunction(Main); in compileAndRun()
116 TheJIT->setObjectCache(nullptr); in TEST_F()
131 TheJIT->setObjectCache(Cache.get()); in TEST_F()
157 TheJIT->setObjectCache(Cache.get()); in TEST_F()
158 TheJIT->finalizeObject(); in TEST_F()
161 TheJIT.reset(); in TEST_F()
174 TheJIT->setObjectCache(Cache.get()); in TEST_F()
191 TheJIT->setObjectCache(Cache.get()); in TEST_F()
[all …]
DMCJITTest.cpp54 void *globalPtr = TheJIT->getPointerToGlobal(Global); in TEST_F()
67 uint64_t addPtr = TheJIT->getFunctionAddress(F->getName().str()); in TEST_F()
88 uint64_t ptr = TheJIT->getFunctionAddress(Main->getName().str()); in TEST_F()
109 uint64_t rgvPtr = TheJIT->getFunctionAddress(ReturnGlobal->getName().str()); in TEST_F()
180 uint64_t ptr = TheJIT->getFunctionAddress(Outer->getName().str()); in TEST_F()
196 void *A = TheJIT->getPointerToFunction(Foo); in TEST_F()
197 void *B = TheJIT->getPointerToFunction(Foo); in TEST_F()
233 TheJIT->InstallLazyFunctionCreator(UnresolvedHandler); in TEST_F()
236 TheJIT->finalizeObject(); in TEST_F()
272 TheJIT->InstallLazyFunctionCreator(UnresolvedHandler); in TEST_F()
[all …]
DMCJITTestBase.h319 TheJIT.reset(EB.setEngineKind(EngineKind::JIT) in createJIT()
329 assert(TheJIT.get() != NULL && "error creating MCJIT with EngineBuilder"); in createJIT()
336 std::unique_ptr<ExecutionEngine> TheJIT; variable
/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/JIT/
DJITTest.cpp199 TheJIT.reset(EngineBuilder(M).setEngineKind(EngineKind::JIT) in SetUp()
202 ASSERT_TRUE(TheJIT.get() != NULL) << Error; in SetUp()
212 OwningPtr<ExecutionEngine> TheJIT; member in __anon99615b6f0111::JITTest
301 TheJIT->addGlobalMapping(KnownFunction, (void*)(intptr_t)PlusOne); in TEST_F()
314 TheJIT->DisableLazyCompilation(true); in TEST_F()
316 (intptr_t)TheJIT->getPointerToFunction(TestFunction)); in TEST_F()
323 TheJIT->DisableLazyCompilation(true); in TEST_F()
371 reinterpret_cast<void(*)()>((intptr_t)TheJIT->getPointerToFunction(Func1)); in TEST_F()
379 TheJIT->DisableLazyCompilation(true); in TEST_F()
401 (void)TheJIT->getPointerToFunction(Func1); in TEST_F()
[all …]
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/
DJITEmitter.cpp113 JIT *TheJIT; member in __anonce5e020d0111::JITResolverState
118 TheJIT(jit) {} in JITResolverState()
122 assert(locked.holds(TheJIT->lock)); in getFunctionToLazyStubMap()
127 assert(lck.holds(TheJIT->lock)); in getGlobalToIndirectSymMap()
133 assert(locked.holds(TheJIT->lock)); in LookupFunctionFromCallSite()
147 assert(locked.holds(TheJIT->lock)); in AddCallSite()
191 JIT *TheJIT; member in __anonce5e020d0111::JITResolver
195 : state(&jit), nextGOTIndex(0), JE(je), TheJIT(&jit) { in JITResolver()
363 JIT *TheJIT; member in __anonce5e020d0111::JITEmitter
368 EmittedFunctions(this), TheJIT(&jit) { in JITEmitter()
[all …]
/external/llvm/tools/llvm-jitlistener/
Dllvm-jitlistener.cpp139 TheJIT.reset(EngineBuilder(std::move(TheModule)) in InitEE()
149 TheJIT.reset(); in DestroyEE()
153 std::unique_ptr<ExecutionEngine> TheJIT; member in __anone79d3d040111::JitEventListenerTest
163 TheJIT->RegisterJITEventListener(Listener.get()); in ProcessInput()
165 TheJIT->finalizeObject(); in ProcessInput()
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp405 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
542 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
564 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
592 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
596 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression()
605 TheJIT->removeModule(H); in HandleTopLevelExpression()
672 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp530 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
814 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
836 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
864 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
868 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression()
877 TheJIT->removeModule(H); in HandleTopLevelExpression()
944 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp701 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
1112 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule()
1131 ExitOnErr(TheJIT->addFunctionAST(std::move(FnAST))); in HandleDefinition()
1159 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
1163 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression()
1168 ExitOnErr(TheJIT->executeRemoteExpr(ExprSymbol.getAddress())); in HandleTopLevelExpression()
1171 TheJIT->removeModule(H); in HandleTopLevelExpression()
1269 TheJIT = llvm::make_unique<KaleidoscopeJIT>(Remote); in main()
1288 TheJIT = nullptr; in main()
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp621 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
932 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
954 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
982 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
986 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression()
995 TheJIT->removeModule(H); in HandleTopLevelExpression()
1062 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
Dtoy.cpp691 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
1094 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule()
1102 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
1130 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
1134 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression()
1143 TheJIT->removeModule(H); in HandleTopLevelExpression()
1211 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp679 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
1090 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule()
1109 ExitOnErr(TheJIT->addFunctionAST(std::move(FnAST))); in HandleDefinition()
1137 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
1141 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression()
1150 TheJIT->removeModule(H); in HandleTopLevelExpression()
1220 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
Dtoy.cpp691 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
1094 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule()
1102 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
1130 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
1134 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression()
1143 TheJIT->removeModule(H); in HandleTopLevelExpression()
1211 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
Dtoy.cpp691 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
1094 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule()
1102 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
1130 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
1134 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression()
1143 TheJIT->removeModule(H); in HandleTopLevelExpression()
1211 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp692 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
1098 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
1120 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
1148 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
1152 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression()
1161 TheJIT->removeModule(H); in HandleTopLevelExpression()
1229 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
/external/llvm/docs/tutorial/
DLangImpl04.rst136 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout());
231 done by adding a global variable ``TheJIT``, and initializing it in
236 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
240 TheJIT = llvm::make_unique<KaleidoscopeJIT>();
268 auto H = TheJIT->addModule(std::move(TheModule));
272 auto ExprSymbol = TheJIT->findSymbol("__anon_expr");
281 TheJIT->removeModule(H);
405 static std::unique_ptr<KaleidoscopeJIT> TheJIT;
462 TheJIT->addModule(std::move(TheModule));
/external/llvm/examples/Kaleidoscope/Chapter9/
Dtoy.cpp861 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable
1319 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule()
1414 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()