| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-reduce/ |
| H A D | llvm-reduce.cpp | 59 OutputFilename("output", variable 62 cl::aliasopt(OutputFilename), 91 OutputFilename = InputFilename.c_str(); in writeOutput() 92 else if (OutputFilename.empty() || OutputFilename == "-") in writeOutput() 93 OutputFilename = "reduced.ll"; in writeOutput() 96 raw_fd_ostream Out(OutputFilename, EC); in writeOutput() 102 errs() << Message << OutputFilename << "\n"; in writeOutput() 130 if (OutputFilename == "-") in main()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-lto/ |
| H A D | llvm-lto.cpp | 184 static cl::opt<std::string> OutputFilename("o", cl::init(""), variable 449 assert(!OutputFilename.empty()); in createCombinedModuleSummaryIndex() 450 raw_fd_ostream OS(OutputFilename + ".thinlto.bc", EC, in createCombinedModuleSummaryIndex() 452 error(EC, "error opening the file '" + OutputFilename + ".thinlto.bc'"); in createCombinedModuleSummaryIndex() 593 if (OutputFilename.empty()) in thinLink() 612 raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::OF_None); in thinLink() 613 error(EC, "error opening the file '" + OutputFilename + "'"); in thinLink() 622 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in distributedIndexes() 644 std::string OutputName = OutputFilename; in distributedIndexes() 659 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in emitImports() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/ToolChains/ |
| H A D | InterfaceStubs.cpp | 35 SmallString<128> OutputFilename(Output.getFilename()); in ConstructJob() local 36 if (OutputFilename != "-") { in ConstructJob() 38 llvm::sys::path::replace_extension(OutputFilename, in ConstructJob() 41 OutputFilename += (WriteBin ? ".ifso" : ".ifs"); in ConstructJob() 44 CmdArgs.push_back(Args.MakeArgString(OutputFilename.c_str())); in ConstructJob()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/ |
| H A D | Main.cpp | 32 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), variable 69 if (OutputFilename == "-") in createDependencyFile() 77 DepOut.os() << OutputFilename << ":"; in createDependencyFile() 141 MemoryBuffer::getFile(OutputFilename, /*IsText=*/true)) in TableGenMain() 147 ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_Text); in TableGenMain() 149 return reportError(argv0, "error opening " + OutputFilename + ": " + in TableGenMain()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-as/ |
| H A D | llvm-as.cpp | 39 static cl::opt<std::string> OutputFilename("o", variable 73 if (OutputFilename.empty()) { in WriteOutputFile() 75 OutputFilename = "-"; in WriteOutputFile() 78 OutputFilename = (IFN.endswith(".ll") ? IFN.drop_back(3) : IFN).str(); in WriteOutputFile() 79 OutputFilename += ".bc"; in WriteOutputFile() 85 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in WriteOutputFile()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/BrainF/ |
| H A D | BrainFDriver.cpp | 64 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); variable 120 if (OutputFilename == "") { in main() 125 OutputFilename = base+".bc"; in main() 127 if (OutputFilename != "-") { in main() 129 out = new raw_fd_ostream(OutputFilename, EC, sys::fs::OF_None); in main()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llc/ |
| H A D | llc.cpp | 73 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); variable 226 if (OutputFilename.empty()) { in GetOutputStream() 228 OutputFilename = "-"; in GetOutputStream() 233 OutputFilename = std::string(IFN.drop_back(3)); in GetOutputStream() 235 OutputFilename = std::string(IFN.drop_back(4)); in GetOutputStream() 237 OutputFilename = std::string(IFN); in GetOutputStream() 243 OutputFilename += ".cbe.c"; in GetOutputStream() 245 OutputFilename += ".cpp"; in GetOutputStream() 247 OutputFilename += ".s"; in GetOutputStream() 249 OutputFilename += ".s"; in GetOutputStream() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/ |
| H A D | GraphWriter.cpp | 252 std::string OutputFilename = in DisplayGraph() local 265 args.push_back(OutputFilename); in DisplayGraph() 281 args.push_back(OutputFilename); in DisplayGraph() 285 args.push_back(OutputFilename); in DisplayGraph() 289 args.push_back(OutputFilename); in DisplayGraph() 295 (StringRef("start ") + (wait ? "/WAIT " : "") + OutputFilename).str(); in DisplayGraph() 303 return ExecGraphViewer(ViewerPath, args, OutputFilename, wait, ErrMsg); in DisplayGraph()
|
| H A D | Timer.cpp | 73 const std::string &OutputFilename = getLibSupportInfoOutputFilename(); in CreateInfoOutputFile() local 74 if (OutputFilename.empty()) in CreateInfoOutputFile() 76 if (OutputFilename == "-") in CreateInfoOutputFile() 85 OutputFilename, EC, sys::fs::OF_Append | sys::fs::OF_TextWithCRLF); in CreateInfoOutputFile() 90 << OutputFilename << " for appending!\n"; in CreateInfoOutputFile()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-cxxmap/ |
| H A D | llvm-cxxmap.cpp | 35 cl::opt<std::string> OutputFilename("output", cl::value_desc("output"), variable 37 cl::alias OutputFilenameA("o", cl::aliasopt(OutputFilename)); 149 raw_fd_ostream OS(OutputFilename.data(), EC, sys::fs::OF_TextWithCRLF); in main() 151 exitWithErrorCode(EC, OutputFilename); in main()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-cat/ |
| H A D | llvm-cat.cpp | 41 static cl::opt<std::string> OutputFilename("o", cl::Required, variable 87 raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::OF_None); in main() 89 errs() << argv[0] << ": cannot open " << OutputFilename << " for writing: " in main()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-exegesis/ |
| H A D | llvm-exegesis.cpp | 378 const std::string &OutputFilename) { in maybeRunAnalysis() argument 379 if (OutputFilename.empty()) in maybeRunAnalysis() 381 if (OutputFilename != "-") { in maybeRunAnalysis() 382 errs() << "Printing " << Name << " results to file '" << OutputFilename in maybeRunAnalysis() 386 raw_fd_ostream ClustersOS(OutputFilename, ErrorCode, in maybeRunAnalysis() 389 ExitOnFileError(OutputFilename, errorCodeToError(ErrorCode)); in maybeRunAnalysis() 391 ExitOnFileError(OutputFilename, std::move(Err)); in maybeRunAnalysis()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-dis/ |
| H A D | llvm-dis.cpp | 42 OutputFilename("o", cl::desc("Override output filename"), variable 161 } else if (InputFilenames.size() > 1 && !OutputFilename.empty()) { in main() 175 if (OutputFilename == "-" && N > 1) in main() 192 std::string FinalFilename(OutputFilename); in main()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/yaml2obj/ |
| H A D | yaml2obj.cpp | 52 cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"), variable 120 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in main() 122 ErrHandler("failed to open '" + OutputFilename + "': " + EC.message()); in main()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/ |
| H A D | llvm-objcopy.cpp | 265 return deepWriteArchive(Config.OutputFilename, *NewArchiveMembersOrErr, in executeObjcopyOnArchive() 296 if (Config.InputFilename == Config.OutputFilename && OStat.getUser() == 0) in restoreStatOnFile() 301 if (Config.InputFilename != Config.OutputFilename) in restoreStatOnFile() 379 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy() 393 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy() 398 if (Error E = restoreStatOnFile(Config.OutputFilename, Stat, ConfigMgr)) in executeObjcopy()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/bugpoint/ |
| H A D | OptimizerDriver.cpp | 132 std::string &OutputFilename, bool DeleteOutput, in runPasses() argument 144 OutputFilename = std::string(UniqueFilename.str()); in runPasses() 213 Args.push_back(OutputFilename); in runPasses() 249 sys::fs::remove(OutputFilename); in runPasses()
|
| H A D | BugDriver.h | 155 std::string OutputFilename, 232 std::string &OutputFilename, bool DeleteOutput = false,
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-profdata/ |
| H A D | llvm-profdata.cpp | 304 static void writeInstrProfile(StringRef OutputFilename, in writeInstrProfile() argument 308 raw_fd_ostream Output(OutputFilename.data(), EC, in writeInstrProfile() 312 exitWithErrorCode(EC, OutputFilename); in writeInstrProfile() 325 StringRef OutputFilename, in mergeInstrProfile() argument 328 if (OutputFilename.compare("-") == 0) in mergeInstrProfile() 398 writeInstrProfile(OutputFilename, OutputFormat, Contexts[0]->Writer); in mergeInstrProfile() 531 StringRef OutputFilename, ProfileFormat OutputFormat, bool OutputSparse, in supplementInstrProfile() argument 534 if (OutputFilename.compare("-") == 0) in supplementInstrProfile() 564 writeInstrProfile(OutputFilename, OutputFormat, WC->Writer); in supplementInstrProfile() 667 StringRef OutputFilename, ProfileFormat OutputFormat, in mergeSampleProfile() argument [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/opt/ |
| H A D | opt.cpp | 98 OutputFilename("o", cl::desc("Override output filename"), variable 477 if (auto E = timeTraceProfilerWrite(TimeTraceFile, OutputFilename)) { in ~TimeTracerRAII() 697 if (!OutputFilename.empty()) in main() 702 if (OutputFilename.empty()) in main() 703 OutputFilename = "-"; in main() 708 Out.reset(new ToolOutputFile(OutputFilename, EC, Flags)); in main() 888 if (OutputFilename.empty()) in main() 889 OutputFilename = "-"; in main() 892 Out = std::make_unique<ToolOutputFile>(OutputFilename, EC, in main()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-split/ |
| H A D | llvm-split.cpp | 32 OutputFilename("o", cl::desc("Override output filename"), variable 60 OutputFilename + utostr(I++), EC, sys::fs::OF_None)); in main()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-modextract/ |
| H A D | llvm-modextract.cpp | 27 static cl::opt<std::string> OutputFilename("o", cl::Required, variable 57 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in main()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-cov/ |
| H A D | TestingSupport.cpp | 26 cl::opt<std::string> OutputFilename( in convertForTestingMain() local 103 if (auto Err = sys::fs::openFileForWrite(OutputFilename, FD)) { in convertForTestingMain()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-ifs/ |
| H A D | llvm-ifs.cpp | 55 static cl::opt<std::string> OutputFilename("o", cl::desc("<output file>"), variable 405 elfabi::writeBinaryStub(OutputFilename, ElfStub, Target); in writeIfso() 414 raw_fd_ostream Out(OutputFilename, SysErr); in writeIfso() 416 WithColor::error() << "Couldn't open " << OutputFilename in writeIfso()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-profgen/ |
| H A D | ProfileGenerator.cpp | 12 static cl::opt<std::string> OutputFilename("output", cl::value_desc("output"), variable 16 cl::aliasopt(OutputFilename)); 94 auto WriterOrErr = SampleProfileWriter::create(OutputFilename, OutputFormat); in write() 96 exitWithError(EC, OutputFilename); in write()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-mca/ |
| H A D | llvm-mca.cpp | 74 static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"), variable 247 if (OutputFilename == "") in getOutputStream() 248 OutputFilename = "-"; in getOutputStream() 250 auto Out = std::make_unique<ToolOutputFile>(OutputFilename, EC, in getOutputStream()
|