Home
last modified time | relevance | path

Searched refs:ProgName (Results 1 – 19 of 19) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/
H A DDlltoolDriver.cpp101 StringRef ProgName = llvm::sys::path::stem(Argv0); in getPrefix() local
105 ProgName = ProgName.rtrim("0123456789.-"); in getPrefix()
106 if (!ProgName.consume_back_insensitive("dlltool")) in getPrefix()
108 ProgName.consume_back_insensitive("llvm-"); in getPrefix()
109 ProgName.consume_back_insensitive("-"); in getPrefix()
110 return ProgName.str(); in getPrefix()
/freebsd-14.2/contrib/llvm-project/llvm/lib/LineEditor/
H A DLineEditor.cpp24 std::string LineEditor::getDefaultHistoryPath(StringRef ProgName) { in getDefaultHistoryPath() argument
27 sys::path::append(Path, "." + ProgName + "-history"); in getDefaultHistoryPath()
193 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() argument
195 : Prompt((ProgName + "> ").str()), HistoryPath(std::string(HistoryPath)), in LineEditor()
198 this->HistoryPath = getDefaultHistoryPath(ProgName); in LineEditor()
206 Data->EL = ::el_init(ProgName.str().c_str(), In, Out, Err); in LineEditor()
281 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() argument
283 : Prompt((ProgName + "> ").str()), Data(new InternalData) { in LineEditor()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp235 static const Target *GetTarget(const char *ProgName) { in GetTarget() argument
246 WithColor::error(errs(), ProgName) << Error; in GetTarget()
323 static int AssembleInput(const char *ProgName, const Target *TheTarget, in AssembleInput() argument
333 WithColor::error(errs(), ProgName) in AssembleInput()
371 const char *ProgName = argv[0]; in main() local
372 const Target *TheTarget = GetTarget(ProgName); in main()
382 WithColor::error(errs(), ProgName) in main()
408 WithColor::error(errs(), ProgName) in main()
444 errs() << ProgName << ": Dwarf version " << DwarfVersion in main()
452 errs() << ProgName in main()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/
H A DToolChain.cpp318 if (ProgName.ends_with(Suffix)) { in FindDriverSuffix()
332 std::transform(ProgName.begin(), ProgName.end(), ProgName.begin(), in normalizeProgramName()
335 return ProgName; in normalizeProgramName()
348 if (!DS && ProgName.ends_with(".exe")) { in parseDriverSuffix()
351 ProgName = ProgName.drop_back(StringRef(".exe").size()); in parseDriverSuffix()
352 DS = FindDriverSuffix(ProgName, Pos); in parseDriverSuffix()
358 ProgName = ProgName.rtrim("0123456789."); in parseDriverSuffix()
359 DS = FindDriverSuffix(ProgName, Pos); in parseDriverSuffix()
365 ProgName = ProgName.slice(0, ProgName.rfind('-')); in parseDriverSuffix()
366 DS = FindDriverSuffix(ProgName, Pos); in parseDriverSuffix()
[all …]
H A DDriver.cpp2220 StringRef ProgName = A->getValue(); in HandleImmediateArgs() local
2223 if (! ProgName.empty()) in HandleImmediateArgs()
2224 llvm::outs() << GetProgramPath(ProgName, TC); in HandleImmediateArgs()
6594 llvm::StringRef clang::driver::getDriverMode(StringRef ProgName, in getDriverMode() argument
6605 Opt = ToolChain::getTargetAndModeFromProgramName(ProgName).DriverMode; in getDriverMode()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/orc/tests/tools/
H A Dorc-rt-executor.cpp20 void printHelp(std::string_view ProgName, std::ostream &OS) { in printHelp() argument
21 OS << "usage: " << ProgName << " [help] [<mode>] <program arguments>...\n" in printHelp()
/freebsd-14.2/contrib/kyua/admin/
H A Dcheck-style.sh34 ProgName="${0##*/}"
42 echo "${ProgName}:" "${@}" 1>&2
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/LineEditor/
H A DLineEditor.h33 LineEditor(StringRef ProgName, StringRef HistoryPath = "", FILE *In = stdin,
45 static std::string getDefaultHistoryPath(StringRef ProgName);
/freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/
H A DMain.cpp70 static int reportError(const char *ProgName, Twine Msg) { in reportError() argument
71 errs() << ProgName << ": " << Msg; in reportError()
/freebsd-14.2/contrib/llvm-project/clang/tools/driver/
H A Ddriver.cpp392 const char *ProgName = in clang_main() local
396 IsClangCL(getDriverMode(ProgName, llvm::ArrayRef(Args).slice(1))); in clang_main()
469 FixupDiagPrefixExeName(DiagClient, ProgName); in clang_main()
487 auto TargetAndMode = ToolChain::getTargetAndModeFromProgramName(ProgName); in clang_main()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp484 void SMDiagnostic::print(const char *ProgName, raw_ostream &OS, bool ShowColors, in print() argument
491 if (ProgName && ProgName[0]) in print()
492 S << ProgName << ": "; in print()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-mca/
H A Dllvm-mca.cpp242 const Target *getTarget(const char *ProgName) { in getTarget() argument
252 errs() << ProgName << ": " << Error; in getTarget()
340 const char *ProgName = argv[0]; in main() local
341 const Target *TheTarget = getTarget(ProgName); in main()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerDriver.cpp90 static std::string *ProgName; variable
94 auto Prog = ProgName->c_str(); in PrintHelp()
655 ProgName = new std::string(Args[0]); in FuzzerDriver()
656 if (Argv0 != *ProgName) { in FuzzerDriver()
856 Printf("%s: Running %zd inputs %d time(s) each.\n", ProgName->c_str(), in FuzzerDriver()
/freebsd-14.2/contrib/llvm-project/llvm/tools/lli/
H A Dlli.cpp411 [[noreturn]] static void reportError(SMDiagnostic Err, const char *ProgName) { in reportError() argument
412 Err.print(ProgName, errs()); in reportError()
417 int runOrcJIT(const char *ProgName);
923 int runOrcJIT(const char *ProgName) { in runOrcJIT() argument
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h319 void print(const char *ProgName, raw_ostream &S, bool ShowColors = true,
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Driver/
H A DDriver.h814 llvm::StringRef getDriverMode(StringRef ProgName, ArrayRef<const char *> Args);
H A DToolChain.h335 static ParsedClangName getTargetAndModeFromProgramName(StringRef ProgName);
/freebsd-14.2/contrib/llvm-project/llvm/tools/llc/
H A Dllc.cpp260 const char *ProgName) { in GetOutputStream() argument
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp3246 StringRef ProgName(sys::path::filename(argv[0])); in llvm_profdata_main() local
3249 errs() << ProgName in llvm_profdata_main()
3268 errs() << ProgName in llvm_profdata_main()