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

Chris Lattner lattner at cs.uiuc.edu
Tue Dec 17 19:06:01 PST 2002


Changes in directory llvm/lib/Target/X86:

X86InstrInfo.def updated: 1.42 -> 1.43

---
Log message:

Add reg clobber list for direct calls
Represent empty use/def list as a null pointer


---
Diffs of the changes:

Index: llvm/lib/Target/X86/X86InstrInfo.def
diff -u llvm/lib/Target/X86/X86InstrInfo.def:1.42 llvm/lib/Target/X86/X86InstrInfo.def:1.43
--- llvm/lib/Target/X86/X86InstrInfo.def:1.42	Mon Dec 16 09:54:42 2002
+++ llvm/lib/Target/X86/X86InstrInfo.def	Tue Dec 17 19:05:31 2002
@@ -24,7 +24,7 @@
 
 // Implicit register usage info: O_ is for one register, T_ is for two registers
 // NoIR means the instruction does not use implicit registers, in this form.
-IMPREGSLIST(NoIR , 0)
+#define NoIR 0
 IMPREGSLIST(O_AL , X86::AL , 0)
 IMPREGSLIST(O_AH , X86::AH , 0)
 IMPREGSLIST(O_CL , X86::CL , 0)
@@ -65,7 +65,7 @@
                                                                                        NoIR) // jne foo
 I(JE          , "je",    0x84, M_BRANCH_FLAG, X86II::RawFrm | X86II::TB | X86II::Void, NoIR,
                                                                                        NoIR) // je foo
-I(CALLpcrel32 , "call",  0xE8, M_BRANCH_FLAG, X86II::Void, NoIR, NoIR)                       // call pc+42
+I(CALLpcrel32 , "call",  0xE8, M_BRANCH_FLAG, X86II::Void, NoIR, C_CLOBBER)                  // call pc+42
 I(CALLr32     , "call",  0xFF, M_BRANCH_FLAG, X86II::Void | X86II::MRMS2r | X86II::Arg32,
                                               NoIR, C_CLOBBER)                               // call [r32]
 I(CALLm32     , "call",  0xFF, M_BRANCH_FLAG, X86II::Void | X86II::MRMS2m | X86II::Arg32,
@@ -198,3 +198,5 @@
 
 // At this point, I is dead, so undefine the macro
 #undef I
+#undef NoIR
+





More information about the llvm-commits mailing list