]> granicus.if.org Git - llvm/commitdiff
Add two new pseudo instructions
authorChris Lattner <sabre@nondot.org>
Tue, 6 May 2003 21:31:31 +0000 (21:31 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 6 May 2003 21:31:31 +0000 (21:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6008 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.def

index df8a79bf8b863ef922e46593bad895933f3b80f0..5121f5d1c31ea737c0268064a46c52f566315569 100644 (file)
@@ -72,12 +72,25 @@ I(NOOP        , "nop",   0x90,             0, X86II::RawFrm | X86II::Void, NoIR,
 // instruction turns into a noop, but if the frame pointer is retained, this
 // turns into a 'sub ESP, <amount>'.
 //
-I(ADJCALLSTACKDOWN, "adjcallstackdown", 0, 0, X86II::Pseudo,               NoIR, NoIR)            
+I(ADJCALLSTACKDOWN, "adjcallstackdown", 0, 0, X86II::Pseudo,               NoIR, NoIR)
 
 // This instruction is used to mark readjustment of the stack after a function
 // call.  If the frame pointer is retained, this becomes a 'add ESP, <amount>'
 // instruction after the call.
-I(ADJCALLSTACKUP  , "adjcallstackup"  , 0, 0, X86II::Pseudo,               NoIR, NoIR)            
+I(ADJCALLSTACKUP  , "adjcallstackup"  , 0, 0, X86II::Pseudo,               NoIR, NoIR)
+
+// This pseudo-instruction is used to record implicit definitions of physical
+// registers: registers that are live on input to the function (currently just
+// the stack pointer, eventually could include arguments passed in registers).
+//
+I(IMPLICIT_DEF, "implicit_def", 0, 0, X86II::Pseudo, NoIR, NoIR)
+
+// This pseudo-instruction is used to record implicit uses of physical registers
+// at the end of the function.  This ensures that bad things aren't done to
+// registes that are live on exit from the function (for example, EAX).
+//
+I(IMPLICIT_USE, "implicit_use", 0, 0, X86II::Pseudo, NoIR, NoIR)
+
 
 // Flow control instructions
 I(RET         , "ret",   0xC3,    M_RET_FLAG | M_TERMINATOR_FLAG, X86II::RawFrm | X86II::Void, NoIR, NoIR)             // ret