Lines Matching refs:cl

69 static cl::list<const PassInfo *, bool, PassNameParser> PassList(cl::desc(
72 static cl::opt<bool> EnableNewPassManager(
74 cl::desc("Enable the new pass manager, translating "
77 cl::init(true));
83 static cl::opt<std::string> PassPipeline(
85 cl::desc(
89 static cl::opt<bool> PrintPasses("print-passes",
90 cl::desc("Print available passes that can be "
93 static cl::opt<std::string>
94 InputFilename(cl::Positional, cl::desc("<input bitcode file>"),
95 cl::init("-"), cl::value_desc("filename"));
97 static cl::opt<std::string>
98 OutputFilename("o", cl::desc("Override output filename"),
99 cl::value_desc("filename"));
101 static cl::opt<bool>
102 Force("f", cl::desc("Enable binary output on terminals"));
104 static cl::opt<bool>
106 cl::desc("Do not write result bitcode file"), cl::Hidden);
108 static cl::opt<bool>
109 OutputAssembly("S", cl::desc("Write output as LLVM assembly"));
111 static cl::opt<bool>
113 cl::desc("Write output as ThinLTO-ready bitcode"));
115 static cl::opt<bool>
117 cl::desc("Enable splitting of a ThinLTO LTOUnit"));
119 static cl::opt<std::string> ThinLinkBitcodeFile(
120 "thin-link-bitcode-file", cl::value_desc("filename"),
121 cl::desc(
124 static cl::opt<bool>
125 NoVerify("disable-verify", cl::desc("Do not run the verifier"), cl::Hidden);
127 static cl::opt<bool> NoUpgradeDebugInfo("disable-upgrade-debug-info",
128 cl::desc("Generate invalid output"),
129 cl::ReallyHidden);
131 static cl::opt<bool> VerifyEach("verify-each",
132 cl::desc("Verify after each transform"));
134 static cl::opt<bool>
136 cl::desc("Don't use a uniquing type map for debug info"));
138 static cl::opt<bool>
140 cl::desc("Strip debugger symbol info from translation unit"));
142 static cl::opt<bool>
144 cl::desc("Strip module-level named metadata"));
148 static cl::opt<bool>
149 OptLevelO0("O0", cl::desc("Optimization level 0. Similar to clang -O0. "
152 static cl::opt<bool>
153 OptLevelO1("O1", cl::desc("Optimization level 1. Similar to clang -O1. "
156 static cl::opt<bool>
157 OptLevelO2("O2", cl::desc("Optimization level 2. Similar to clang -O2. "
160 static cl::opt<bool>
161 OptLevelOs("Os", cl::desc("Like -O2 but size-conscious. Similar to clang "
164 static cl::opt<bool> OptLevelOz(
166 cl::desc("Like -O2 but optimize for code size above all else. Similar to "
169 static cl::opt<bool>
170 OptLevelO3("O3", cl::desc("Optimization level 3. Similar to clang -O3. "
173 static cl::opt<unsigned> CodeGenOptLevel(
175 cl::desc("Override optimization level for codegen hooks, legacy PM only"));
177 static cl::opt<std::string>
178 TargetTriple("mtriple", cl::desc("Override target triple for module"));
180 cl::opt<bool> DisableLoopUnrolling(
182 cl::desc("Disable loop unrolling in all relevant passes"), cl::init(false));
184 static cl::opt<bool> EmitSummaryIndex("module-summary",
185 cl::desc("Emit module summary index"),
186 cl::init(false));
188 static cl::opt<bool> EmitModuleHash("module-hash", cl::desc("Emit module hash"),
189 cl::init(false));
191 static cl::opt<bool>
193 cl::desc("Disable simplify-libcalls"));
195 static cl::list<std::string> DisableBuiltins(
197 cl::desc("Disable specific target library builtin function"));
199 static cl::opt<bool> EnableDebugify(
201 cl::desc(
204 static cl::opt<bool> VerifyDebugInfoPreserve(
206 cl::desc("Start the pipeline with collecting and end it with checking of "
209 static cl::opt<bool>
211 cl::desc("Print select breakpoints location for testing"));
213 static cl::opt<std::string> ClDataLayout("data-layout",
214 cl::desc("data layout string to use"),
215 cl::value_desc("layout-string"),
216 cl::init(""));
218 static cl::opt<bool> PreserveBitcodeUseListOrder(
220 cl::desc("Preserve use-list order when writing LLVM bitcode."),
221 cl::init(true), cl::Hidden);
223 static cl::opt<bool> PreserveAssemblyUseListOrder(
225 cl::desc("Preserve use-list order when writing LLVM assembly."),
226 cl::init(false), cl::Hidden);
228 static cl::opt<bool> RunTwice("run-twice",
229 cl::desc("Run all passes twice, re-using the "
231 cl::init(false), cl::Hidden);
233 static cl::opt<bool> DiscardValueNames(
235 cl::desc("Discard names from Value (other than GlobalValue)."),
236 cl::init(false), cl::Hidden);
238 static cl::opt<bool> TimeTrace(
240 cl::desc("Record time trace"));
242 static cl::opt<unsigned> TimeTraceGranularity(
244 cl::desc("Minimum time granularity (in microseconds) traced by time profiler"),
245 cl::init(500), cl::Hidden);
247 static cl::opt<std::string>
249 cl::desc("Specify time trace file destination"),
250 cl::value_desc("filename"));
252 static cl::opt<bool> RemarksWithHotness(
254 cl::desc("With PGO, include profile count in optimization remarks"),
255 cl::Hidden);
257 static cl::opt<Optional<uint64_t>, false, remarks::HotnessThresholdParser>
260 cl::desc("Minimum profile count required for "
263 cl::value_desc("N or 'auto'"), cl::init(0), cl::Hidden);
265 static cl::opt<std::string>
267 cl::desc("Output filename for pass remarks"),
268 cl::value_desc("filename"));
270 static cl::opt<std::string>
272 cl::desc("Only record optimization remarks from passes whose "
274 cl::value_desc("regex"));
276 static cl::opt<std::string> RemarksFormat(
278 cl::desc("The format used for serializing remarks (default: YAML)"),
279 cl::value_desc("format"), cl::init("yaml"));
281 static cl::list<std::string>
283 cl::desc("Load passes from plugin library"));
286 cl::opt<PGOKind>
287 PGOKindFlag("pgo-kind", cl::init(NoPGO), cl::Hidden,
288 cl::desc("The kind of profile guided optimization"),
289 cl::values(clEnumValN(NoPGO, "nopgo", "Do not use PGO."),
296 cl::opt<std::string> ProfileFile("profile-file",
297 cl::desc("Path to the profile."), cl::Hidden);
299 cl::opt<CSPGOKind> CSPGOKindFlag(
300 "cspgo-kind", cl::init(NoCSPGO), cl::Hidden,
301 cl::desc("The kind of context sensitive profile guided optimization"),
302 cl::values(
310 cl::opt<std::string> CSProfileGenFile(
312 cl::desc("Path to the instrumented context sensitive profile."),
313 cl::Hidden);
547 cl::ParseCommandLineOptions(argc, argv, in main()
981 cl::PrintOptionValues(); in main()