.. option:: -opcode-index=<LLVM opcode index>
- Specify the opcode to measure, by index. See example 1 for details.
+ Specify the opcode to measure, by index. Specifying `-1` will result
+ in measuring every existing opcode. See example 1 for details.
Either `opcode-index`, `opcode-name` or `snippets-file` must be set.
.. option:: -opcode-name=<opcode name 1>,<opcode name 2>,...
static cl::OptionCategory BenchmarkOptions("llvm-exegesis benchmark options");
static cl::OptionCategory AnalysisOptions("llvm-exegesis analysis options");
-static cl::opt<int> OpcodeIndex("opcode-index",
- cl::desc("opcode to measure, by index"),
- cl::cat(BenchmarkOptions), cl::init(0));
+static cl::opt<int> OpcodeIndex(
+ "opcode-index",
+ cl::desc("opcode to measure, by index, or -1 to measure all opcodes"),
+ cl::cat(BenchmarkOptions), cl::init(0));
static cl::opt<std::string>
OpcodeNames("opcode-name",