From 322dcd379eb19ea8d01478a661920ea1ce62fa0d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 25 Mar 2006 22:56:35 +0000 Subject: [PATCH] Add a predicate git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27129 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/SelectionDAGNodes.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 75579ecb7cc..df76524ca11 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -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