[llvm-commits] CVS: llvm/include/llvm/Instructions.h
Chris Lattner
sabre at nondot.org
Sun Jan 14 11:41:39 PST 2007
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
More information about the llvm-commits
mailing list