Home
last modified time | relevance | path

Searched refs:getCompare (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DValueLatticeTest.cpp129 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_SLT, I1Ty, LV3), nullptr); in TEST_F()
130 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_SLE, I1Ty, LV3), nullptr); in TEST_F()
131 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_NE, I1Ty, LV3), nullptr); in TEST_F()
132 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_EQ, I1Ty, LV3), nullptr); in TEST_F()
133 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_SGE, I1Ty, LV3), nullptr); in TEST_F()
134 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_SGT, I1Ty, LV3), nullptr); in TEST_F()
139 EXPECT_EQ(LV3.getCompare(CmpInst::ICMP_SLT, I1Ty, LV4), nullptr); in TEST_F()
140 EXPECT_EQ(LV3.getCompare(CmpInst::ICMP_SLE, I1Ty, LV4), nullptr); in TEST_F()
141 EXPECT_EQ(LV3.getCompare(CmpInst::ICMP_NE, I1Ty, LV4), nullptr); in TEST_F()
142 EXPECT_EQ(LV3.getCompare(CmpInst::ICMP_EQ, I1Ty, LV4), nullptr); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantFolder.h102 return ConstantExpr::getCompare(P, LC, RC); in FoldICmp()
230 return ConstantExpr::getCompare(P, LHS, RHS); in CreateFCmp()
H A DConstants.h1210 static Constant *getCompare(unsigned short pred, Constant *C1, Constant *C2,
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DValueLattice.h454 Constant *getCompare(CmpInst::Predicate Pred, Type *Ty, in getCompare() function
460 return ConstantExpr::getCompare(Pred, getConstant(), Other.getConstant()); in getCompare()
H A DTargetFolder.h106 return Fold(ConstantExpr::getCompare(P, LC, RC)); in FoldICmp()
248 return Fold(ConstantExpr::getCompare(P, LHS, RHS)); in CreateFCmp()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp1109 return ConstantExpr::getCompare(pred, CE1->getOperand(0), in ConstantFoldBinaryInstruction()
1684 ConstantExpr::getCompare(Predicate, C1Splat, C2Splat)); in ConstantFoldCompareInstruction()
1703 ResElts.push_back(ConstantExpr::getCompare(Predicate, C1E, C2E)); in ConstantFoldCompareInstruction()
H A DConstants.cpp1501 return ConstantExpr::getCompare(getPredicate(), Ops[0], Ops[1], in getWithOperands()
2420 Constant *ConstantExpr::getCompare(unsigned short Predicate, Constant *C1, in getCompare() function in ConstantExpr
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp643 Constant *Result = ConstantExpr::getCompare(CI->getPredicate(), in computeUnlikelySuccessors()
H A DConstantFolding.cpp1312 return ConstantExpr::getCompare( in ConstantFoldCompareInstOperands()
1329 return ConstantExpr::getCompare(Predicate, Ops0, Ops1); in ConstantFoldCompareInstOperands()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp934 Constant *Folded = ConstantExpr::getCompare(Pred, V, CmpConst); in computeValueKnownInPredecessorsImpl()
1602 return ConstantExpr::getCompare(CondCmp->getPredicate(), Op0, Op1); in evaluateOnPredecessorEdge()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp732 Constant *CCmp = ConstantExpr::getCompare(CCVal, CSrc0, CSrc1); in instCombineIntrinsic()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1038 Constant *C = V1State.getCompare(I.getPredicate(), I.getType(), V2State); in visitCmpInst()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1451 auto *BoolInput = ConstantExpr::getCompare(Pred, Input, C); in foldICmpWithConstant()
2934 ConstantExpr::getCompare(Cmp.getPredicate(), C1LessThan, C) in foldICmpSelectConstant()
2937 ConstantExpr::getCompare(Cmp.getPredicate(), C2Equal, C) in foldICmpSelectConstant()
2940 ConstantExpr::getCompare(Cmp.getPredicate(), C3GreaterThan, C) in foldICmpSelectConstant()
H A DInstructionCombining.cpp1111 auto *Cmp = ConstantExpr::getCompare(ICmpInst::ICMP_EQ, ConstA, ConstB); in FoldOpIntoSelect()
1266 InV = ConstantExpr::getCompare(CI->getPredicate(), InC, C); in foldOpIntoPhi()
H A DInstCombineAndOrXor.cpp1971 ConstantExpr::getCompare(ICmpInst::ICMP_ULT, Log2C3, C2); in visitAnd()
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1518 C = ConstantExpr::getCompare(BC->Flags, ConstOps[0], ConstOps[1]); in materializeValue()