15 #ifndef LLVM_TRANSFORMS_UTILS_CMPINSTANALYSIS_H
16 #define LLVM_TRANSFORMS_UTILS_CMPINSTANALYSIS_H
47 unsigned getICmpCode(
const ICmpInst *ICI,
bool InvertPred =
false);
unsigned getICmpCode(const ICmpInst *ICI, bool InvertPred=false)
getICmpCode - Encode a icmp predicate into a three bit mask.
Predicate
This enumeration lists the possible predicates for CmpInst subclasses.
bool PredicatesFoldable(CmpInst::Predicate p1, CmpInst::Predicate p2)
PredicatesFoldable - Return true if both predicates match sign or if at least one of them is an equal...
Value * getICmpValue(bool Sign, unsigned Code, Value *LHS, Value *RHS, CmpInst::Predicate &NewICmpPred)
getICmpValue - This is the complement of getICmpCode, which turns an opcode and two operands into eit...