reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/CommandLine.h
   66 bool ParseCommandLineOptions(int argc, const char *const *argv,

References

examples/BrainF/BrainFDriver.cpp
  107   cl::ParseCommandLineOptions(argc, argv, " BrainF compiler\n");
examples/HowToUseLLJIT/HowToUseLLJIT.cpp
   65   cl::ParseCommandLineOptions(argc, argv, "HowToUseLLJIT");
examples/Kaleidoscope/BuildingAJIT/Chapter5/Server/server.cpp
   47   cl::ParseCommandLineOptions(argc, argv, "LLVM lazy JIT example.\n");
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
 1265   cl::ParseCommandLineOptions(argc, argv, "Building A JIT - Client.\n");
examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp
   38   cl::ParseCommandLineOptions(argc, argv, "HowToUseLLJIT");
examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp
   86   cl::ParseCommandLineOptions(argc, argv, "HowToUseLLJIT");
examples/SpeculativeJIT/SpeculativeJIT.cpp
  153   cl::ParseCommandLineOptions(argc, argv, "SpeculativeJIT");
lib/FuzzMutate/FuzzerCLI.cpp
   35   cl::ParseCommandLineOptions(CLArgs.size(), CLArgs.data());
   71   cl::ParseCommandLineOptions(CLArgs.size(), CLArgs.data());
  135   cl::ParseCommandLineOptions(CLArgs.size(), CLArgs.data());
lib/LTO/LTOCodeGenerator.cpp
  640     cl::ParseCommandLineOptions(CodegenArgv.size(), CodegenArgv.data());
lib/Support/CommandLine.cpp
 1217   ParseCommandLineOptions(newArgc, &newArgv[0], StringRef(Overview));
 2493   llvm::cl::ParseCommandLineOptions(argc, argv, StringRef(Overview),
tools/bugpoint/bugpoint.cpp
  172   cl::ParseCommandLineOptions(argc, argv,
tools/clang/lib/CodeGen/BackendUtil.cpp
  751   llvm::cl::ParseCommandLineOptions(BackendArgs.size() - 1,
tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
  237     llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args.get());
tools/clang/lib/Tooling/CommonOptionsParser.cpp
  116   if (!cl::ParseCommandLineOptions(argc, argv, Overview, &OS)) {
tools/clang/tools/arcmt-test/arcmt-test.cpp
  354   llvm::cl::ParseCommandLineOptions(optargc, argv, "arcmt-test");
tools/clang/tools/c-index-test/core_main.cpp
  340   cl::ParseCommandLineOptions(argc, argv, "index-test-core");
tools/clang/tools/clang-diff/ClangDiff.cpp
  450   if (!cl::ParseCommandLineOptions(argc, argv)) {
tools/clang/tools/clang-format/ClangFormat.cpp
  511   cl::ParseCommandLineOptions(
tools/clang/tools/clang-import-test/clang-import-test.cpp
  353   llvm::cl::ParseCommandLineOptions(argc, argv);
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  823   cl::ParseCommandLineOptions(
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  312   cl::ParseCommandLineOptions(
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp
  124   if (!llvm::cl::ParseCommandLineOptions(argc, argv))
tools/clang/tools/diagtool/FindDiagnosticID.cpp
   54   llvm::cl::ParseCommandLineOptions((int)Args.size(), Args.data(),
tools/clang/tools/driver/cc1as_main.cpp
  604     llvm::cl::ParseCommandLineOptions(NumArgs + 1, Args.get());
tools/clang/tools/extra/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
   92   cl::ParseCommandLineOptions(argc, argv);
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp
   92     bool Ok = llvm::cl::ParseCommandLineOptions(Argv.size(), Argv.data(),
  278   llvm::cl::ParseCommandLineOptions(argc, argv, Overview);
tools/clang/tools/extra/clangd/tool/ClangdMain.cpp
  452   llvm::cl::ParseCommandLineOptions(argc, argv, Overview,
tools/clang/tools/extra/modularize/Modularize.cpp
  825   cl::ParseCommandLineOptions(Argc, Argv, "modularize.\n");
tools/clang/utils/TableGen/TableGen.cpp
  354   cl::ParseCommandLineOptions(argc, argv);
tools/gold/gold-plugin.cpp
 1082     cl::ParseCommandLineOptions(NumOpts, &options::extra[0]);
tools/llc/llc.cpp
  325   cl::ParseCommandLineOptions(argc, argv, "llvm system compiler\n");
tools/lld/COFF/Driver.cpp
 1116   cl::ParseCommandLineOptions(v.size(), v.data());
tools/lld/ELF/Driver.cpp
  809   if (cl::ParseCommandLineOptions(2, argv, "", &os))
tools/lld/lib/Driver/DarwinLdDriver.cpp
  310     llvm::cl::ParseCommandLineOptions(numArgs + 1, args);
tools/lld/wasm/Driver.cpp
  682   cl::ParseCommandLineOptions(v.size(), v.data());
tools/lldb/tools/lldb-test/lldb-test.cpp
 1069   cl::ParseCommandLineOptions(argc, argv, "LLDB Testing Utility\n");
tools/lldb/utils/TableGen/LLDBTableGen.cpp
   69   cl::ParseCommandLineOptions(argc, argv);
tools/lli/lli.cpp
  371   cl::ParseCommandLineOptions(argc, argv,
tools/llvm-as/llvm-as.cpp
  118   cl::ParseCommandLineOptions(argc, argv, "llvm .ll -> .bc assembler\n");
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
   88   cl::ParseCommandLineOptions(argc, argv, "llvm-bcanalyzer file analyzer\n");
tools/llvm-cat/llvm-cat.cpp
   52   cl::ParseCommandLineOptions(argc, argv, "Module concatenation");
tools/llvm-cfi-verify/llvm-cfi-verify.cpp
  246   cl::ParseCommandLineOptions(
tools/llvm-cov/CodeCoverage.cpp
  655     cl::ParseCommandLineOptions(argc, argv, "LLVM code coverage tool\n");
tools/llvm-cov/TestingSupport.cpp
   30   cl::ParseCommandLineOptions(argc, argv, "LLVM code coverage tool\n");
tools/llvm-cov/gcov.cpp
  140   cl::ParseCommandLineOptions(argc, argv, "LLVM code coverage tool\n");
tools/llvm-cxxdump/llvm-cxxdump.cpp
  552   cl::ParseCommandLineOptions(argc, argv, "LLVM C++ ABI Data Dumper\n");
tools/llvm-cxxfilt/llvm-cxxfilt.cpp
  138   cl::ParseCommandLineOptions(argc, argv, "llvm symbol undecoration tool\n");
tools/llvm-cxxmap/llvm-cxxmap.cpp
  133   cl::ParseCommandLineOptions(argc, argv, "LLVM C++ mangled name remapper\n");
tools/llvm-diff/llvm-diff.cpp
   68   cl::ParseCommandLineOptions(argc, argv);
tools/llvm-dis/llvm-dis.cpp
  157   cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .ll disassembler\n");
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  573   cl::ParseCommandLineOptions(
tools/llvm-dwp/llvm-dwp.cpp
  655   cl::ParseCommandLineOptions(argc, argv, "merge split dwarf (.dwo) files\n");
tools/llvm-elfabi/llvm-elfabi.cpp
  119   cl::ParseCommandLineOptions(argc, argv);
tools/llvm-exegesis/llvm-exegesis.cpp
  372   cl::ParseCommandLineOptions(Argc, Argv, "");
tools/llvm-extract/llvm-extract.cpp
  139   cl::ParseCommandLineOptions(argc, argv, "llvm extractor\n");
tools/llvm-ifs/llvm-ifs.cpp
  400   cl::ParseCommandLineOptions(argc, argv);
tools/llvm-jitlink/llvm-jitlink.cpp
  799   cl::ParseCommandLineOptions(argc, argv, "llvm jitlink tool");
tools/llvm-link/llvm-link.cpp
  355   cl::ParseCommandLineOptions(argc, argv, "llvm linker\n");
tools/llvm-lto/llvm-lto.cpp
  864   cl::ParseCommandLineOptions(argc, argv, "llvm LTO linker\n");
tools/llvm-lto2/llvm-lto2.cpp
  173   cl::ParseCommandLineOptions(argc, argv, "Resolution-based LTO test harness");
tools/llvm-mc/llvm-mc.cpp
  319   cl::ParseCommandLineOptions(argc, argv, "llvm machine code playground\n");
tools/llvm-mca/llvm-mca.cpp
  301   cl::ParseCommandLineOptions(argc, argv,
tools/llvm-modextract/llvm-modextract.cpp
   39   cl::ParseCommandLineOptions(argc, argv, "Module extractor");
tools/llvm-nm/llvm-nm.cpp
 2081   cl::ParseCommandLineOptions(argc, argv, "llvm symbol table dumper\n");
tools/llvm-objdump/llvm-objdump.cpp
 2272   cl::ParseCommandLineOptions(argc, argv, "llvm object file dumper\n");
tools/llvm-opt-report/OptReport.cpp
  462   cl::ParseCommandLineOptions(
tools/llvm-pdbutil/llvm-pdbutil.cpp
 1430   cl::ParseCommandLineOptions(Argc, Argv, "LLVM PDB Dumper\n");
tools/llvm-profdata/llvm-profdata.cpp
  657   cl::ParseCommandLineOptions(argc, argv, "LLVM profile data merger\n");
  740   cl::ParseCommandLineOptions(argc, argv, "LLVM profile data overlap tool\n");
 1108   cl::ParseCommandLineOptions(argc, argv, "LLVM profile data summary\n");
tools/llvm-readobj/llvm-readobj.cpp
  680   cl::ParseCommandLineOptions(argc, argv, "LLVM Object Reader\n");
tools/llvm-reduce/llvm-reduce.cpp
   77   cl::ParseCommandLineOptions(argc, argv, "LLVM automatic testcase reducer.\n");
tools/llvm-rtdyld/llvm-rtdyld.cpp
  963   cl::ParseCommandLineOptions(argc, argv, "llvm MC-JIT tool\n");
tools/llvm-size/llvm-size.cpp
  866   cl::ParseCommandLineOptions(argc, argv, "llvm object size dumper\n");
tools/llvm-split/llvm-split.cpp
   45   cl::ParseCommandLineOptions(argc, argv, "LLVM module splitter\n");
tools/llvm-stress/llvm-stress.cpp
  735   cl::ParseCommandLineOptions(argc, argv, "llvm codegen stress-tester\n");
tools/llvm-strings/llvm-strings.cpp
  100   cl::ParseCommandLineOptions(argc, argv, "llvm string dumper\n");
tools/llvm-symbolizer/llvm-symbolizer.cpp
  286   cl::ParseCommandLineOptions(argc, argv, IsAddr2Line ? "llvm-addr2line\n"
tools/llvm-undname/llvm-undname.cpp
   80   cl::ParseCommandLineOptions(argc, argv, "llvm-undname\n");
tools/llvm-xray/llvm-xray.cpp
   26   cl::ParseCommandLineOptions(argc, argv,
tools/lto/lto.cpp
  547     cl::ParseCommandLineOptions(CodegenArgv.size(), CodegenArgv.data());
tools/obj2yaml/obj2yaml.cpp
   71   cl::ParseCommandLineOptions(argc, argv);
tools/opt/opt.cpp
  543   cl::ParseCommandLineOptions(argc, argv,
tools/sancov/sancov.cpp
 1141   cl::ParseCommandLineOptions(Argc, Argv,
tools/sanstats/sanstats.cpp
  124   cl::ParseCommandLineOptions(argc, argv,
tools/verify-uselistorder/verify-uselistorder.cpp
  534   cl::ParseCommandLineOptions(argc, argv,
tools/yaml2obj/yaml2obj.cpp
   43   cl::ParseCommandLineOptions(argc, argv);
unittests/Support/CommandLineTest.cpp
  355     cl::ParseCommandLineOptions(ARGC, Inputs[i]);
  367   cl::ParseCommandLineOptions(argc, argv);
  438       cl::ParseCommandLineOptions(2, args, StringRef(), &llvm::nulls()));
  451       cl::ParseCommandLineOptions(3, args2, StringRef(), &llvm::nulls()));
  464       cl::ParseCommandLineOptions(3, args3, StringRef(), &llvm::nulls()));
  483   EXPECT_FALSE(cl::ParseCommandLineOptions(3, args, StringRef(), &OS));
  504   EXPECT_TRUE(cl::ParseCommandLineOptions(2, args, StringRef(), &OS));
  511   EXPECT_TRUE(cl::ParseCommandLineOptions(3, args2, StringRef(), &OS));
  518   EXPECT_TRUE(cl::ParseCommandLineOptions(3, args3, StringRef(), &OS));
  536       cl::ParseCommandLineOptions(2, args, StringRef(), &llvm::nulls()));
  544       cl::ParseCommandLineOptions(2, args, StringRef(), &llvm::nulls()));
  561   EXPECT_TRUE(cl::ParseCommandLineOptions(3, args, StringRef(), &OS));
  569   EXPECT_FALSE(cl::ParseCommandLineOptions(3, args, StringRef(), &OS));
  586       cl::ParseCommandLineOptions(2, args, StringRef(), &llvm::nulls()));
  593       cl::ParseCommandLineOptions(2, args, StringRef(), &llvm::nulls()));
  613       cl::ParseCommandLineOptions(2, args0, StringRef(), &llvm::nulls()));
  621       cl::ParseCommandLineOptions(3, args1, StringRef(), &llvm::nulls()));
  629       cl::ParseCommandLineOptions(3, args2, StringRef(), &llvm::nulls()));
  637       cl::ParseCommandLineOptions(2, args0, StringRef(), &llvm::nulls()));
  640       cl::ParseCommandLineOptions(3, args1, StringRef(), &llvm::nulls()));
  643       cl::ParseCommandLineOptions(3, args2, StringRef(), &llvm::nulls()));
  658       cl::ParseCommandLineOptions(2, args0, StringRef(), &llvm::nulls()));
  669       cl::ParseCommandLineOptions(2, args1, StringRef(), &llvm::nulls()));
  701   EXPECT_TRUE(cl::ParseCommandLineOptions(sizeof(args0) / sizeof(char *), args0,
  711   EXPECT_TRUE(cl::ParseCommandLineOptions(sizeof(args1) / sizeof(char *), args1,
  727   EXPECT_TRUE(cl::ParseCommandLineOptions(sizeof(args2) / sizeof(char *), args2,
  772       cl::ParseCommandLineOptions(2, args, StringRef(), &llvm::nulls()));
  971     cl::ParseCommandLineOptions(2, args, StringRef(), &llvm::nulls()));
 1069   EXPECT_FALSE(cl::ParseCommandLineOptions(2, args, StringRef(), &OS)); OS.flush();
 1071   EXPECT_FALSE(cl::ParseCommandLineOptions(3, args2, StringRef(), &OS)); OS.flush();
 1073   EXPECT_TRUE(cl::ParseCommandLineOptions(3, args3, StringRef(), &OS)); OS.flush();
 1077   EXPECT_TRUE(cl::ParseCommandLineOptions(6, args4, StringRef(), &OS)); OS.flush();
 1326       cl::ParseCommandLineOptions(2, args, StringRef(), &llvm::nulls()));
 1338       cl::ParseCommandLineOptions(3, args2, StringRef(), &llvm::nulls()));
 1349       cl::ParseCommandLineOptions(2, args3, StringRef(), &llvm::nulls()));
 1364       cl::ParseCommandLineOptions(2, args4, StringRef(), &llvm::nulls()));
 1376       cl::ParseCommandLineOptions(3, args5, StringRef(), &llvm::nulls()));
 1385       cl::ParseCommandLineOptions(2, args6, StringRef(), &llvm::nulls()));
 1406       cl::ParseCommandLineOptions(3, args1, StringRef(), &llvm::nulls()));
 1415       cl::ParseCommandLineOptions(3, args2, StringRef(), &llvm::nulls()));
 1422       cl::ParseCommandLineOptions(2, args3, StringRef(), &llvm::nulls()));
 1432       cl::ParseCommandLineOptions(2, args4, StringRef(), &llvm::nulls()));
 1442       cl::ParseCommandLineOptions(2, args5, StringRef(), &llvm::nulls()));
 1452       cl::ParseCommandLineOptions(2, args6, StringRef(), &llvm::nulls()));
 1468       cl::ParseCommandLineOptions(2, args1, StringRef(), &llvm::nulls()));
 1476       cl::ParseCommandLineOptions(3, args2, StringRef(), &llvm::nulls()));
 1484       cl::ParseCommandLineOptions(2, args3, StringRef(), &llvm::nulls()));
 1493       cl::ParseCommandLineOptions(2, args4, StringRef(), &llvm::nulls()));
 1501       cl::ParseCommandLineOptions(3, args5, StringRef(), &llvm::nulls()));
 1509       cl::ParseCommandLineOptions(2, args6, StringRef(), &llvm::nulls()));
 1519       cl::ParseCommandLineOptions(2, args7, StringRef(), &llvm::nulls()));
 1529       cl::ParseCommandLineOptions(2, args8, StringRef(), &llvm::nulls()));
 1537       cl::ParseCommandLineOptions(3, args9, StringRef(), &llvm::nulls()));
 1543       cl::ParseCommandLineOptions(2, args10, StringRef(), &llvm::nulls()));
 1552       cl::ParseCommandLineOptions(2, args11, StringRef(), &llvm::nulls()));
 1560       cl::ParseCommandLineOptions(3, args12, StringRef(), &llvm::nulls()));
 1565       cl::ParseCommandLineOptions(2, args13, StringRef(), &llvm::nulls()));
 1575       cl::ParseCommandLineOptions(2, args14, StringRef(), &llvm::nulls()));
 1605       cl::ParseCommandLineOptions(4, args1, StringRef(), &OS)); OS.flush();
 1613       cl::ParseCommandLineOptions(4, args2, StringRef(), &OS)); OS.flush();
 1623       cl::ParseCommandLineOptions(4, args3, StringRef(), &OS)); OS.flush();
 1635   EXPECT_FALSE(cl::ParseCommandLineOptions(4, args1, StringRef(),
 1641   EXPECT_TRUE(cl::ParseCommandLineOptions(4, args2, StringRef(),
 1647   EXPECT_TRUE(cl::ParseCommandLineOptions(4, args3, StringRef(),
unittests/tools/llvm-cfi-verify/FileAnalysis.cpp
 1092   llvm::cl::ParseCommandLineOptions(argc, argv);
utils/FileCheck/FileCheck.cpp
  517   cl::ParseCommandLineOptions(argc, argv, /*Overview*/ "", /*Errs*/ nullptr,
utils/TableGen/TableGen.cpp
  267   cl::ParseCommandLineOptions(argc, argv);
utils/unittest/UnitTestMain/TestMain.cpp
   30   llvm::cl::ParseCommandLineOptions(argc, argv);
utils/yaml-bench/YAMLBench.cpp
  197   llvm::cl::ParseCommandLineOptions(argc, argv);