Lines Matching refs:Predicate

874           CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate();  in ConstantFoldBinaryInstruction()
1069 static ICmpInst::Predicate areGlobalsPotentiallyEqual(const GlobalValue *GV1, in areGlobalsPotentiallyEqual()
1099 static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2) { in evaluateICmpRelation()
1122 ICmpInst::Predicate SwappedRelation = evaluateICmpRelation(V2, V1); in evaluateICmpRelation()
1209 Constant *llvm::ConstantFoldCompareInstruction(CmpInst::Predicate Predicate, in ConstantFoldCompareInstruction() argument
1219 if (Predicate == FCmpInst::FCMP_FALSE) in ConstantFoldCompareInstruction()
1222 if (Predicate == FCmpInst::FCMP_TRUE) in ConstantFoldCompareInstruction()
1230 bool isIntegerPredicate = ICmpInst::isIntPredicate(Predicate); in ConstantFoldCompareInstruction()
1234 if (ICmpInst::isEquality(Predicate) || (isIntegerPredicate && C1 == C2)) in ConstantFoldCompareInstruction()
1240 return ConstantInt::get(ResultTy, CmpInst::isTrueWhenEqual(Predicate)); in ConstantFoldCompareInstruction()
1244 return ConstantInt::get(ResultTy, CmpInst::isUnordered(Predicate)); in ConstantFoldCompareInstruction()
1251 if (Predicate == ICmpInst::ICMP_UGE) in ConstantFoldCompareInstruction()
1254 if (Predicate == ICmpInst::ICMP_ULT) in ConstantFoldCompareInstruction()
1260 switch (Predicate) { in ConstantFoldCompareInstruction()
1275 return ConstantInt::get(ResultTy, ICmpInst::compare(V1, V2, Predicate)); in ConstantFoldCompareInstruction()
1279 return ConstantInt::get(ResultTy, FCmpInst::compare(C1V, C2V, Predicate)); in ConstantFoldCompareInstruction()
1287 ConstantExpr::getCompare(Predicate, C1Splat, C2Splat)); in ConstantFoldCompareInstruction()
1306 ResElts.push_back(ConstantExpr::getCompare(Predicate, C1E, C2E)); in ConstantFoldCompareInstruction()
1315 if (Predicate == FCmpInst::FCMP_ONE) in ConstantFoldCompareInstruction()
1317 else if (Predicate == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
1330 Result = ICmpInst::isTrueWhenEqual(Predicate); in ConstantFoldCompareInstruction()
1333 switch (Predicate) { in ConstantFoldCompareInstruction()
1343 switch (Predicate) { in ConstantFoldCompareInstruction()
1353 switch (Predicate) { in ConstantFoldCompareInstruction()
1363 switch (Predicate) { in ConstantFoldCompareInstruction()
1373 if (Predicate == ICmpInst::ICMP_UGT) in ConstantFoldCompareInstruction()
1375 if (Predicate == ICmpInst::ICMP_ULT || Predicate == ICmpInst::ICMP_ULE) in ConstantFoldCompareInstruction()
1379 if (Predicate == ICmpInst::ICMP_SGT) in ConstantFoldCompareInstruction()
1381 if (Predicate == ICmpInst::ICMP_SLT || Predicate == ICmpInst::ICMP_SLE) in ConstantFoldCompareInstruction()
1385 if (Predicate == ICmpInst::ICMP_ULT) in ConstantFoldCompareInstruction()
1387 if (Predicate == ICmpInst::ICMP_UGT || Predicate == ICmpInst::ICMP_UGE) in ConstantFoldCompareInstruction()
1391 if (Predicate == ICmpInst::ICMP_SLT) in ConstantFoldCompareInstruction()
1393 if (Predicate == ICmpInst::ICMP_SGT || Predicate == ICmpInst::ICMP_SGE) in ConstantFoldCompareInstruction()
1397 if (Predicate == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction()
1399 if (Predicate == ICmpInst::ICMP_NE) in ConstantFoldCompareInstruction()
1413 Predicate = ICmpInst::getSwappedPredicate(Predicate); in ConstantFoldCompareInstruction()
1414 return ConstantExpr::getICmp(Predicate, C2, C1); in ConstantFoldCompareInstruction()