Teach DAGCombiner how to fold a SIGN_EXTEND_INREG of a BUILD_VECTOR of
[oota-llvm.git] / include / llvm / CodeGen / SelectionDAGNodes.h
index 70c15e6c6e6f7a50222ed6c8b45a68a0c12e527d..08eda723c6bc55b044080213b7967c986a104254 100644 (file)
@@ -70,6 +70,10 @@ namespace ISD {
   /// BUILD_VECTOR where all of the elements are 0 or undef.
   bool isBuildVectorAllZeros(const SDNode *N);
 
+  /// \brief Return true if the specified node is a BUILD_VECTOR node of
+  /// all ConstantSDNode or undef.
+  bool isBuildVectorOfConstantSDNodes(const SDNode *N);
+
   /// isScalarToVector - Return true if the specified node is a
   /// ISD::SCALAR_TO_VECTOR node or a BUILD_VECTOR node where only the low
   /// element is not an undef.