summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2007-07-26 07:34:40 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2007-07-26 07:34:40 +0000
commita8fc0e527b7ea87b9295da82bfc8a6a5bc551365 (patch)
treeb0850101bca65ef3db28073e95fef1ee12ee9a8a /llvm/lib/Target
parentd37b256f0e4925cbd239e3ef2c0811fc6a546de8 (diff)
downloadbcm5719-llvm-a8fc0e527b7ea87b9295da82bfc8a6a5bc551365.tar.gz
bcm5719-llvm-a8fc0e527b7ea87b9295da82bfc8a6a5bc551365.zip
Add selection DAG nodes for subreg insert/extract. PR1350
llvm-svn: 40516
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/TargetSelectionDAG.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetSelectionDAG.td b/llvm/lib/Target/TargetSelectionDAG.td
index 491bb023fed..4b6d881f2c8 100644
--- a/llvm/lib/Target/TargetSelectionDAG.td
+++ b/llvm/lib/Target/TargetSelectionDAG.td
@@ -317,6 +317,11 @@ def vector_extract : SDNode<"ISD::EXTRACT_VECTOR_ELT",
SDTypeProfile<1, 2, [SDTCisPtrTy<2>]>, []>;
def vector_insert : SDNode<"ISD::INSERT_VECTOR_ELT",
SDTypeProfile<1, 3, [SDTCisSameAs<0, 1>, SDTCisPtrTy<3>]>, []>;
+
+def extract_subreg : SDNode<"ISD::EXTRACT_SUBREG",
+ SDTypeProfile<1, 2, []>>;
+def insert_subreg : SDNode<"ISD::INSERT_SUBREG",
+ SDTypeProfile<1, 3, []>>;
// Nodes for intrinsics, you should use the intrinsic itself and let tblgen use
// these internally. Don't reference these directly.
OpenPOWER on IntegriCloud