aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-02 05:28:33 +0000
committerChris Lattner <sabre@nondot.org>2008-03-02 05:28:33 +0000
commit8728f1915f332f09112848c6d30055be5b943ba5 (patch)
tree6c29f63d79c9c38e79d35ce7030f6f20c35ff073 /include
parent0452ed6bd6a227311b00f3777160415ea423b775 (diff)
downloadexternal_llvm-8728f1915f332f09112848c6d30055be5b943ba5.zip
external_llvm-8728f1915f332f09112848c6d30055be5b943ba5.tar.gz
external_llvm-8728f1915f332f09112848c6d30055be5b943ba5.tar.bz2
Add a new ShuffleVectorInst::getMaskValue method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instructions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 3474429..a7fe6a0 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -1228,6 +1228,11 @@ public:
Ops[i] = Val;
}
unsigned getNumOperands() const { return 3; }
+
+ /// getMaskValue - Return the index from the shuffle mask for the specified
+ /// output result. This is either -1 if the element is undef or a number less
+ /// than 2*numelements.
+ int getMaskValue(unsigned i) const;
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const ShuffleVectorInst *) { return true; }