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

Evan Cheng evan.cheng at apple.com
Fri Dec 23 14:14:46 PST 2005



Changes in directory llvm/lib/Target:

Target.td updated: 1.65 -> 1.66
TargetSelectionDAG.td updated: 1.35 -> 1.36
---
Log message:

* Removed the use of FLAG. Now use hasFlagIn and hasFlagOut instead.
* Added a pseudo instruction (for each target) that represent "return void".
  This is a workaround for lack of optional flag operand (return void is not
  lowered so it does not have a flag operand.)


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

 Target.td             |    2 ++
 TargetSelectionDAG.td |    1 -
 2 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/Target.td
diff -u llvm/lib/Target/Target.td:1.65 llvm/lib/Target/Target.td:1.66
--- llvm/lib/Target/Target.td:1.65	Wed Dec 14 16:02:59 2005
+++ llvm/lib/Target/Target.td	Fri Dec 23 16:14:32 2005
@@ -169,6 +169,8 @@
   bit hasDelaySlot = 0;     // Does this instruction have an delay slot?
   bit usesCustomDAGSchedInserter = 0; // Pseudo instr needing special help.
   bit hasCtrlDep   = 0;     // Does this instruction r/w ctrl-flow chains?
+  bit hasInFlag    = 0;     // Does this instruction read a flag operand?
+  bit hasOutFlag   = 0;     // Does this instruction write a flag operand?
   
   InstrItinClass Itinerary; // Execution steps used for scheduling. 
 }


Index: llvm/lib/Target/TargetSelectionDAG.td
diff -u llvm/lib/Target/TargetSelectionDAG.td:1.35 llvm/lib/Target/TargetSelectionDAG.td:1.36
--- llvm/lib/Target/TargetSelectionDAG.td:1.35	Fri Dec 23 01:30:30 2005
+++ llvm/lib/Target/TargetSelectionDAG.td	Fri Dec 23 16:14:32 2005
@@ -184,7 +184,6 @@
 def set;
 def node;
 def srcvalue;
-def FLAG;
 
 def imm        : SDNode<"ISD::Constant"  , SDTIntLeaf , [], "ConstantSDNode">;
 def vt         : SDNode<"ISD::VALUETYPE" , SDTOther   , [], "VTSDNode">;






More information about the llvm-commits mailing list