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 | 1ca997078c2cf607dfc074a19f822e38fa716f58 (patch) | |
| tree | 293ebb40876ec69a07285b5a0f4e4b0f401dff12 | |
| parent | 0abf4ed41e261d3fb2db9c6975b41637f8b8e212 (diff) | |
| download | bcm5719-llvm-1ca997078c2cf607dfc074a19f822e38fa716f58.tar.gz bcm5719-llvm-1ca997078c2cf607dfc074a19f822e38fa716f58.zip | |
add accessors
llvm-svn: 33207
| -rw-r--r-- | llvm/include/llvm/Instructions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index cbcc0974e49..3a88b990749 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/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 |

