[llvm-commits] [llvm] r131457 - /llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Eric Christopher
echristo at apple.com
Tue May 17 00:50:41 PDT 2011
Author: echristo
Date: Tue May 17 02:50:41 2011
New Revision: 131457
URL: http://llvm.org/viewvc/llvm-project?rev=131457&view=rev
Log:
Couple less magic numbers.
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=131457&r1=131456&r2=131457&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Tue May 17 02:50:41 2011
@@ -1483,7 +1483,8 @@
}
enum AtomicOpc {
- OR
+ OR,
+ AtomicOpcEnd
};
enum AtomicSz {
@@ -1497,10 +1498,11 @@
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,
More information about the llvm-commits
mailing list