Home
last modified time | relevance | path

Searched refs:MainAddr (Results 1 – 17 of 17) sorted by relevance

/openbsd/gnu/llvm/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DOrcRTBootstrap.cpp52 [](ExecutorAddr MainAddr, in runAsMainWrapper()
54 return runAsMain(MainAddr.toPtr<int (*)(int, char *[])>(), Args); in runAsMainWrapper()
63 [](ExecutorAddr MainAddr) -> int32_t { in runAsVoidFunctionWrapper() argument
64 return runAsVoidFunction(MainAddr.toPtr<int32_t (*)(void)>()); in runAsVoidFunctionWrapper()
73 [](ExecutorAddr MainAddr, int32_t Arg) -> int32_t { in runAsIntFunctionWrapper() argument
74 return runAsIntFunction(MainAddr.toPtr<int32_t (*)(int32_t)>(), in runAsIntFunctionWrapper()
/openbsd/gnu/llvm/clang/tools/arcmt-test/
H A Darcmt-test.cpp69 void *MainAddr = (void*) (intptr_t) GetExecutablePath; in GetExecutablePath() local
70 return llvm::sys::fs::getMainExecutable(Argv0, MainAddr); in GetExecutablePath()
344 void *MainAddr = (void*) (intptr_t) GetExecutablePath; in main() local
348 resourcesPath = CompilerInvocation::GetResourcesPath(argv[0], MainAddr); in main()
/openbsd/gnu/llvm/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/
H A DLLJITWithRemoteDebugging.cpp226 auto MainAddr = ExitOnErr(J->lookup("main")); in main() local
243 int Result = ExitOnErr(EPC.runAsMain(MainAddr, ActualArgv)); in main()
/openbsd/gnu/llvm/llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/
H A DLLJITWithThinLTOSummaries.cpp230 auto MainAddr = ExitOnErr(J->lookup(MainFunctionName)); in main() local
233 auto *MainFunction = MainAddr.toPtr<MainFnPtr>(); in main()
/openbsd/gnu/llvm/clang/tools/driver/
H A Dcc1_main.cpp185 int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { in cc1_main() argument
230 CompilerInvocation::GetResourcesPath(Argv0, MainAddr); in cc1_main()
H A Ddriver.cpp209 void *MainAddr);
211 void *MainAddr);
213 const char *Argv0, void *MainAddr);
H A Dcc1gen_reproducer_main.cpp158 void *MainAddr) { in cc1gen_reproducer_main() argument
H A Dcc1as_main.cpp610 int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { in cc1as_main() argument
/openbsd/gnu/llvm/clang/tools/c-index-test/
H A Dcore_main.cpp337 void *MainAddr = (void*) (intptr_t) indextest_core_main; in indextest_core_main() local
338 std::string Executable = llvm::sys::fs::getMainExecutable(argv[0], MainAddr); in indextest_core_main()
/openbsd/gnu/llvm/clang/include/clang/Frontend/
H A DCompilerInvocation.h220 static std::string GetResourcesPath(const char *Argv0, void *MainAddr);
/openbsd/gnu/llvm/llvm/tools/bugpoint/
H A DToolRunner.h186 const char *Argv0, void *MainAddr);
H A DToolRunner.cpp206 void *MainAddr) { in FindProgramByName() argument
210 std::string Main = sys::fs::getMainExecutable(Argv0, MainAddr); in FindProgramByName()
/openbsd/gnu/llvm/llvm/tools/lli/
H A Dlli.cpp1087 auto MainAddr = ExitOnErr(J->lookup(EntryFunc)); in runOrcJIT() local
1092 Result = ExitOnErr(EPC->runAsMain(MainAddr, InputArgv)); in runOrcJIT()
1096 auto MainFn = MainAddr.toPtr<MainFnTy *>(); in runOrcJIT()
/openbsd/gnu/llvm/clang/lib/Tooling/
H A DTooling.cpp474 void *MainAddr) { in injectResourceDir() argument
482 ("-resource-dir=" + CompilerInvocation::GetResourcesPath(Argv0, MainAddr)) in injectResourceDir()
/openbsd/gnu/llvm/llvm/lib/Support/
H A DPath.cpp1211 std::string getMainExecutable(const char *Argv0, void *MainAddr) { in getMainExecutable() argument
1214 return getMainExecutableImpl(Argv0, MainAddr); in getMainExecutable()
/openbsd/gnu/llvm/llvm/lib/Support/Unix/
H A DPath.inc193 std::string getMainExecutableImpl(const char *argv0, void *MainAddr) {
323 int err = dladdr(MainAddr, &DLInfo);
/openbsd/gnu/llvm/clang/lib/Frontend/
H A DCompilerInvocation.cpp2964 void *MainAddr) { in GetResourcesPath() argument
2966 llvm::sys::fs::getMainExecutable(Argv0, MainAddr); in GetResourcesPath()