Lines Matching refs:cl

65 static cl::OptionCategory ToolOptions("Tool Options");
66 static cl::OptionCategory ViewOptions("View Options");
68 static cl::opt<std::string> InputFilename(cl::Positional,
69 cl::desc("<input file>"),
70 cl::cat(ToolOptions), cl::init("-"));
72 static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
73 cl::init("-"), cl::cat(ToolOptions),
74 cl::value_desc("filename"));
76 static cl::opt<std::string>
78 cl::desc("Target architecture. "
80 cl::cat(ToolOptions));
82 static cl::opt<std::string>
84 cl::desc("Target triple. See -version for available targets"),
85 cl::cat(ToolOptions));
87 static cl::opt<std::string>
89 cl::desc("Target a specific cpu type (-mcpu=help for details)"),
90 cl::value_desc("cpu-name"), cl::cat(ToolOptions), cl::init("native"));
92 static cl::opt<std::string>
94 cl::desc("Additional target features."),
95 cl::cat(ToolOptions));
97 static cl::opt<int>
99 cl::desc("Syntax variant to use for output printing"),
100 cl::cat(ToolOptions), cl::init(-1));
102 static cl::opt<bool>
103 PrintImmHex("print-imm-hex", cl::cat(ToolOptions), cl::init(false),
104 cl::desc("Prefer hex format when printing immediate values"));
106 static cl::opt<unsigned> Iterations("iterations",
107 cl::desc("Number of iterations to run"),
108 cl::cat(ToolOptions), cl::init(0));
110 static cl::opt<unsigned>
111 DispatchWidth("dispatch", cl::desc("Override the processor dispatch width"),
112 cl::cat(ToolOptions), cl::init(0));
114 static cl::opt<unsigned>
116 cl::desc("Maximum number of physical registers which can "
118 cl::cat(ToolOptions), cl::init(0));
120 static cl::opt<unsigned>
121 MicroOpQueue("micro-op-queue-size", cl::Hidden,
122 cl::desc("Number of entries in the micro-op queue"),
123 cl::cat(ToolOptions), cl::init(0));
125 static cl::opt<unsigned>
126 DecoderThroughput("decoder-throughput", cl::Hidden,
127 cl::desc("Maximum throughput from the decoders "
129 cl::cat(ToolOptions), cl::init(0));
131 static cl::opt<bool>
133 cl::desc("Print register file statistics"),
134 cl::cat(ViewOptions), cl::init(false));
136 static cl::opt<bool> PrintDispatchStats("dispatch-stats",
137 cl::desc("Print dispatch statistics"),
138 cl::cat(ViewOptions), cl::init(false));
140 static cl::opt<bool>
141 PrintSummaryView("summary-view", cl::Hidden,
142 cl::desc("Print summary view (enabled by default)"),
143 cl::cat(ViewOptions), cl::init(true));
145 static cl::opt<bool> PrintSchedulerStats("scheduler-stats",
146 cl::desc("Print scheduler statistics"),
147 cl::cat(ViewOptions), cl::init(false));
149 static cl::opt<bool>
151 cl::desc("Print retire control unit statistics"),
152 cl::cat(ViewOptions), cl::init(false));
154 static cl::opt<bool> PrintResourcePressureView(
156 cl::desc("Print the resource pressure view (enabled by default)"),
157 cl::cat(ViewOptions), cl::init(true));
159 static cl::opt<bool> PrintTimelineView("timeline",
160 cl::desc("Print the timeline view"),
161 cl::cat(ViewOptions), cl::init(false));
163 static cl::opt<unsigned> TimelineMaxIterations(
165 cl::desc("Maximum number of iterations to print in timeline view"),
166 cl::cat(ViewOptions), cl::init(0));
168 static cl::opt<unsigned> TimelineMaxCycles(
170 cl::desc(
172 cl::cat(ViewOptions), cl::init(80));
174 static cl::opt<bool>
176 cl::desc("If set, assume that loads and stores do not alias"),
177 cl::cat(ToolOptions), cl::init(true));
179 static cl::opt<unsigned> LoadQueueSize("lqueue",
180 cl::desc("Size of the load queue"),
181 cl::cat(ToolOptions), cl::init(0));
183 static cl::opt<unsigned> StoreQueueSize("squeue",
184 cl::desc("Size of the store queue"),
185 cl::cat(ToolOptions), cl::init(0));
187 static cl::opt<bool>
189 cl::desc("Print instruction tables"),
190 cl::cat(ToolOptions), cl::init(false));
192 static cl::opt<bool> PrintInstructionInfoView(
194 cl::desc("Print the instruction info view (enabled by default)"),
195 cl::cat(ViewOptions), cl::init(true));
197 static cl::opt<bool> EnableAllStats("all-stats",
198 cl::desc("Print all hardware statistics"),
199 cl::cat(ViewOptions), cl::init(false));
201 static cl::opt<bool>
203 cl::desc("Print all views including hardware statistics"),
204 cl::cat(ViewOptions), cl::init(false));
206 static cl::opt<bool> EnableBottleneckAnalysis(
208 cl::desc("Enable bottleneck analysis (disabled by default)"),
209 cl::cat(ViewOptions), cl::init(false));
211 static cl::opt<bool> ShowEncoding(
213 cl::desc("Print encoding information in the instruction info view"),
214 cl::cat(ViewOptions), cl::init(false));
248 static void processOptionImpl(cl::opt<bool> &O, const cl::opt<bool> &Default) {
266 const cl::opt<bool> &Default =
296 cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion);
298 cl::HideUnrelatedOptions({&ToolOptions, &ViewOptions});
301 cl::ParseCommandLineOptions(argc, argv,