summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-09-20 15:21:52 +0000
committerSanjay Patel <spatel@rotateright.com>2018-09-20 15:21:52 +0000
commitfd4976bd191f98b1981db1c60027bbe643c98b9d (patch)
tree0008366babaa801537e94123d7e03380559c8ca7 /llvm/include
parent468f53b58c620031c11e47b3c3f27271797b0771 (diff)
downloadbcm5719-llvm-fd4976bd191f98b1981db1c60027bbe643c98b9d.tar.gz
bcm5719-llvm-fd4976bd191f98b1981db1c60027bbe643c98b9d.zip
[IR] add shuffle query for vector concatenation
This can be used for combining and in the vectorizers/cost models. llvm-svn: 342653
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/Instructions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h
index b17d779a865..54730208476 100644
--- a/llvm/include/llvm/IR/Instructions.h
+++ b/llvm/include/llvm/IR/Instructions.h
@@ -2513,6 +2513,11 @@ public:
/// source vector.
bool isIdentityWithExtract() const;
+ /// Return true if this shuffle concatenates its 2 source vectors. This
+ /// returns false if either input is undefined. In that case, the shuffle is
+ /// is better classified as an identity with padding operation.
+ bool isConcat() const;
+
/// Return true if this shuffle mask chooses elements from its source vectors
/// without lane crossings. A shuffle using this mask would be
/// equivalent to a vector select with a constant condition operand.
OpenPOWER on IntegriCloud