Home
last modified time | relevance | path

Searched refs:OutputFilename (Results 1 – 25 of 59) sorted by relevance

123

/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/
H A Dllvm-reduce.cpp70 static cl::opt<std::string> OutputFilename( variable
74 cl::aliasopt(OutputFilename),
128 OutputFilename = InputFilename.c_str(); in determineOutputType()
129 } else if (OutputFilename.empty()) { in determineOutputType()
133 OutputFilename = in determineOutputType()
137 return {OutputFilename, OutputBitcode}; in determineOutputType()
188 StringRef OutputFilename; in main() local
190 std::tie(OutputFilename, OutputBitcode) = in main()
195 std::move(TM), ToolName, OutputFilename, InputIsBitcode, in main()
211 if (OutputFilename == "-") in main()
H A DTestRunner.cpp24 OutputFilename(OutputName), InputIsBitcode(InputIsBitcode), in TestRunner()
64 raw_fd_ostream Out(OutputFilename, EC, in writeOutput()
73 errs() << Message << OutputFilename << '\n'; in writeOutput()
H A DTestRunner.h32 StringRef OutputFilename, bool InputIsBitcode, bool OutputBitcode);
62 StringRef OutputFilename; variable
/openbsd-src/gnu/llvm/clang/lib/Driver/ToolChains/
H A DInterfaceStubs.cpp36 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()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DFileUtilities.cpp343 StringRef OutputFilename, bool CopyDates, in apply() argument
354 if (OutputFilename == "-") in apply()
357 if (std::error_code EC = sys::fs::openFileForWrite(OutputFilename, FD, in apply()
359 return createFileError(OutputFilename, EC); in apply()
364 return createFileError(OutputFilename, EC); in apply()
368 return createFileError(OutputFilename, EC); in apply()
372 if (OutputFilename == InputFilename && OStat.getUser() == 0) in apply()
377 if (OutputFilename != InputFilename) in apply()
380 if (std::error_code EC = sys::fs::setPermissions(OutputFilename, Perm)) in apply()
384 return createFileError(OutputFilename, EC); in apply()
[all …]
H A DGraphWriter.cpp269 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()
H A DTimer.cpp97 const std::string &OutputFilename = getLibSupportInfoOutputFilename(); in CreateInfoOutputFile() local
98 if (OutputFilename.empty()) in CreateInfoOutputFile()
100 if (OutputFilename == "-") in CreateInfoOutputFile()
109 OutputFilename, EC, sys::fs::OF_Append | sys::fs::OF_TextWithCRLF); in CreateInfoOutputFile()
114 << OutputFilename << " for appending!\n"; in CreateInfoOutputFile()
/openbsd-src/gnu/llvm/llvm/lib/TableGen/
H A DMain.cpp30 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()
/openbsd-src/gnu/llvm/llvm/tools/llvm-lto/
H A Dllvm-lto.cpp205 static cl::opt<std::string> OutputFilename("o", cl::init(""), variable
496 assert(!OutputFilename.empty()); in createCombinedModuleSummaryIndex()
497 raw_fd_ostream OS(OutputFilename + ".thinlto.bc", EC, in createCombinedModuleSummaryIndex()
499 error(EC, "error opening the file '" + OutputFilename + ".thinlto.bc'"); in createCombinedModuleSummaryIndex()
641 if (OutputFilename.empty()) in thinLink()
660 raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::OF_None); in thinLink()
661 error(EC, "error opening the file '" + OutputFilename + "'"); in thinLink()
670 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in distributedIndexes()
692 std::string OutputName = OutputFilename; in distributedIndexes()
707 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in emitImports()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-as/
H A Dllvm-as.cpp39 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()
/openbsd-src/gnu/llvm/llvm/examples/BrainF/
H A DBrainFDriver.cpp64 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()
/openbsd-src/gnu/llvm/llvm/tools/llvm-dwarfutil/
H A Dllvm-dwarfutil.cpp248 std::string OutputFilename = Opts.getSeparateDebugFileName(); in saveSeparateDebugInfo() local
250 Config.Common.OutputFilename = OutputFilename; in saveSeparateDebugInfo()
255 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSeparateDebugInfo()
273 Config.Common.OutputFilename = Opts.OutputFileName; in saveNonDebugInfo()
280 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveNonDebugInfo()
354 std::string OutputFilename = Opts.getSeparateDebugFileName(); in saveSeparateLinkedDebugInfo() local
356 Config.Common.OutputFilename = OutputFilename; in saveSeparateLinkedDebugInfo()
366 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSeparateLinkedDebugInfo()
387 Config.Common.OutputFilename = Opts.OutputFileName; in saveSingleLinkedDebugInfo()
394 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSingleLinkedDebugInfo()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llc/
H A Dllc.cpp75 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); variable
243 if (OutputFilename.empty()) { in GetOutputStream()
245 OutputFilename = "-"; in GetOutputStream()
250 OutputFilename = std::string(IFN.drop_back(3)); in GetOutputStream()
252 OutputFilename = std::string(IFN.drop_back(4)); 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()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-cat/
H A Dllvm-cat.cpp41 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()
/openbsd-src/gnu/llvm/llvm/tools/llvm-cxxmap/
H A Dllvm-cxxmap.cpp41 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()
/openbsd-src/gnu/llvm/llvm/tools/opt/
H A Dopt.cpp99 OutputFilename("o", cl::desc("Override output filename"), variable
324 if (auto E = timeTraceProfilerWrite(TimeTraceFile, OutputFilename)) { in ~TimeTracerRAII()
593 if (!OutputFilename.empty()) in main()
598 if (OutputFilename.empty()) in main()
599 OutputFilename = "-"; in main()
604 Out.reset(new ToolOutputFile(OutputFilename, EC, Flags)); in main()
789 if (OutputFilename.empty()) in main()
790 OutputFilename = "-"; in main()
793 Out = std::make_unique<ToolOutputFile>(OutputFilename, EC, in main()
/openbsd-src/gnu/llvm/llvm/tools/llvm-dis/
H A Dllvm-dis.cpp45 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()
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dobj2yaml.cpp27 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()
/openbsd-src/gnu/llvm/llvm/tools/yaml2obj/
H A Dyaml2obj.cpp58 cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"), variable
126 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in main()
128 ErrHandler("failed to open '" + OutputFilename + "': " + EC.message()); in main()
/openbsd-src/gnu/llvm/llvm/tools/bugpoint/
H A DOptimizerDriver.cpp132 std::string &OutputFilename, bool DeleteOutput, in runPasses() argument
144 OutputFilename = std::string(UniqueFilename.str()); in runPasses()
213 Args.push_back(OutputFilename); in runPasses()
250 sys::fs::remove(OutputFilename); in runPasses()
/openbsd-src/gnu/llvm/llvm/tools/llvm-split/
H A Dllvm-split.cpp36 static cl::opt<std::string> OutputFilename("o", variable
69 OutputFilename + utostr(I++), EC, sys::fs::OF_None)); in main()
/openbsd-src/gnu/llvm/llvm/tools/llvm-exegesis/
H A Dllvm-exegesis.cpp513 const std::string &OutputFilename) { in maybeRunAnalysis() argument
514 if (OutputFilename.empty()) in maybeRunAnalysis()
516 if (OutputFilename != "-") { in maybeRunAnalysis()
517 errs() << "Printing " << Name << " results to file '" << OutputFilename in maybeRunAnalysis()
521 raw_fd_ostream ClustersOS(OutputFilename, ErrorCode, in maybeRunAnalysis()
524 ExitOnFileError(OutputFilename, errorCodeToError(ErrorCode)); in maybeRunAnalysis()
526 ExitOnFileError(OutputFilename, std::move(Err)); in maybeRunAnalysis()
/openbsd-src/gnu/llvm/llvm/tools/llvm-modextract/
H A Dllvm-modextract.cpp32 static cl::opt<std::string> OutputFilename("o", cl::Required, variable
67 new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); in main()
/openbsd-src/gnu/llvm/llvm/tools/llvm-objcopy/
H A Dllvm-objcopy.cpp194 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()
/openbsd-src/gnu/llvm/llvm/tools/llvm-cov/
H A DTestingSupport.cpp27 cl::opt<std::string> OutputFilename( in convertForTestingMain() local
104 if (auto Err = sys::fs::openFileForWrite(OutputFilename, FD)) { in convertForTestingMain()

123