Lines Matching refs:cl

47 static cl::OptionCategory Options("llvm-exegesis options");
48 static cl::OptionCategory BenchmarkOptions("llvm-exegesis benchmark options");
49 static cl::OptionCategory AnalysisOptions("llvm-exegesis analysis options");
51 static cl::opt<int> OpcodeIndex(
53 cl::desc("opcode to measure, by index, or -1 to measure all opcodes"),
54 cl::cat(BenchmarkOptions), cl::init(0));
56 static cl::opt<std::string>
58 cl::desc("comma-separated list of opcodes to measure, by name"),
59 cl::cat(BenchmarkOptions), cl::init(""));
61 static cl::opt<std::string> SnippetsFile("snippets-file",
62 cl::desc("code snippets to measure"),
63 cl::cat(BenchmarkOptions),
64 cl::init(""));
66 static cl::opt<std::string>
68 cl::desc("File to read (analysis mode) or write "
71 cl::cat(Options), cl::init(""));
73 static cl::opt<exegesis::InstructionBenchmark::ModeE> BenchmarkMode(
74 "mode", cl::desc("the mode to run"), cl::cat(Options),
75 cl::values(clEnumValN(exegesis::InstructionBenchmark::Latency, "latency",
87 static cl::opt<exegesis::InstructionBenchmark::ResultAggregationModeE>
90 cl::desc("How to aggregate multi-values result"), cl::cat(Options),
91 cl::values(clEnumValN(exegesis::InstructionBenchmark::Min, "min",
100 cl::init(exegesis::InstructionBenchmark::Min));
102 static cl::opt<exegesis::InstructionBenchmark::RepetitionModeE> RepetitionMode(
103 "repetition-mode", cl::desc("how to repeat the instruction snippet"),
104 cl::cat(BenchmarkOptions),
105 cl::values(
112 cl::init(exegesis::InstructionBenchmark::Duplicate));
114 static cl::opt<unsigned>
116 cl::desc("number of time to repeat the asm snippet"),
117 cl::cat(BenchmarkOptions), cl::init(10000));
119 static cl::opt<unsigned>
121 cl::desc("when repeating the instruction snippet by looping "
124 cl::cat(BenchmarkOptions), cl::init(0));
126 static cl::opt<unsigned> MaxConfigsPerOpcode(
128 cl::desc(
130 cl::cat(BenchmarkOptions), cl::init(1));
132 static cl::opt<bool> IgnoreInvalidSchedClass(
134 cl::desc("ignore instructions that do not define a sched class"),
135 cl::cat(BenchmarkOptions), cl::init(false));
137 static cl::opt<exegesis::InstructionBenchmarkClustering::ModeE>
139 "analysis-clustering", cl::desc("the clustering algorithm to use"),
140 cl::cat(AnalysisOptions),
141 cl::values(clEnumValN(exegesis::InstructionBenchmarkClustering::Dbscan,
145 cl::init(exegesis::InstructionBenchmarkClustering::Dbscan));
147 static cl::opt<unsigned> AnalysisDbscanNumPoints(
149 cl::desc("minimum number of points in an analysis cluster (dbscan only)"),
150 cl::cat(AnalysisOptions), cl::init(3));
152 static cl::opt<float> AnalysisClusteringEpsilon(
154 cl::desc("epsilon for benchmark point clustering"),
155 cl::cat(AnalysisOptions), cl::init(0.1));
157 static cl::opt<float> AnalysisInconsistencyEpsilon(
159 cl::desc("epsilon for detection of when the cluster is different from the "
161 cl::cat(AnalysisOptions), cl::init(0.1));
163 static cl::opt<std::string>
164 AnalysisClustersOutputFile("analysis-clusters-output-file", cl::desc(""),
165 cl::cat(AnalysisOptions), cl::init(""));
166 static cl::opt<std::string>
168 cl::desc(""), cl::cat(AnalysisOptions),
169 cl::init(""));
171 static cl::opt<bool> AnalysisDisplayUnstableOpcodes(
173 cl::desc("if there is more than one benchmark for an opcode, said "
178 cl::cat(AnalysisOptions), cl::init(false));
180 static cl::opt<std::string> CpuName(
182 cl::desc("cpu name to use for pfm counters, leave empty to autodetect"),
183 cl::cat(Options), cl::init(""));
185 static cl::opt<bool>
187 cl::desc("dumps the generated benchmark object to disk "
189 cl::cat(BenchmarkOptions), cl::init(true));
464 cl::ParseCommandLineOptions(Argc, Argv, ""); in main()