summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-03-26 09:51:39 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-03-26 09:51:39 +0000
commit5562f2092f7d0b83946ebc9fc47b2df251b6c584 (patch)
tree9b8a488db9df6b1db88896515c6a4da7ea8dec70 /llvm/lib
parenta67899195f74afe6b2350328cb73a6772bf40b48 (diff)
downloadbcm5719-llvm-5562f2092f7d0b83946ebc9fc47b2df251b6c584.tar.gz
bcm5719-llvm-5562f2092f7d0b83946ebc9fc47b2df251b6c584.zip
Add immAllZerosV helper
llvm-svn: 27148
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetSelectionDAG.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetSelectionDAG.td b/llvm/lib/Target/TargetSelectionDAG.td
index 0cf0bfea413..c146fa9a8cd 100644
--- a/llvm/lib/Target/TargetSelectionDAG.td
+++ b/llvm/lib/Target/TargetSelectionDAG.td
@@ -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)>;
OpenPOWER on IntegriCloud