Add a predicate
authorChris Lattner <sabre@nondot.org>
Sat, 25 Mar 2006 22:56:35 +0000 (22:56 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 25 Mar 2006 22:56:35 +0000 (22:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27129 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index 75579ecb7cc2c15e1384367e23a8000c83da9606..df76524ca119a8a77ab90983c6501abb55ed0b5e 100644 (file)
@@ -453,6 +453,13 @@ namespace ISD {
     BUILTIN_OP_END
   };
 
+  /// Node predicates
+
+  /// isBuildVectorAllOnesInteger - Return true if the specified node is a
+  /// BUILD_VECTOR where all of the elements are ~0 or undef.
+  bool isBuildVectorAllOnesInteger(const SDNode *N);
+  
+  
   //===--------------------------------------------------------------------===//
   /// ISD::CondCode enum - These are ordered carefully to make the bitfields
   /// below work out, when considering SETFALSE (something that never exists