[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.td

Evan Cheng evan.cheng at apple.com
Thu Dec 15 00:31:16 PST 2005



Changes in directory llvm/lib/Target/X86:

X86InstrInfo.td updated: 1.167 -> 1.168
---
Log message:

Added frameindex, constpool, globaladdr, and externalsym as root nodes of
leaaddr.


---
Diffs of the changes:  (+3 -2)

 X86InstrInfo.td |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.167 llvm/lib/Target/X86/X86InstrInfo.td:1.168
--- llvm/lib/Target/X86/X86InstrInfo.td:1.167	Wed Dec 14 18:59:17 2005
+++ llvm/lib/Target/X86/X86InstrInfo.td	Thu Dec 15 02:31:04 2005
@@ -48,7 +48,9 @@
 
 // Define X86 specific addressing mode.
 def addr    : ComplexPattern<i32, 4, "SelectAddr", []>;
-def leaaddr : ComplexPattern<i32, 4, "SelectLEAAddr", [add]>;
+def leaaddr : ComplexPattern<i32, 4, "SelectLEAAddr",
+                             [add,
+                              frameindex, constpool, globaladdr, externalsym]>;
 
 // Format specifies the encoding used by the instruction.  This is part of the
 // ad-hoc solution used to emit machine instruction encodings by our machine
@@ -327,7 +329,6 @@
                  "lea{l} {$src|$dst}, {$dst|$src}",
                  [(set R32:$dst, leaaddr:$src)]>;
 
-
 def REP_MOVSB : I<0xA4, RawFrm, (ops), "{rep;movsb|rep movsb}", []>,
                 Imp<[ECX,EDI,ESI], [ECX,EDI,ESI]>, REP;
 def REP_MOVSW : I<0xA5, RawFrm, (ops), "{rep;movsw|rep movsw}", []>,






More information about the llvm-commits mailing list