Add a predicate

llvm-svn: 27129
This commit is contained in:
Chris Lattner 2006-03-25 22:56:35 +00:00
parent dc1eab5886
commit ae3180c955
1 changed files with 7 additions and 0 deletions

View 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