Lines Matching defs:CmpInst

3428 //                               CmpInst Classes
3431 CmpInst::CmpInst(Type *ty, OtherOps op, Predicate predicate, Value *LHS,
3434 : Instruction(ty, op, OperandTraits<CmpInst>::op_begin(this),
3435 OperandTraits<CmpInst>::operands(this), InsertBefore) {
3444 CmpInst *CmpInst::Create(OtherOps Op, Predicate predicate, Value *S1, Value *S2,
3448 return new ICmpInst(InsertBefore, CmpInst::Predicate(predicate),
3451 return new ICmpInst(CmpInst::Predicate(predicate),
3456 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate),
3459 return new FCmpInst(CmpInst::Predicate(predicate),
3463 CmpInst *CmpInst::CreateWithCopiedFlags(OtherOps Op, Predicate Pred, Value *S1,
3468 CmpInst *Inst = Create(Op, Pred, S1, S2, Name, InsertBefore);
3473 void CmpInst::swapOperands() {
3480 bool CmpInst::isCommutative() const {
3486 bool CmpInst::isEquality(Predicate P) {
3494 CmpInst::Predicate CmpInst::getInversePredicate(Predicate pred) {
3527 StringRef CmpInst::getPredicateName(Predicate Pred) {
3559 raw_ostream &llvm::operator<<(raw_ostream &OS, CmpInst::Predicate Pred) {
3560 OS << CmpInst::getPredicateName(Pred);
3590 CmpInst::Predicate CmpInst::getSwappedPredicate(Predicate pred) {
3620 bool CmpInst::isNonStrictPredicate(Predicate pred) {
3636 bool CmpInst::isStrictPredicate(Predicate pred) {
3652 CmpInst::Predicate CmpInst::getStrictPredicate(Predicate pred) {
3675 CmpInst::Predicate CmpInst::getNonStrictPredicate(Predicate pred) {
3698 CmpInst::Predicate CmpInst::getFlippedStrictnessPredicate(Predicate pred) {
3699 assert(CmpInst::isRelational(pred) && "Call only with relational predicate!");
3709 CmpInst::Predicate CmpInst::getSignedPredicate(Predicate pred) {
3710 assert(CmpInst::isUnsigned(pred) && "Call only with unsigned predicates!");
3715 case CmpInst::ICMP_ULT:
3716 return CmpInst::ICMP_SLT;
3717 case CmpInst::ICMP_ULE:
3718 return CmpInst::ICMP_SLE;
3719 case CmpInst::ICMP_UGT:
3720 return CmpInst::ICMP_SGT;
3721 case CmpInst::ICMP_UGE:
3722 return CmpInst::ICMP_SGE;
3726 CmpInst::Predicate CmpInst::getUnsignedPredicate(Predicate pred) {
3727 assert(CmpInst::isSigned(pred) && "Call only with signed predicates!");
3732 case CmpInst::ICMP_SLT:
3733 return CmpInst::ICMP_ULT;
3734 case CmpInst::ICMP_SLE:
3735 return CmpInst::ICMP_ULE;
3736 case CmpInst::ICMP_SGT:
3737 return CmpInst::ICMP_UGT;
3738 case CmpInst::ICMP_SGE:
3739 return CmpInst::ICMP_UGE;
3743 bool CmpInst::isUnsigned(Predicate predicate) {
3751 bool CmpInst::isSigned(Predicate predicate) {
3829 CmpInst::Predicate CmpInst::getFlippedSignednessPredicate(Predicate pred) {
3830 assert(CmpInst::isRelational(pred) &&
3841 bool CmpInst::isOrdered(Predicate predicate) {
3850 bool CmpInst::isUnordered(Predicate predicate) {
3859 bool CmpInst::isTrueWhenEqual(Predicate predicate) {
3867 bool CmpInst::isFalseWhenEqual(Predicate predicate) {
3875 bool CmpInst::isImpliedTrueByMatchingCmp(Predicate Pred1, Predicate Pred2) {
3900 bool CmpInst::isImpliedFalseByMatchingCmp(Predicate Pred1, Predicate Pred2) {