replace MachineCombinerPattern namespace and enum with enum class; NFCI
authorSanjay Patel <spatel@rotateright.com>
Thu, 5 Nov 2015 19:34:57 +0000 (19:34 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 5 Nov 2015 19:34:57 +0000 (19:34 +0000)
commit834952e4f1decbfc28cc0a35c286d2718c72c74d
tree68d67c28fe6e2ee5598581313bd6bf8f0b169a9e
parent251dff3d1bd38da565f092efe7b76e644d502a74
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252196 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineCombinerPattern.h
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/MachineCombiner.cpp
lib/CodeGen/TargetInstrInfo.cpp
lib/Target/AArch64/AArch64InstrInfo.cpp
lib/Target/AArch64/AArch64InstrInfo.h
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.h