mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
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:
parent
8102bf003e
commit
811c2b7110
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user