Lines Matching refs:cl
68 static cl::list<const PassInfo *, bool, PassNameParser> PassList(cl::desc(
71 static cl::opt<bool> EnableLegacyPassManager(
73 cl::desc(
76 cl::init(false));
82 static cl::opt<std::string> PassPipeline(
84 cl::desc(
87 static cl::alias PassPipeline2("p", cl::aliasopt(PassPipeline),
88 cl::desc("Alias for -passes"));
90 static cl::opt<bool> PrintPasses("print-passes",
91 cl::desc("Print available passes that can be "
94 static cl::opt<std::string>
95 InputFilename(cl::Positional, cl::desc("<input bitcode file>"),
96 cl::init("-"), cl::value_desc("filename"));
98 static cl::opt<std::string>
99 OutputFilename("o", cl::desc("Override output filename"),
100 cl::value_desc("filename"));
102 static cl::opt<bool>
103 Force("f", cl::desc("Enable binary output on terminals"));
105 static cl::opt<bool>
107 cl::desc("Do not write result bitcode file"), cl::Hidden);
109 static cl::opt<bool>
110 OutputAssembly("S", cl::desc("Write output as LLVM assembly"));
112 static cl::opt<bool>
114 cl::desc("Write output as ThinLTO-ready bitcode"));
116 static cl::opt<bool>
118 cl::desc("Enable splitting of a ThinLTO LTOUnit"));
120 static cl::opt<bool>
122 cl::desc("Use unified LTO piplines. Ignored unless -thinlto-bc "
124 cl::Hidden, cl::init(false));
126 static cl::opt<std::string> ThinLinkBitcodeFile(
127 "thin-link-bitcode-file", cl::value_desc("filename"),
128 cl::desc(
131 static cl::opt<bool>
132 NoVerify("disable-verify", cl::desc("Do not run the verifier"), cl::Hidden);
134 static cl::opt<bool> NoUpgradeDebugInfo("disable-upgrade-debug-info",
135 cl::desc("Generate invalid output"),
136 cl::ReallyHidden);
138 static cl::opt<bool> VerifyEach("verify-each",
139 cl::desc("Verify after each transform"));
141 static cl::opt<bool>
143 cl::desc("Don't use a uniquing type map for debug info"));
145 static cl::opt<bool>
147 cl::desc("Strip debugger symbol info from translation unit"));
149 static cl::opt<bool>
151 cl::desc("Strip module-level named metadata"));
153 static cl::opt<bool>
154 OptLevelO0("O0", cl::desc("Optimization level 0. Similar to clang -O0. "
157 static cl::opt<bool>
158 OptLevelO1("O1", cl::desc("Optimization level 1. Similar to clang -O1. "
161 static cl::opt<bool>
162 OptLevelO2("O2", cl::desc("Optimization level 2. Similar to clang -O2. "
165 static cl::opt<bool>
166 OptLevelOs("Os", cl::desc("Like -O2 but size-conscious. Similar to clang "
169 static cl::opt<bool> OptLevelOz(
171 cl::desc("Like -O2 but optimize for code size above all else. Similar to "
174 static cl::opt<bool>
175 OptLevelO3("O3", cl::desc("Optimization level 3. Similar to clang -O3. "
178 static cl::opt<unsigned> CodeGenOptLevelCL(
180 cl::desc("Override optimization level for codegen hooks, legacy PM only"));
182 static cl::opt<std::string>
183 TargetTriple("mtriple", cl::desc("Override target triple for module"));
185 static cl::opt<bool> EmitSummaryIndex("module-summary",
186 cl::desc("Emit module summary index"),
187 cl::init(false));
189 static cl::opt<bool> EmitModuleHash("module-hash", cl::desc("Emit module hash"),
190 cl::init(false));
192 static cl::opt<bool>
194 cl::desc("Disable simplify-libcalls"));
196 static cl::list<std::string> DisableBuiltins(
198 cl::desc("Disable specific target library builtin function"));
200 static cl::opt<bool> EnableDebugify(
202 cl::desc(
205 static cl::opt<bool> VerifyDebugInfoPreserve(
207 cl::desc("Start the pipeline with collecting and end it with checking of "
210 static cl::opt<std::string> ClDataLayout("data-layout",
211 cl::desc("data layout string to use"),
212 cl::value_desc("layout-string"),
213 cl::init(""));
215 static cl::opt<bool> PreserveBitcodeUseListOrder(
217 cl::desc("Preserve use-list order when writing LLVM bitcode."),
218 cl::init(true), cl::Hidden);
220 static cl::opt<bool> PreserveAssemblyUseListOrder(
222 cl::desc("Preserve use-list order when writing LLVM assembly."),
223 cl::init(false), cl::Hidden);
225 static cl::opt<bool> RunTwice("run-twice",
226 cl::desc("Run all passes twice, re-using the "
228 cl::init(false), cl::Hidden);
230 static cl::opt<bool> DiscardValueNames(
232 cl::desc("Discard names from Value (other than GlobalValue)."),
233 cl::init(false), cl::Hidden);
235 static cl::opt<bool> TimeTrace(
237 cl::desc("Record time trace"));
239 static cl::opt<unsigned> TimeTraceGranularity(
241 cl::desc("Minimum time granularity (in microseconds) traced by time profiler"),
242 cl::init(500), cl::Hidden);
244 static cl::opt<std::string>
246 cl::desc("Specify time trace file destination"),
247 cl::value_desc("filename"));
249 static cl::opt<bool> RemarksWithHotness(
251 cl::desc("With PGO, include profile count in optimization remarks"),
252 cl::Hidden);
254 static cl::opt<std::optional<uint64_t>, false, remarks::HotnessThresholdParser>
257 cl::desc("Minimum profile count required for "
260 cl::value_desc("N or 'auto'"), cl::init(0), cl::Hidden);
262 static cl::opt<std::string>
264 cl::desc("Output filename for pass remarks"),
265 cl::value_desc("filename"));
267 static cl::opt<std::string>
269 cl::desc("Only record optimization remarks from passes whose "
271 cl::value_desc("regex"));
273 static cl::opt<std::string> RemarksFormat(
275 cl::desc("The format used for serializing remarks (default: YAML)"),
276 cl::value_desc("format"), cl::init("yaml"));
278 static cl::list<std::string>
280 cl::desc("Load passes from plugin library"));
282 static cl::opt<bool> TryUseNewDbgInfoFormat(
284 cl::desc("Enable debuginfo iterator positions, if they're built in"),
285 cl::init(false), cl::Hidden);
287 extern cl::opt<bool> UseNewDbgInfoFormat;
457 cl::AddExtraVersionPrinter(sys::printDefaultTargetAndDetectedCPU); in main()
459 cl::ParseCommandLineOptions(argc, argv, in main()
870 cl::PrintOptionValues(); in main()