X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FInstrTypes.h;h=152f4773ebe85acdc474f0f35c44cd50a8877137;hp=b3ec55921fdf8cec0bd28a4dd98f5f0576a35489;hb=e4d87aa2de6e52952dca73716386db09aad5a8fd;hpb=add2bd7f5941537a97a41e037ae2277fbeed0b4f diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h index b3ec55921fd..152f4773ebe 100644 --- a/include/llvm/InstrTypes.h +++ b/include/llvm/InstrTypes.h @@ -543,6 +543,20 @@ public: /// @brief Determine if this is an equals/not equals predicate. bool isEquality(); + /// @returns true if the predicate is unsigned, false otherwise. + /// @brief Determine if the predicate is an unsigned operation. + static bool isUnsigned(unsigned short predicate); + + /// @returns true if the predicate is signed, false otherwise. + /// @brief Determine if the predicate is an signed operation. + static bool isSigned(unsigned short predicate); + + /// @brief Determine if the predicate is an ordered operation. + static bool isOrdered(unsigned short predicate); + + /// @brief Determine if the predicate is an unordered operation. + static bool isUnordered(unsigned short predicate); + /// @brief Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const CmpInst *) { return true; } static inline bool classof(const Instruction *I) {