Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.275 -> 1.276
---
Log message:

Add very basic support for VECTOR_SHUFFLE


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

 SelectionDAG.cpp |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.275 
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.276
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.275        Sun Mar 19 
00:31:19 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp      Sun Mar 19 17:56:04 2006
@@ -1360,6 +1360,13 @@
       else
         return N1;         // Never-taken branch
     break;
+  case ISD::VECTOR_SHUFFLE:
+    assert(VT == N1.getValueType() && VT == N2.getValueType() &&
+           MVT::isVector(VT) && MVT::isVector(N3.getValueType()) &&
+           N3.getOpcode() == ISD::BUILD_VECTOR &&
+           MVT::getVectorNumElements(VT) == N3.getNumOperands() &&
+           "Illegal VECTOR_SHUFFLE node!");
+    break;
   }
 
   std::vector<SDOperand> Ops;
@@ -2615,7 +2622,6 @@
   case ISD::TargetFrameIndex: return "TargetFrameIndex";
   case ISD::TargetConstantPool:  return "TargetConstantPool";
   case ISD::TargetExternalSymbol: return "TargetExternalSymbol";
-  case ISD::VBUILD_VECTOR: return "VBUILD_VECTOR";
 
   case ISD::CopyToReg:     return "CopyToReg";
   case ISD::CopyFromReg:   return "CopyFromReg";
@@ -2665,6 +2671,8 @@
   case ISD::INSERT_VECTOR_ELT: return "insert_vector_elt";
   case ISD::VINSERT_VECTOR_ELT: return "vinsert_vector_elt";
   case ISD::SCALAR_TO_VECTOR:   return "scalar_to_vector";
+  case ISD::VBUILD_VECTOR: return "vbuild_vector";
+  case ISD::VECTOR_SHUFFLE: return "vector_shuffle";
   case ISD::ADDC:        return "addc";
   case ISD::ADDE:        return "adde";
   case ISD::SUBC:        return "subc";



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to