| /llvm-project-15.0.7/llvm/tools/llvm-reduce/ |
| H A D | llvm-reduce.cpp | 73 static cl::opt<std::string> OutputFilename( variable 76 cl::aliasopt(OutputFilename), 105 OutputFilename = InputFilename.c_str(); in writeOutput() 106 else if (OutputFilename.empty() || OutputFilename == "-") in writeOutput() 107 OutputFilename = M.isMIR() ? "reduced.mir" : "reduced.ll"; in writeOutput() 109 raw_fd_ostream Out(OutputFilename, EC); in writeOutput() 115 errs() << Message << OutputFilename << "\n"; in writeOutput() 187 if (OutputFilename == "-") in main()
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | InterfaceStubs.cpp | 36 SmallString<128> OutputFilename(Output.getFilename()); in ConstructJob() local 37 if (OutputFilename != "-") { in ConstructJob() 39 llvm::sys::path::replace_extension(OutputFilename, in ConstructJob() 42 OutputFilename += (WriteBin ? ".ifso" : ".ifs"); in ConstructJob() 45 CmdArgs.push_back(Args.MakeArgString(OutputFilename.c_str())); in ConstructJob()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | FileUtilities.cpp | 342 StringRef OutputFilename, bool CopyDates, in apply() argument 353 if (OutputFilename == "-") in apply() 356 if (std::error_code EC = sys::fs::openFileForWrite(OutputFilename, FD, in apply() 358 return createFileError(OutputFilename, EC); in apply() 363 return createFileError(OutputFilename, EC); in apply() 367 return createFileError(OutputFilename, EC); in apply() 371 if (OutputFilename == InputFilename && OStat.getUser() == 0) in apply() 376 if (OutputFilename != InputFilename) in apply() 379 if (std::error_code EC = sys::fs::setPermissions(OutputFilename, Perm)) in apply() 383 return createFileError(OutputFilename, EC); in apply() [all …]
|
| H A D | GraphWriter.cpp | 269 std::string OutputFilename = in DisplayGraph() local 282 args.push_back(OutputFilename); in DisplayGraph() 298 args.push_back(OutputFilename); in DisplayGraph() 302 args.push_back(OutputFilename); in DisplayGraph() 306 args.push_back(OutputFilename); in DisplayGraph() 312 (StringRef("start ") + (wait ? "/WAIT " : "") + OutputFilename).str(); in DisplayGraph() 320 return ExecGraphViewer(ViewerPath, args, OutputFilename, wait, ErrMsg); in DisplayGraph()
|
| /llvm-project-15.0.7/llvm/lib/TableGen/ |
| H A D | Main.cpp | 30 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), variable 71 if (OutputFilename == "-") in createDependencyFile() 79 DepOut.os() << OutputFilename << ":"; in createDependencyFile() 143 MemoryBuffer::getFile(OutputFilename, /*IsText=*/true)) in TableGenMain() 149 ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_Text); in TableGenMain() 151 return reportError(argv0, "error opening " + OutputFilename + ": " + in TableGenMain()
|
| /llvm-project-15.0.7/llvm/tools/llvm-lto/ |
| H A D | llvm-lto.cpp | 496 assert(!OutputFilename.empty()); in createCombinedModuleSummaryIndex() 641 if (OutputFilename.empty()) in thinLink() 692 std::string OutputName = OutputFilename; in distributedIndexes() 722 std::string OutputName = OutputFilename; in emitImports() 752 std::string OutputName = OutputFilename; in promote() 785 std::string OutputName = OutputFilename; in import() 818 std::string OutputName = OutputFilename; in internalize() 843 std::string OutputName = OutputFilename; in optimize() 872 std::string OutputName = OutputFilename; in codegen() 889 if (!OutputFilename.empty()) in runAll() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-as/ |
| H A D | llvm-as.cpp | 38 static cl::opt<std::string> OutputFilename("o", variable 72 if (OutputFilename.empty()) { in WriteOutputFile() 74 OutputFilename = "-"; in WriteOutputFile() 77 OutputFilename = (IFN.endswith(".ll") ? IFN.drop_back(3) : IFN).str(); in WriteOutputFile() 78 OutputFilename += ".bc"; in WriteOutputFile() 84 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in WriteOutputFile()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/tools/llvm-dwarfutil/ |
| H A D | llvm-dwarfutil.cpp | 232 std::string OutputFilename = Opts.getSeparateDebugFileName(); in saveSeparateDebugInfo() local 234 Config.Common.OutputFilename = OutputFilename; in saveSeparateDebugInfo() 239 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSeparateDebugInfo() 257 Config.Common.OutputFilename = Opts.OutputFileName; in saveNonDebugInfo() 264 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveNonDebugInfo() 338 std::string OutputFilename = Opts.getSeparateDebugFileName(); in saveSeparateLinkedDebugInfo() local 340 Config.Common.OutputFilename = OutputFilename; in saveSeparateLinkedDebugInfo() 350 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSeparateLinkedDebugInfo() 371 Config.Common.OutputFilename = Opts.OutputFileName; in saveSingleLinkedDebugInfo() 378 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSingleLinkedDebugInfo() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llc/ |
| H A D | llc.cpp | 243 if (OutputFilename.empty()) { in GetOutputStream() 245 OutputFilename = "-"; in GetOutputStream() 250 OutputFilename = std::string(IFN.drop_back(3)); in GetOutputStream() 254 OutputFilename = std::string(IFN); in GetOutputStream() 260 OutputFilename += ".cbe.c"; in GetOutputStream() 262 OutputFilename += ".cpp"; in GetOutputStream() 264 OutputFilename += ".s"; in GetOutputStream() 266 OutputFilename += ".s"; in GetOutputStream() 270 OutputFilename += ".obj"; in GetOutputStream() 272 OutputFilename += ".o"; in GetOutputStream() [all …]
|
| /llvm-project-15.0.7/libclc/utils/ |
| H A D | prepare-builtins.cpp | 29 OutputFilename("o", cl::desc("Output filename"), variable 90 if (OutputFilename.empty()) { in main() 98 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in main() 101 new tool_output_file(OutputFilename, EC, sys::fs::OF_None)); in main()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/tools/llvm-cxxmap/ |
| H A D | llvm-cxxmap.cpp | 41 cl::opt<std::string> OutputFilename("output", cl::value_desc("output"), variable 44 cl::alias OutputFilenameA("o", cl::aliasopt(OutputFilename), 160 raw_fd_ostream OS(OutputFilename.data(), EC, sys::fs::OF_TextWithCRLF); in main() 162 exitWithErrorCode(EC, OutputFilename); in main()
|
| /llvm-project-15.0.7/llvm/tools/llvm-exegesis/ |
| H A D | llvm-exegesis.cpp | 385 const std::string &OutputFilename) { in maybeRunAnalysis() argument 386 if (OutputFilename.empty()) in maybeRunAnalysis() 388 if (OutputFilename != "-") { in maybeRunAnalysis() 389 errs() << "Printing " << Name << " results to file '" << OutputFilename in maybeRunAnalysis() 393 raw_fd_ostream ClustersOS(OutputFilename, ErrorCode, in maybeRunAnalysis() 396 ExitOnFileError(OutputFilename, errorCodeToError(ErrorCode)); in maybeRunAnalysis() 398 ExitOnFileError(OutputFilename, std::move(Err)); in maybeRunAnalysis()
|
| /llvm-project-15.0.7/llvm/tools/yaml2obj/ |
| H A D | yaml2obj.cpp | 54 cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"), variable 122 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in main() 124 ErrHandler("failed to open '" + OutputFilename + "': " + EC.message()); in main()
|
| /llvm-project-15.0.7/llvm/tools/llvm-dis/ |
| H A D | llvm-dis.cpp | 45 static cl::opt<std::string> OutputFilename("o", variable 176 } else if (InputFilenames.size() > 1 && !OutputFilename.empty()) { in main() 195 if (OutputFilename == "-" && N > 1) in main() 217 std::string FinalFilename(OutputFilename); in main()
|
| /llvm-project-15.0.7/llvm/tools/obj2yaml/ |
| H A D | obj2yaml.cpp | 27 static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"), variable 111 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_Text)); in main() 114 << "failed to open '" + OutputFilename + "': " + EC.message() << '\n'; in main()
|
| /llvm-project-15.0.7/bolt/tools/llvm-bolt-fuzzer/ |
| H A D | llvm-bolt-fuzzer.cpp | 18 extern cl::opt<std::string> OutputFilename; 25 opts::OutputFilename = "/dev/null"; in LLVMFuzzerTestOneInput()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/tools/llvm-split/ |
| H A D | llvm-split.cpp | 36 static cl::opt<std::string> OutputFilename("o", variable 69 OutputFilename + utostr(I++), EC, sys::fs::OF_None)); in main()
|
| /llvm-project-15.0.7/llvm/tools/opt/ |
| H A D | opt.cpp | 98 OutputFilename("o", cl::desc("Override output filename"), variable 404 if (auto E = timeTraceProfilerWrite(TimeTraceFile, OutputFilename)) { in ~TimeTracerRAII() 647 if (!OutputFilename.empty()) in main() 652 if (OutputFilename.empty()) in main() 653 OutputFilename = "-"; in main() 658 Out.reset(new ToolOutputFile(OutputFilename, EC, Flags)); in main() 841 if (OutputFilename.empty()) in main() 842 OutputFilename = "-"; in main() 845 Out = std::make_unique<ToolOutputFile>(OutputFilename, EC, in main()
|
| /llvm-project-15.0.7/llvm/unittests/ObjCopy/ |
| H A D | ObjCopyTest.cpp | 133 Config.Common.OutputFilename); in callObjCopy() 199 Config.Common.OutputFilename = "a.out"; in copySimpleInMemoryFileImpl() 260 Config.Common.OutputFilename = "a.out"; in addOrUpdateSectionToFileImpl() 354 Config.Common.OutputFilename = "a.out"; in removeSectionByPatternImpl()
|
| /llvm-project-15.0.7/llvm/tools/llvm-modextract/ |
| H A D | llvm-modextract.cpp | 32 static cl::opt<std::string> OutputFilename("o", cl::Required, variable 67 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in main()
|
| /llvm-project-15.0.7/llvm/tools/llvm-objcopy/ |
| H A D | llvm-objcopy.cpp | 194 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy() 208 if (Error E = writeToOutput(Config.OutputFilename, ObjcopyFunc)) in executeObjcopy() 214 PermsApplierOrErr->apply(Config.OutputFilename, Config.PreserveDates)) in executeObjcopy()
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | TestingSupport.cpp | 27 cl::opt<std::string> OutputFilename( in convertForTestingMain() local 104 if (auto Err = sys::fs::openFileForWrite(OutputFilename, FD)) { in convertForTestingMain()
|