summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2018-10-17 12:09:21 +0000
committerGuillaume Chatelet <gchatelet@google.com>2018-10-17 12:09:21 +0000
commit952b121a9cd30a8499773928f6f1ee46d16d994e (patch)
tree53cdf2ef8d37b31dda2368b5484a3fbc55f35f35 /llvm/tools/llvm-exegesis/lib/CodeTemplate.cpp
parentfcbb6f3c2b7963a697e5291538bf9d120cb80b93 (diff)
downloadbcm5719-llvm-952b121a9cd30a8499773928f6f1ee46d16d994e.tar.gz
bcm5719-llvm-952b121a9cd30a8499773928f6f1ee46d16d994e.zip
BuildBot fix, compiler complains about array decay to pointer
llvm-svn: 344690
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