diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-14 19:41:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-14 19:41:24 +0000 |
commit | b769d5657ea8af2c7620d29ea1deb97c83782e56 (patch) | |
tree | 52ae3d29504679e0b999756410aab655708c1184 | |
parent | 3ccebe449ec7b70b91e993783bfc0cf3ffc31b6d (diff) |
add accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33207 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Instructions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index cbcc0974e4..3a88b99074 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -467,6 +467,9 @@ public: /// @brief Return the predicate for this instruction. Predicate getPredicate() const { return Predicate(SubclassData); } + /// @brief Set the predicate for this instruction to the specified value. + void setPredicate(Predicate P) { SubclassData = P; } + /// For example, EQ -> NE, UGT -> ULE, SLT -> SGE, etc. /// @returns the inverse predicate for the instruction's current predicate. /// @brief Return the inverse of the instruction's predicate. @@ -609,6 +612,9 @@ public: /// @brief Return the predicate for this instruction. Predicate getPredicate() const { return Predicate(SubclassData); } + /// @brief Set the predicate for this instruction to the specified value. + void setPredicate(Predicate P) { SubclassData = P; } + /// For example, OEQ -> UNE, UGT -> OLE, OLT -> UGE, etc. /// @returns the inverse predicate for the instructions current predicate. /// @brief Return the inverse of the predicate |