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

Chris Lattner lattner at cs.uiuc.edu
Fri Dec 9 14:58:53 PST 2005



Changes in directory llvm/lib/Target:

TargetSelectionDAG.td updated: 1.13 -> 1.14
---
Log message:

Add SDTCisPtrTy and use it for loads, to indicate that the operand of a load
must be a pointer.  This removes a type check out of the code generated by
tblgen for load matching.


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

 TargetSelectionDAG.td |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/TargetSelectionDAG.td
diff -u llvm/lib/Target/TargetSelectionDAG.td:1.13 llvm/lib/Target/TargetSelectionDAG.td:1.14
--- llvm/lib/Target/TargetSelectionDAG.td:1.13	Wed Dec  7 22:28:48 2005
+++ llvm/lib/Target/TargetSelectionDAG.td	Fri Dec  9 16:58:42 2005
@@ -24,15 +24,17 @@
 }
 
 // SDTCisVT - The specified operand has exactly this VT.
-class SDTCisVT <int OpNum, ValueType vt> : SDTypeConstraint<OpNum> {
+class SDTCisVT<int OpNum, ValueType vt> : SDTypeConstraint<OpNum> {
   ValueType VT = vt;
 }
 
+class SDTCisPtrTy<int OpNum> : SDTypeConstraint<OpNum>;
+
 // SDTCisInt - The specified operand is has integer type.
 class SDTCisInt<int OpNum> : SDTypeConstraint<OpNum>;
 
 // SDTCisFP - The specified operand is has floating point type.
-class SDTCisFP <int OpNum> : SDTypeConstraint<OpNum>;
+class SDTCisFP<int OpNum> : SDTypeConstraint<OpNum>;
 
 // SDTCisSameAs - The two specified operands have identical types.
 class SDTCisSameAs<int OpNum, int OtherOp> : SDTypeConstraint<OpNum> {
@@ -132,7 +134,7 @@
 ]>;
 
 def SDTLoad : SDTypeProfile<1, 1, [ // load
-  SDTCisInt<1>  
+  SDTCisPtrTy<1>  
 ]>;
 
 //===----------------------------------------------------------------------===//






More information about the llvm-commits mailing list