Home
last modified time | relevance | path

Searched refs:Argv0 (Results 1 – 25 of 26) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DSignals.cpp142 static bool printSymbolizedStackTrace(StringRef Argv0, void **StackTrace, in printSymbolizedStackTrace() argument
148 if (Argv0.contains("llvm-symbolizer")) in printSymbolizedStackTrace()
158 } else if (!Argv0.empty()) { in printSymbolizedStackTrace()
159 StringRef Parent = llvm::sys::path::parent_path(Argv0); in printSymbolizedStackTrace()
172 sys::fs::exists(Argv0) ? (std::string)std::string(Argv0) in printSymbolizedStackTrace()
259 static bool printMarkupStackTrace(StringRef Argv0, void **StackTrace, int Depth, in printMarkupStackTrace() argument
266 sys::fs::exists(Argv0) ? std::string(Argv0) in printMarkupStackTrace()
/freebsd-14.2/contrib/llvm-project/llvm/tools/bugpoint/
H A DToolRunner.h51 static CC *create(const char *Argv0, std::string &Message,
86 static LLC *createLLC(const char *Argv0, std::string &Message,
93 createLLI(const char *Argv0, std::string &Message,
97 createJIT(const char *Argv0, std::string &Message,
101 createCustomCompiler(const char *Argv0, std::string &Message,
105 createCustomExecutor(const char *Argv0, std::string &Message,
186 const char *Argv0, void *MainAddr);
H A DToolRunner.cpp205 const char *Argv0, in FindProgramByName() argument
210 std::string Main = sys::fs::getMainExecutable(Argv0, MainAddr); in FindProgramByName()
224 FindProgramByName("lli", Argv0, (void *)(intptr_t)&createLLI)) { in createLLI()
353 static void lexCommand(const char *Argv0, std::string &Message, in lexCommand() argument
402 const char *Argv0, std::string &Message, in createCustomCompiler() argument
407 lexCommand(Argv0, Message, CompileCommandLine, CmdPath, Args); in createCustomCompiler()
417 AbstractInterpreter::createCustomExecutor(const char *Argv0, in createCustomExecutor() argument
423 lexCommand(Argv0, Message, ExecCommandLine, CmdPath, Args); in createCustomExecutor()
513 FindProgramByName("llc", Argv0, (void *)(intptr_t)&createLLC); in createLLC()
519 CC *cc = CC::create(Argv0, Message, CCBinary, CCArgs); in createLLC()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Testing/Support/
H A DSupportHelpers.cpp16 static std::pair<bool, SmallString<128>> findSrcDirMap(StringRef Argv0) { in findSrcDirMap() argument
17 SmallString<128> BaseDir = llvm::sys::path::parent_path(Argv0); in findSrcDirMap()
36 SmallString<128> llvm::unittest::getInputFileDirectory(const char *Argv0) { in getInputFileDirectory() argument
39 std::tie(Found, InputFilePath) = findSrcDirMap(Argv0); in getInputFileDirectory()
/freebsd-14.2/contrib/llvm-project/clang/tools/driver/
H A Dcc1_main.cpp226 int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { in cc1_main() argument
255 Argv, Diags, Argv0); in cc1_main()
259 Clang->getFrontendOpts().TimeTraceGranularity, Argv0); in cc1_main()
273 CompilerInvocation::GetResourcesPath(Argv0, MainAddr); in cc1_main()
H A Dcc1gen_reproducer_main.cpp146 std::string GetExecutablePath(const char *Argv0, bool CanonicalPrefixes);
162 int cc1gen_reproducer_main(ArrayRef<const char *> Argv, const char *Argv0, in cc1gen_reproducer_main() argument
188 std::string Path = GetExecutablePath(Argv0, /*CanonicalPrefixes=*/true); in cc1gen_reproducer_main()
H A Ddriver.cpp59 std::string GetExecutablePath(const char *Argv0, bool CanonicalPrefixes) { in GetExecutablePath() argument
61 SmallString<128> ExecutablePath(Argv0); in GetExecutablePath()
73 return llvm::sys::fs::getMainExecutable(Argv0, P); in GetExecutablePath()
208 extern int cc1_main(ArrayRef<const char *> Argv, const char *Argv0,
210 extern int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0,
213 const char *Argv0, void *MainAddr,
H A Dcc1as_main.cpp619 int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { in cc1as_main() argument
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Frontend/
H A DCompilerInvocation.h290 const char *Argv0 = nullptr);
300 static std::string GetResourcesPath(const char *Argv0, void *MainAddr);
315 const char *Argv0 = nullptr);
328 DiagnosticsEngine &Diags, const char *Argv0);
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-link/
H A Dllvm-link.cpp164 static std::unique_ptr<Module> loadArFile(const char *Argv0, in loadArFile() argument
184 errs() << Argv0 << ": "; in loadArFile()
196 errs() << Argv0 << ": "; in loadArFile()
209 errs() << Argv0 << ": "; in loadArFile()
223 errs() << Argv0 << ": "; in loadArFile()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DSignals.h47 void PrintStackTraceOnErrorSignal(StringRef Argv0,
/freebsd-14.2/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/
H A DDlltoolDriver.cpp100 std::optional<std::string> getPrefix(StringRef Argv0) { in getPrefix() argument
101 StringRef ProgName = llvm::sys::path::stem(Argv0); in getPrefix()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCTargetOptions.h83 const char *Argv0 = nullptr; variable
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/
H A DCompilationDatabase.cpp263 std::string Argv0 = GetClangToolCommand(); in stripPositionalArgs() local
264 Args.insert(Args.begin(), Argv0.c_str()); in stripPositionalArgs()
H A DTooling.cpp504 static void injectResourceDir(CommandLineArguments &Args, const char *Argv0, in injectResourceDir() argument
513 ("-resource-dir=" + CompilerInvocation::GetResourcesPath(Argv0, MainAddr)) in injectResourceDir()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/Unix/
H A DSignals.inc207 static StringRef Argv0;
737 if (printMarkupStackTrace(Argv0, StackTrace, Depth, OS))
739 if (printSymbolizedStackTrace(Argv0, StackTrace, Depth, OS))
804 void llvm::sys::PrintStackTraceOnErrorSignal(StringRef Argv0,
806 ::Argv0 = Argv0;
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInvocation.cpp762 DiagnosticsEngine &Diags, const char *Argv0, in RoundTrip() argument
786 return Parse(RealInvocation, CommandLineArgs, Diags, Argv0); in RoundTrip()
806 if (!Parse(DummyInvocation, CommandLineArgs, DummyDiags, Argv0) || in RoundTrip()
893 const char *Argv0) { in checkCC1RoundTrip() argument
897 DiagnosticsEngine &Diags, const char *Argv0) { in checkCC1RoundTrip() argument
905 DummyInvocation1, DummyInvocation2, Args, Diags, Argv0, in checkCC1RoundTrip()
3017 llvm::sys::fs::getMainExecutable(Argv0, MainAddr); in GetResourcesPath()
4568 DiagnosticsEngine &Diags, const char *Argv0) { in CreateFromArgsImpl() argument
4666 Res.getCodeGenOpts().Argv0 = Argv0; in CreateFromArgsImpl()
4689 const char *Argv0) { in CreateFromArgs() argument
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DSupportHelpers.h109 SmallString<128> getInputFileDirectory(const char *Argv0);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/Windows/
H A DSignals.inc217 static StringRef Argv0;
259 return printSymbolizedStackTrace(Argv0, &StackTrace[0], Depth, OS);
521 void sys::PrintStackTraceOnErrorSignal(StringRef Argv0,
523 ::Argv0 = Argv0;
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DCodeGenOptions.h443 const char *Argv0 = nullptr; variable
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerDriver.cpp647 std::string Argv0((*argv)[0]); in FuzzerDriver() local
656 if (Argv0 != *ProgName) { in FuzzerDriver()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp470 Options.MCOptions.Argv0 = CodeGenOpts.Argv0; in initTargetOptions()
/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/
H A DToolChain.cpp328 static std::string normalizeProgramName(llvm::StringRef Argv0) { in normalizeProgramName() argument
329 std::string ProgName = std::string(llvm::sys::path::filename(Argv0)); in normalizeProgramName()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp108 void printHelp(StringRef Argv0, bool ShowHidden = false) const { in printHelp() argument
109 Argv0 = sys::path::filename(Argv0); in printHelp()
110 opt::GenericOptTable::printHelp(outs(), (Argv0 + Usage).str().c_str(), in printHelp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp950 if (Asm->TM.Options.MCOptions.Argv0 != nullptr) { in emitBuildInfo()
952 getStringIdTypeIdx(TypeTable, Asm->TM.Options.MCOptions.Argv0); in emitBuildInfo()

12