Changes in directory llvm/include/llvm:
Instructions.h updated: 1.49 -> 1.50 --- Log message: add accessors --- Diffs of the changes: (+6 -0) Instructions.h | 6 ++++++ 1 files changed, 6 insertions(+) Index: llvm/include/llvm/Instructions.h diff -u llvm/include/llvm/Instructions.h:1.49 llvm/include/llvm/Instructions.h:1.50 --- llvm/include/llvm/Instructions.h:1.49 Thu Dec 28 22:10:59 2006 +++ llvm/include/llvm/Instructions.h Sun Jan 14 13:41:24 2007 @@ -467,6 +467,9 @@ /// @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 @@ /// @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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits