Add immAllZerosV helper

llvm-svn: 27148
This commit is contained in:
Evan Cheng 2006-03-26 09:51:39 +00:00
parent a67899195f
commit 5562f2092f
1 changed files with 3 additions and 0 deletions

View File

@ -386,6 +386,9 @@ def immAllOnes : PatLeaf<(imm), [{ return N->isAllOnesValue(); }]>;
def immAllOnesV: PatLeaf<(build_vector), [{
return ISD::isBuildVectorAllOnesInteger(N);
}]>;
def immAllZerosV: PatLeaf<(build_vector), [{
return ISD::isBuildVectorAllZeros(N);
}]>;
// Other helper fragments.
def not : PatFrag<(ops node:$in), (xor node:$in, immAllOnes)>;