[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.h
Evan Cheng
evan.cheng at apple.com
Sat Feb 25 01:57:02 PST 2006
Changes in directory llvm/lib/Target/X86:
X86AsmPrinter.h updated: 1.10 -> 1.11
---
Log message:
ConstantPoolIndex is now the displacement field of addressing mode.
---
Diffs of the changes: (+4 -3)
X86AsmPrinter.h | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/X86/X86AsmPrinter.h
diff -u llvm/lib/Target/X86/X86AsmPrinter.h:1.10 llvm/lib/Target/X86/X86AsmPrinter.h:1.11
--- llvm/lib/Target/X86/X86AsmPrinter.h:1.10 Tue Dec 13 00:32:50 2005
+++ llvm/lib/Target/X86/X86AsmPrinter.h Sat Feb 25 03:56:50 2006
@@ -47,11 +47,12 @@
inline static bool isMem(const MachineInstr *MI, unsigned Op) {
if (MI->getOperand(Op).isFrameIndex()) return true;
- if (MI->getOperand(Op).isConstantPoolIndex()) return true;
return Op+4 <= MI->getNumOperands() &&
MI->getOperand(Op ).isRegister() && isScale(MI->getOperand(Op+1)) &&
- MI->getOperand(Op+2).isRegister() && (MI->getOperand(Op+3).isImmediate()||
- MI->getOperand(Op+3).isGlobalAddress());
+ MI->getOperand(Op+2).isRegister() &&
+ (MI->getOperand(Op+3).isImmediate() ||
+ MI->getOperand(Op+3).isGlobalAddress() ||
+ MI->getOperand(Op+3).isConstantPoolIndex());
}
};
More information about the llvm-commits
mailing list