diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-25 21:03:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-25 21:03:14 +0000 |
commit | 978982628a8312de9f6f8af42fa48c02cc3fd28e (patch) | |
tree | 5c9a48060ee30de65dd707c825a7f04b714b0e97 | |
parent | 753c8f20e45f6e4198c7cf4096ecc8948a029e9c (diff) | |
download | external_llvm-978982628a8312de9f6f8af42fa48c02cc3fd28e.zip external_llvm-978982628a8312de9f6f8af42fa48c02cc3fd28e.tar.gz external_llvm-978982628a8312de9f6f8af42fa48c02cc3fd28e.tar.bz2 |
Add undef
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23990 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/TargetSelectionDAG.td | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/TargetSelectionDAG.td b/lib/Target/TargetSelectionDAG.td index f27fc90..a0b7083 100644 --- a/lib/Target/TargetSelectionDAG.td +++ b/lib/Target/TargetSelectionDAG.td @@ -68,7 +68,8 @@ class SDTypeProfile<int numresults, int numoperands, // Builtin profiles. def SDTImm : SDTypeProfile<1, 0, [SDTCisInt<0>]>; // for 'imm'. -def SDTVT : SDTypeProfile<1, 0, [SDTCisVT<0, OtherVT>]>; // for 'vt' +def SDTVT : SDTypeProfile<1, 0, [SDTCisVT<0, OtherVT>]>; // for 'vt'. +def SDTUNDEF : SDTypeProfile<1, 0, []>; // for 'undef'. def SDTIntBinOp : SDTypeProfile<1, 2, [ // add, and, or, xor, udiv, etc. SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisInt<0> ]>; @@ -123,6 +124,7 @@ def node; def imm : SDNode<"ISD::Constant" , SDTImm , [], "ConstantSDNode">; def vt : SDNode<"ISD::VALUETYPE" , SDTVT , [], "VTSDNode">; +def undef : SDNode<"ISD::UNDEF" , SDTUNDEF , []>; def add : SDNode<"ISD::ADD" , SDTIntBinOp , [SDNPCommutative, SDNPAssociative]>; def sub : SDNode<"ISD::SUB" , SDTIntBinOp>; |