OSDN Git Service

Add a build_vector node
authorChris Lattner <sabre@nondot.org>
Mon, 20 Mar 2006 06:18:01 +0000 (06:18 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 20 Mar 2006 06:18:01 +0000 (06:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26895 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetSelectionDAG.td
lib/Target/X86/X86ISelLowering.cpp

index c23684f..c323739 100644 (file)
@@ -307,7 +307,7 @@ def extld      : SDNode<"ISD::EXTLOAD"    , SDTExtLoad,    [SDNPHasChain]>;
 def truncst    : SDNode<"ISD::TRUNCSTORE" , SDTTruncStore, [SDNPHasChain]>;
 
 def vector_shuffle : SDNode<"ISD::VECTOR_SHUFFLE", SDTVecShuffle, []>;
-
+def build_vector : SDNode<"ISD::BUILD_VECTOR", SDTypeProfile<1, 0, []>, []>;
 
 //===----------------------------------------------------------------------===//
 // Selection DAG Condition Codes
index 4414c68..0540f63 100644 (file)
@@ -255,6 +255,7 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM)
     setOperationAction(ISD::SUB , (MVT::ValueType)VT, Expand);
     setOperationAction(ISD::MUL , (MVT::ValueType)VT, Expand);
     setOperationAction(ISD::LOAD, (MVT::ValueType)VT, Expand);
+    setOperationAction(ISD::VECTOR_SHUFFLE, (MVT::ValueType)VT, Expand);
   }
 
   if (TM.getSubtarget<X86Subtarget>().hasMMX()) {