/external/llvm-project/llvm/tools/llvm-reduce/ |
D | llvm-reduce.cpp | 53 OutputFilename("output", variable 56 cl::aliasopt(OutputFilename), 85 OutputFilename = InputFilename.c_str(); in writeOutput() 86 else if (OutputFilename.empty() || OutputFilename == "-") in writeOutput() 87 OutputFilename = "reduced.ll"; in writeOutput() 90 raw_fd_ostream Out(OutputFilename, EC); in writeOutput() 96 errs() << Message << OutputFilename << "\n"; in writeOutput() 119 if (OutputFilename == "-") in main()
|
/external/llvm-project/clang/lib/Driver/ToolChains/ |
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()
|
/external/llvm/tools/llvm-lto/ |
D | llvm-lto.cpp | 130 static cl::opt<std::string> OutputFilename("o", cl::init(""), variable 301 assert(!OutputFilename.empty()); in createCombinedModuleSummaryIndex() 302 raw_fd_ostream OS(OutputFilename + ".thinlto.bc", EC, in createCombinedModuleSummaryIndex() 304 error(EC, "error opening the file '" + OutputFilename + ".thinlto.bc'"); in createCombinedModuleSummaryIndex() 433 if (OutputFilename.empty()) in thinLink() 450 raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::F_None); in thinLink() 451 error(EC, "error opening the file '" + OutputFilename + "'"); in thinLink() 461 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in distributedIndexes() 478 std::string OutputName = OutputFilename; in distributedIndexes() 493 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in emitImports() [all …]
|
/external/llvm/tools/llvm-as/ |
D | llvm-as.cpp | 38 static cl::opt<std::string> OutputFilename("o", variable 64 if (OutputFilename.empty()) { in WriteOutputFile() 66 OutputFilename = "-"; in WriteOutputFile() 69 OutputFilename = (IFN.endswith(".ll") ? IFN.drop_back(3) : IFN).str(); in WriteOutputFile() 70 OutputFilename += ".bc"; in WriteOutputFile() 76 new tool_output_file(OutputFilename, EC, sys::fs::F_None)); in WriteOutputFile()
|
/external/llvm/tools/llc/ |
D | llc.cpp | 65 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); variable 149 if (OutputFilename.empty()) { in GetOutputStream() 151 OutputFilename = "-"; in GetOutputStream() 156 OutputFilename = IFN.drop_back(3); in GetOutputStream() 158 OutputFilename = IFN.drop_back(4); in GetOutputStream() 160 OutputFilename = IFN; in GetOutputStream() 166 OutputFilename += ".cbe.c"; in GetOutputStream() 168 OutputFilename += ".cpp"; in GetOutputStream() 170 OutputFilename += ".s"; in GetOutputStream() 172 OutputFilename += ".s"; in GetOutputStream() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/ |
D | Main.cpp | 32 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), variable 66 if (OutputFilename == "-") in createDependencyFile() 74 DepOut.os() << OutputFilename << ":"; in createDependencyFile() 124 if (auto ExistingOrErr = MemoryBuffer::getFile(OutputFilename)) in TableGenMain() 130 ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_None); in TableGenMain() 132 return reportError(argv0, "error opening " + OutputFilename + ":" + in TableGenMain()
|
/external/llvm/tools/llvm-profdata/ |
D | llvm-profdata.cpp | 121 StringRef OutputFilename, in mergeInstrProfile() argument 123 if (OutputFilename.compare("-") == 0) in mergeInstrProfile() 130 raw_fd_ostream Output(OutputFilename.data(), EC, sys::fs::F_None); in mergeInstrProfile() 132 exitWithErrorCode(EC, OutputFilename); in mergeInstrProfile() 169 StringRef OutputFilename, in mergeSampleProfile() argument 173 SampleProfileWriter::create(OutputFilename, FormatMap[OutputFormat]); in mergeSampleProfile() 175 exitWithErrorCode(EC, OutputFilename); in mergeSampleProfile() 273 cl::opt<std::string> OutputFilename("output", cl::value_desc("output"), in merge_main() local 277 cl::aliasopt(OutputFilename)); in merge_main() 316 mergeInstrProfile(WeightedInputs, OutputFilename, OutputFormat, in merge_main() [all …]
|
/external/llvm/lib/TableGen/ |
D | Main.cpp | 32 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), variable 53 if (OutputFilename == "-") { in createDependencyFile() 64 DepOut.os() << OutputFilename << ":"; in createDependencyFile() 98 tool_output_file Out(OutputFilename, EC, sys::fs::F_Text); in TableGenMain() 100 errs() << argv0 << ": error opening " << OutputFilename << ":" in TableGenMain()
|
/external/llvm-project/llvm/lib/TableGen/ |
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() 140 if (auto ExistingOrErr = MemoryBuffer::getFile(OutputFilename)) in TableGenMain() 146 ToolOutputFile OutFile(OutputFilename, EC, sys::fs::OF_None); in TableGenMain() 148 return reportError(argv0, "error opening " + OutputFilename + ": " + in TableGenMain()
|
/external/llvm-project/llvm/tools/llvm-lto/ |
D | llvm-lto.cpp | 195 static cl::opt<std::string> OutputFilename("o", cl::init(""), variable 455 assert(!OutputFilename.empty()); in createCombinedModuleSummaryIndex() 456 raw_fd_ostream OS(OutputFilename + ".thinlto.bc", EC, in createCombinedModuleSummaryIndex() 458 error(EC, "error opening the file '" + OutputFilename + ".thinlto.bc'"); in createCombinedModuleSummaryIndex() 599 if (OutputFilename.empty()) in thinLink() 618 raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::OF_None); in thinLink() 619 error(EC, "error opening the file '" + OutputFilename + "'"); in thinLink() 628 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in distributedIndexes() 650 std::string OutputName = OutputFilename; in distributedIndexes() 665 if (InputFilenames.size() != 1 && !OutputFilename.empty()) in emitImports() [all …]
|
/external/llvm/tools/llvm-dis/ |
D | llvm-dis.cpp | 45 OutputFilename("o", cl::desc("Override output filename"), variable 197 OutputFilename = "-"; in main() 199 if (OutputFilename.empty()) { // Unspecified output, infer it. in main() 201 OutputFilename = "-"; in main() 204 OutputFilename = (IFN.endswith(".bc") ? IFN.drop_back(3) : IFN).str(); in main() 205 OutputFilename += ".ll"; in main() 211 new tool_output_file(OutputFilename, EC, sys::fs::F_None)); in main()
|
/external/llvm-project/llvm/tools/llvm-as/ |
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()
|
/external/llvm/examples/BrainF/ |
D | BrainFDriver.cpp | 64 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); variable 117 if (OutputFilename == "") { in main() 122 OutputFilename = base+".bc"; in main() 124 if (OutputFilename != "-") { in main() 126 out = new raw_fd_ostream(OutputFilename, EC, sys::fs::F_None); in main()
|
/external/llvm-project/llvm/examples/BrainF/ |
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()
|
/external/llvm/tools/yaml2obj/ |
D | yaml2obj.cpp | 40 static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"), variable 76 if (OutputFilename.empty()) in main() 77 OutputFilename = "-"; in main() 81 new tool_output_file(OutputFilename, EC, sys::fs::F_None)); in main()
|
/external/llvm-project/llvm/tools/llc/ |
D | llc.cpp | 73 OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); variable 198 if (OutputFilename.empty()) { in GetOutputStream() 200 OutputFilename = "-"; in GetOutputStream() 205 OutputFilename = std::string(IFN.drop_back(3)); in GetOutputStream() 207 OutputFilename = std::string(IFN.drop_back(4)); in GetOutputStream() 209 OutputFilename = std::string(IFN); in GetOutputStream() 215 OutputFilename += ".cbe.c"; in GetOutputStream() 217 OutputFilename += ".cpp"; in GetOutputStream() 219 OutputFilename += ".s"; in GetOutputStream() 221 OutputFilename += ".s"; in GetOutputStream() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | GraphWriter.cpp | 227 std::string OutputFilename = in DisplayGraph() local 240 args.push_back(OutputFilename); in DisplayGraph() 256 args.push_back(OutputFilename); in DisplayGraph() 260 args.push_back(OutputFilename); in DisplayGraph() 264 args.push_back(OutputFilename); in DisplayGraph() 270 (StringRef("start ") + (wait ? "/WAIT " : "") + OutputFilename).str(); in DisplayGraph() 278 return ExecGraphViewer(ViewerPath, args, OutputFilename, wait, ErrMsg); in DisplayGraph()
|
/external/llvm-project/llvm/lib/Support/ |
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()
|
/external/llvm/lib/Support/ |
D | GraphWriter.cpp | 219 std::string OutputFilename = in DisplayGraph() local 232 args.push_back(OutputFilename.c_str()); in DisplayGraph() 249 args.push_back(OutputFilename.c_str()); in DisplayGraph() 253 args.push_back(OutputFilename.c_str()); in DisplayGraph() 257 args.push_back(OutputFilename.c_str()); in DisplayGraph() 263 (StringRef("start ") + (wait ? "/WAIT " : "") + OutputFilename).str(); in DisplayGraph() 272 return ExecGraphViewer(ViewerPath, args, OutputFilename, wait, ErrMsg); in DisplayGraph()
|
/external/llvm-project/libclc/utils/ |
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::F_None)); in main() 101 new tool_output_file(OutputFilename, EC, sys::fs::F_None)); in main()
|
/external/llvm-project/llvm/tools/llvm-cat/ |
D | llvm-cat.cpp | 41 static cl::opt<std::string> OutputFilename("o", cl::Required, variable 88 raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::OF_None); in main() 90 errs() << argv[0] << ": cannot open " << OutputFilename << " for writing: " in main()
|
/external/llvm-project/llvm/tools/llvm-cxxmap/ |
D | llvm-cxxmap.cpp | 34 cl::opt<std::string> OutputFilename("output", cl::value_desc("output"), variable 36 cl::alias OutputFilenameA("o", cl::aliasopt(OutputFilename)); 148 raw_fd_ostream OS(OutputFilename.data(), EC, sys::fs::OF_Text); in main() 150 exitWithErrorCode(EC, OutputFilename); in main()
|
/external/llvm-project/llvm/tools/llvm-exegesis/ |
D | llvm-exegesis.cpp | 376 const std::string &OutputFilename) { in maybeRunAnalysis() argument 377 if (OutputFilename.empty()) in maybeRunAnalysis() 379 if (OutputFilename != "-") { in maybeRunAnalysis() 380 errs() << "Printing " << Name << " results to file '" << OutputFilename in maybeRunAnalysis() 384 raw_fd_ostream ClustersOS(OutputFilename, ErrorCode, in maybeRunAnalysis() 387 ExitOnFileError(OutputFilename, errorCodeToError(ErrorCode)); in maybeRunAnalysis() 389 ExitOnFileError(OutputFilename, std::move(Err)); in maybeRunAnalysis()
|
/external/llvm/tools/opt/ |
D | opt.cpp | 82 OutputFilename("o", cl::desc("Override output filename"), variable 415 if (!OutputFilename.empty()) in main() 420 if (OutputFilename.empty()) in main() 421 OutputFilename = "-"; in main() 424 Out.reset(new tool_output_file(OutputFilename, EC, sys::fs::F_None)); in main() 509 if (OutputFilename.empty()) in main() 510 OutputFilename = "-"; in main() 513 Out = llvm::make_unique<tool_output_file>(OutputFilename, EC, in main()
|
/external/llvm-project/llvm/tools/yaml2obj/ |
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()
|