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

Nate Begeman natebegeman at mac.com
Wed Jan 11 13:21:18 PST 2006



Changes in directory llvm/lib/Target:

TargetSelectionDAG.td updated: 1.42 -> 1.43
---
Log message:

Add bswap, rotl, and rotr nodes
Add dag combiner code to recognize rotl, rotr
Add ppc code to match rotl

Targets should add rotl/rotr patterns if they have them


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

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


Index: llvm/lib/Target/TargetSelectionDAG.td
diff -u llvm/lib/Target/TargetSelectionDAG.td:1.42 llvm/lib/Target/TargetSelectionDAG.td:1.43
--- llvm/lib/Target/TargetSelectionDAG.td:1.42	Mon Jan  9 12:28:21 2006
+++ llvm/lib/Target/TargetSelectionDAG.td	Wed Jan 11 15:21:00 2006
@@ -230,6 +230,8 @@
 def srl        : SDNode<"ISD::SRL"       , SDTIntShiftOp>;
 def sra        : SDNode<"ISD::SRA"       , SDTIntShiftOp>;
 def shl        : SDNode<"ISD::SHL"       , SDTIntShiftOp>;
+def rotl       : SDNode<"ISD::ROTL"      , SDTIntShiftOp>;
+def rotr       : SDNode<"ISD::ROTR"      , SDTIntShiftOp>;
 def and        : SDNode<"ISD::AND"       , SDTIntBinOp,
                         [SDNPCommutative, SDNPAssociative]>;
 def or         : SDNode<"ISD::OR"        , SDTIntBinOp,






More information about the llvm-commits mailing list