Changes in directory llvm/include/llvm:
Constants.h updated: 1.98 -> 1.99 --- Log message: For PR950: http://llvm.org/PR950 : Provide an isCompare method for detection of ICmp and FCmp constant expressions. Change interfaces to allow for ICmp and FCmp predicate values. --- Diffs of the changes: (+6 -2) Constants.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) Index: llvm/include/llvm/Constants.h diff -u llvm/include/llvm/Constants.h:1.98 llvm/include/llvm/Constants.h:1.99 --- llvm/include/llvm/Constants.h:1.98 Sun Dec 3 20:43:42 2006 +++ llvm/include/llvm/Constants.h Sun Dec 3 23:19:02 2006 @@ -498,7 +498,7 @@ // These private methods are used by the type resolution code to create // ConstantExprs in intermediate forms. static Constant *getTy(const Type *Ty, unsigned Opcode, - Constant *C1, Constant *C2); + Constant *C1, Constant *C2, unsigned short pred = 0); static Constant *getShiftTy(const Type *Ty, unsigned Opcode, Constant *C1, Constant *C2); static Constant *getSelectTy(const Type *Ty, @@ -554,6 +554,9 @@ /// @brief Return true if this is a convert constant expression bool isCast() const; + /// @brief Return true if this is a compare constant expression + bool isCompare() const; + /// Select constant expr /// static Constant *getSelect(Constant *C, Constant *V1, Constant *V2) { @@ -572,7 +575,8 @@ /// ConstantExpr::get - Return a binary or shift operator constant expression, /// folding if possible. /// - static Constant *get(unsigned Opcode, Constant *C1, Constant *C2); + static Constant *get(unsigned Opcode, Constant *C1, Constant *C2, + unsigned short pred = 0); /// ConstantExpr::get* - Return some common constants without having to /// specify the full Instruction::OPCODE identifier. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits