summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp b/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp
index df9d18b94bb..614d4749b1f 100644
--- a/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp
+++ b/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp
@@ -92,18 +92,17 @@ llvm::StringRef getName(ExecutionMode Bit) {
llvm_unreachable("Missing enum case");
}
-static const ExecutionMode kAllExecutionModeBits[] = {
- ExecutionMode::ALWAYS_SERIAL_IMPLICIT_REGS_ALIAS,
- ExecutionMode::ALWAYS_SERIAL_TIED_REGS_ALIAS,
- ExecutionMode::SERIAL_VIA_MEMORY_INSTR,
- ExecutionMode::SERIAL_VIA_EXPLICIT_REGS,
- ExecutionMode::SERIAL_VIA_NON_MEMORY_INSTR,
- ExecutionMode::ALWAYS_PARALLEL_MISSING_USE_OR_DEF,
- ExecutionMode::PARALLEL_VIA_EXPLICIT_REGS,
-};
-
llvm::ArrayRef<ExecutionMode> getAllExecutionBits() {
- return kAllExecutionModeBits;
+ static const ExecutionMode kAllExecutionModeBits[] = {
+ ExecutionMode::ALWAYS_SERIAL_IMPLICIT_REGS_ALIAS,
+ ExecutionMode::ALWAYS_SERIAL_TIED_REGS_ALIAS,
+ ExecutionMode::SERIAL_VIA_MEMORY_INSTR,
+ ExecutionMode::SERIAL_VIA_EXPLICIT_REGS,
+ ExecutionMode::SERIAL_VIA_NON_MEMORY_INSTR,
+ ExecutionMode::ALWAYS_PARALLEL_MISSING_USE_OR_DEF,
+ ExecutionMode::PARALLEL_VIA_EXPLICIT_REGS,
+ };
+ return llvm::makeArrayRef(kAllExecutionModeBits);
}
llvm::SmallVector<ExecutionMode, 4>
OpenPOWER on IntegriCloud