Add addrspacecast node to tablegen
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 5 Feb 2015 03:35:34 +0000 (03:35 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 5 Feb 2015 03:35:34 +0000 (03:35 +0000)
The node is still defined oddly so that the
address spaces are not operands and not accessible
from tablegen, but as-is this can now be used to write
a ComplexPattern with an addrspacecast root node.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228270 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetSelectionDAG.td

index 907baa1b9b1f66e81f152c83e4b5896c01ad9894..744a7b0c97a9788dc7d294fe0131995c5900a39f 100644 (file)
@@ -371,6 +371,7 @@ def zext       : SDNode<"ISD::ZERO_EXTEND", SDTIntExtendOp>;
 def anyext     : SDNode<"ISD::ANY_EXTEND" , SDTIntExtendOp>;
 def trunc      : SDNode<"ISD::TRUNCATE"   , SDTIntTruncOp>;
 def bitconvert : SDNode<"ISD::BITCAST"    , SDTUnaryOp>;
+def addrspacecast : SDNode<"ISD::ADDRSPACECAST", SDTUnaryOp>;
 def extractelt : SDNode<"ISD::EXTRACT_VECTOR_ELT", SDTVecExtract>;
 def insertelt  : SDNode<"ISD::INSERT_VECTOR_ELT", SDTVecInsert>;