mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 16:45:03 +00:00
Add immAllZerosV helper
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27148 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a147842eb
commit
e506f9ae35
@ -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)>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user