aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCombiner.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-11-05 19:34:57 +0000
committerSanjay Patel <spatel@rotateright.com>2015-11-05 19:34:57 +0000
commit387e66e79fc368760418f7394a6e93eeeb3f0ec8 (patch)
tree53b9938e83bb8036fbb22192a468605c0c6eac65 /llvm/lib/CodeGen/MachineCombiner.cpp
parent2cd0d6d625c098be61da7353315efeb356f5f499 (diff)
downloadllvm-387e66e79fc368760418f7394a6e93eeeb3f0ec8.zip
llvm-387e66e79fc368760418f7394a6e93eeeb3f0ec8.tar.gz
llvm-387e66e79fc368760418f7394a6e93eeeb3f0ec8.tar.bz2
replace MachineCombinerPattern namespace and enum with enum class; NFCI
Also, remove an enum hack where enum values were used as indexes into an array. We may want to make this a real class to allow pattern-based queries/customization (D13417). llvm-svn: 252196
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCombiner.cpp b/llvm/lib/CodeGen/MachineCombiner.cpp
index bfa5a6a..11b6a79 100644
--- a/llvm/lib/CodeGen/MachineCombiner.cpp
+++ b/llvm/lib/CodeGen/MachineCombiner.cpp
@@ -336,7 +336,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) {
auto &MI = *BlockIter++;
DEBUG(dbgs() << "INSTR "; MI.dump(); dbgs() << "\n";);
- SmallVector<MachineCombinerPattern::MC_PATTERN, 16> Patterns;
+ SmallVector<MachineCombinerPattern, 16> Patterns;
// The motivating example is:
//
// MUL Other MUL_op1 MUL_op2 Other