mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21: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:
@@ -386,6 +386,9 @@ def immAllOnes : PatLeaf<(imm), [{ return N->isAllOnesValue(); }]>;
|
|||||||
def immAllOnesV: PatLeaf<(build_vector), [{
|
def immAllOnesV: PatLeaf<(build_vector), [{
|
||||||
return ISD::isBuildVectorAllOnesInteger(N);
|
return ISD::isBuildVectorAllOnesInteger(N);
|
||||||
}]>;
|
}]>;
|
||||||
|
def immAllZerosV: PatLeaf<(build_vector), [{
|
||||||
|
return ISD::isBuildVectorAllZeros(N);
|
||||||
|
}]>;
|
||||||
|
|
||||||
// Other helper fragments.
|
// Other helper fragments.
|
||||||
def not : PatFrag<(ops node:$in), (xor node:$in, immAllOnes)>;
|
def not : PatFrag<(ops node:$in), (xor node:$in, immAllOnes)>;
|
||||||
|
Reference in New Issue
Block a user