Lines Matching refs:Predicate
986 static ICmpInst::Predicate areGlobalsPotentiallyEqual(const GlobalValue *GV1, in areGlobalsPotentiallyEqual()
1016 static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2) { in evaluateICmpRelation()
1039 ICmpInst::Predicate SwappedRelation = evaluateICmpRelation(V2, V1); in evaluateICmpRelation()
1125 Constant *llvm::ConstantFoldCompareInstruction(CmpInst::Predicate Predicate, in ConstantFoldCompareInstruction() argument
1135 if (Predicate == FCmpInst::FCMP_FALSE) in ConstantFoldCompareInstruction()
1138 if (Predicate == FCmpInst::FCMP_TRUE) in ConstantFoldCompareInstruction()
1146 bool isIntegerPredicate = ICmpInst::isIntPredicate(Predicate); in ConstantFoldCompareInstruction()
1150 if (ICmpInst::isEquality(Predicate) || (isIntegerPredicate && C1 == C2)) in ConstantFoldCompareInstruction()
1156 return ConstantInt::get(ResultTy, CmpInst::isTrueWhenEqual(Predicate)); in ConstantFoldCompareInstruction()
1160 return ConstantInt::get(ResultTy, CmpInst::isUnordered(Predicate)); in ConstantFoldCompareInstruction()
1167 if (Predicate == ICmpInst::ICMP_UGE) in ConstantFoldCompareInstruction()
1170 if (Predicate == ICmpInst::ICMP_ULT) in ConstantFoldCompareInstruction()
1176 switch (Predicate) { in ConstantFoldCompareInstruction()
1191 return ConstantInt::get(ResultTy, ICmpInst::compare(V1, V2, Predicate)); in ConstantFoldCompareInstruction()
1195 return ConstantInt::get(ResultTy, FCmpInst::compare(C1V, C2V, Predicate)); in ConstantFoldCompareInstruction()
1202 ConstantFoldCompareInstruction(Predicate, C1Splat, C2Splat)) in ConstantFoldCompareInstruction()
1221 Constant *Elt = ConstantFoldCompareInstruction(Predicate, C1E, C2E); in ConstantFoldCompareInstruction()
1234 if (Predicate == FCmpInst::FCMP_ONE) in ConstantFoldCompareInstruction()
1236 else if (Predicate == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
1249 Result = ICmpInst::isTrueWhenEqual(Predicate); in ConstantFoldCompareInstruction()
1252 switch (Predicate) { in ConstantFoldCompareInstruction()
1262 switch (Predicate) { in ConstantFoldCompareInstruction()
1272 switch (Predicate) { in ConstantFoldCompareInstruction()
1282 switch (Predicate) { in ConstantFoldCompareInstruction()
1292 if (Predicate == ICmpInst::ICMP_UGT) in ConstantFoldCompareInstruction()
1294 if (Predicate == ICmpInst::ICMP_ULT || Predicate == ICmpInst::ICMP_ULE) in ConstantFoldCompareInstruction()
1298 if (Predicate == ICmpInst::ICMP_SGT) in ConstantFoldCompareInstruction()
1300 if (Predicate == ICmpInst::ICMP_SLT || Predicate == ICmpInst::ICMP_SLE) in ConstantFoldCompareInstruction()
1304 if (Predicate == ICmpInst::ICMP_ULT) in ConstantFoldCompareInstruction()
1306 if (Predicate == ICmpInst::ICMP_UGT || Predicate == ICmpInst::ICMP_UGE) in ConstantFoldCompareInstruction()
1310 if (Predicate == ICmpInst::ICMP_SLT) in ConstantFoldCompareInstruction()
1312 if (Predicate == ICmpInst::ICMP_SGT || Predicate == ICmpInst::ICMP_SGE) in ConstantFoldCompareInstruction()
1316 if (Predicate == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction()
1318 if (Predicate == ICmpInst::ICMP_NE) in ConstantFoldCompareInstruction()
1332 Predicate = ICmpInst::getSwappedPredicate(Predicate); in ConstantFoldCompareInstruction()
1333 return ConstantFoldCompareInstruction(Predicate, C2, C1); in ConstantFoldCompareInstruction()