[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

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



Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.28 -> 1.29
---
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:  (+7 -0)

 X86ISelLowering.cpp |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.28 llvm/lib/Target/X86/X86ISelLowering.cpp:1.29
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.28	Wed Jan 11 00:09:51 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp	Wed Jan 11 15:21:00 2006
@@ -107,6 +107,13 @@
   setOperationAction(ISD::CTLZ             , MVT::i32  , Expand);
   setOperationAction(ISD::READCYCLECOUNTER , MVT::i64  , Custom);
 
+  setOperationAction(ISD::ROTL             , MVT::i8   , Expand);
+  setOperationAction(ISD::ROTR             , MVT::i8   , Expand);
+  setOperationAction(ISD::ROTL             , MVT::i16  , Expand);
+  setOperationAction(ISD::ROTR             , MVT::i16  , Expand);
+  setOperationAction(ISD::ROTL             , MVT::i32  , Expand);
+  setOperationAction(ISD::ROTR             , MVT::i32  , Expand);
+
   setOperationAction(ISD::READIO           , MVT::i1   , Expand);
   setOperationAction(ISD::READIO           , MVT::i8   , Expand);
   setOperationAction(ISD::READIO           , MVT::i16  , Expand);






More information about the llvm-commits mailing list