/external/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITMultipleModuleTest.cpp | 98 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 …]
|
D | MCJITObjectCacheTest.cpp | 93 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 …]
|
D | MCJITTest.cpp | 54 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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITMultipleModuleTest.cpp | 98 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 …]
|
D | MCJITObjectCacheTest.cpp | 93 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 …]
|
D | MCJITTest.cpp | 53 void *globalPtr = TheJIT->getPointerToGlobal(Global); in TEST_F() 66 uint64_t addPtr = TheJIT->getFunctionAddress(F->getName().str()); in TEST_F() 87 uint64_t ptr = TheJIT->getFunctionAddress(Main->getName().str()); in TEST_F() 108 uint64_t rgvPtr = TheJIT->getFunctionAddress(ReturnGlobal->getName().str()); in TEST_F() 179 uint64_t ptr = TheJIT->getFunctionAddress(Outer->getName().str()); in TEST_F() 195 void *A = TheJIT->getPointerToFunction(Foo); in TEST_F() 196 void *B = TheJIT->getPointerToFunction(Foo); in TEST_F() 232 TheJIT->InstallLazyFunctionCreator(UnresolvedHandler); in TEST_F() 235 TheJIT->finalizeObject(); in TEST_F() 271 TheJIT->InstallLazyFunctionCreator(UnresolvedHandler); in TEST_F() [all …]
|
/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/JIT/ |
D | JITTest.cpp | 199 TheJIT.reset(EngineBuilder(M).setEngineKind(EngineKind::JIT) in SetUp() 202 ASSERT_TRUE(TheJIT.get() != NULL) << Error; in SetUp() 212 OwningPtr<ExecutionEngine> TheJIT; member in __anona47825790111::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/ |
D | JITEmitter.cpp | 113 JIT *TheJIT; member in __anona707f8570111::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 __anona707f8570111::JITResolver 195 : state(&jit), nextGOTIndex(0), JE(je), TheJIT(&jit) { in JITResolver() 363 JIT *TheJIT; member in __anona707f8570111::JITEmitter 368 EmittedFunctions(this), TheJIT(&jit) { in JITEmitter() [all …]
|
/external/llvm/tools/llvm-jitlistener/ |
D | llvm-jitlistener.cpp | 139 TheJIT.reset(EngineBuilder(std::move(TheModule)) in InitEE() 149 TheJIT.reset(); in DestroyEE() 153 std::unique_ptr<ExecutionEngine> TheJIT; member in __anoned6ff38e0111::JitEventListenerTest 163 TheJIT->RegisterJITEventListener(Listener.get()); in ProcessInput() 165 TheJIT->finalizeObject(); in ProcessInput()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-jitlistener/ |
D | llvm-jitlistener.cpp | 137 TheJIT.reset(EngineBuilder(std::move(TheModule)) in InitEE() 147 TheJIT.reset(); in DestroyEE() 151 std::unique_ptr<ExecutionEngine> TheJIT; member in __anon33136fe60111::JitEventListenerTest 161 TheJIT->RegisterJITEventListener(Listener.get()); in ProcessInput() 163 TheJIT->finalizeObject(); in ProcessInput()
|
/external/llvm/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 405 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/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 417 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable 554 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager() 577 TheJIT->addModule(std::move(TheModule)); in HandleDefinition() 606 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression() 610 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression() 619 TheJIT->removeModule(H); in HandleTopLevelExpression() 692 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 544 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable 828 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager() 851 TheJIT->addModule(std::move(TheModule)); in HandleDefinition() 880 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression() 884 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression() 893 TheJIT->removeModule(H); in HandleTopLevelExpression() 966 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 530 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/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/ |
D | toy.cpp | 712 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable 1123 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule() 1142 ExitOnErr(TheJIT->addFunctionAST(std::move(FnAST))); in HandleDefinition() 1171 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression() 1175 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression() 1180 ExitOnErr(TheJIT->executeRemoteExpr(cantFail(ExprSymbol.getAddress()))); in HandleTopLevelExpression() 1183 TheJIT->removeModule(H); in HandleTopLevelExpression() 1284 TheJIT = llvm::make_unique<KaleidoscopeJIT>(ES, *Remote); in main() 1303 TheJIT = nullptr; in main()
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/ |
D | toy.cpp | 701 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/ |
D | toy.cpp | 621 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/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 636 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable 947 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager() 970 TheJIT->addModule(std::move(TheModule)); in HandleDefinition() 999 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression() 1003 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression() 1012 TheJIT->removeModule(H); in HandleTopLevelExpression() 1085 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
D | toy.cpp | 691 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/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
D | toy.cpp | 703 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable 1106 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule() 1115 TheJIT->addModule(std::move(TheModule)); in HandleDefinition() 1144 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression() 1148 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression() 1157 TheJIT->removeModule(H); in HandleTopLevelExpression() 1225 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
D | toy.cpp | 691 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/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
D | toy.cpp | 703 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable 1106 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule() 1115 TheJIT->addModule(std::move(TheModule)); in HandleDefinition() 1144 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression() 1150 (double (*)())(intptr_t)TheJIT->getSymbolAddress("__anon_expr"); in HandleTopLevelExpression() 1155 TheJIT->removeModule(H); in HandleTopLevelExpression() 1223 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
D | toy.cpp | 691 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/ |
D | toy.cpp | 679 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/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
D | toy.cpp | 703 static std::unique_ptr<KaleidoscopeJIT> TheJIT; variable 1106 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule() 1115 TheJIT->addModule(std::move(TheModule)); in HandleDefinition() 1144 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression() 1148 auto ExprSymbol = TheJIT->findSymbol("__anon_expr"); in HandleTopLevelExpression() 1157 TheJIT->removeModule(H); in HandleTopLevelExpression() 1225 TheJIT = llvm::make_unique<KaleidoscopeJIT>(); in main()
|