Couple less magic numbers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2011-05-17 07:50:41 +00:00
parent 8102bf003e
commit 811c2b7110

View File

@ -1483,7 +1483,8 @@ SDNode *X86DAGToDAGISel::SelectAtomicLoadAdd(SDNode *Node, EVT NVT) {
}
enum AtomicOpc {
OR
OR,
AtomicOpcEnd
};
enum AtomicSz {
@ -1497,10 +1498,11 @@ enum AtomicSz {
I32,
SextConstantI64,
ConstantI64,
I64
I64,
AtomicSzEnd
};
static const unsigned int AtomicOpcTbl[1][11] = {
static const unsigned int AtomicOpcTbl[AtomicOpcEnd][AtomicSzEnd] = {
{
X86::LOCK_OR8mi,
X86::LOCK_OR8mr,