Use generic iPTR instead i32 to represent pointer type.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 17 May 2006 21:21:41 +0000 (21:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 17 May 2006 21:21:41 +0000 (21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28371 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td

index d98e88e461077e9224eaa9c878c80cc1f4eff1da..f032833712bdba24d228483b35c5979e8d8adef9 100644 (file)
@@ -94,7 +94,7 @@ def X86Wrapper : SDNode<"X86ISD::Wrapper",  SDTX86Wrapper>;
 
 // *mem - Operand definitions for the funky X86 addressing mode operands.
 //
-class X86MemOperand<string printMethod> : Operand<i32> {
+class X86MemOperand<string printMethod> : Operand<iPTR> {
   let PrintMethod = printMethod;
   let NumMIOperands = 4;
   let MIOperandInfo = (ops GR32, i8imm, GR32, i32imm);
@@ -131,8 +131,8 @@ def brtarget : Operand<OtherVT>;
 //
 
 // Define X86 specific addressing mode.
-def addr    : ComplexPattern<i32, 4, "SelectAddr", []>;
-def leaaddr : ComplexPattern<i32, 4, "SelectLEAAddr",
+def addr    : ComplexPattern<iPTR, 4, "SelectAddr", []>;
+def leaaddr : ComplexPattern<iPTR, 4, "SelectLEAAddr",
                              [add, mul, shl, frameindex]>;
 
 //===----------------------------------------------------------------------===//