diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-03-25 22:56:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-03-25 22:56:35 +0000 |
| commit | 322dcd379eb19ea8d01478a661920ea1ce62fa0d (patch) | |
| tree | a2dd074cc80f551edbfcbdd2699a8dafa687f161 /include/llvm/CodeGen/SelectionDAGNodes.h | |
| parent | 6ea2dee6f675bd5eb32de08b4eecfe21ebe107a0 (diff) | |
| download | external_llvm-322dcd379eb19ea8d01478a661920ea1ce62fa0d.zip external_llvm-322dcd379eb19ea8d01478a661920ea1ce62fa0d.tar.gz external_llvm-322dcd379eb19ea8d01478a661920ea1ce62fa0d.tar.bz2 | |
Add a predicate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
| -rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 75579ec..df76524 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 |
