Home
last modified time | relevance | path

Searched refs:CmpInst (Results 1 – 25 of 223) sorted by relevance

123456789

/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMLegalizerInfo.cpp233 FCmp32Libcalls.resize(CmpInst::LAST_FCMP_PREDICATE + 1); in setFCmpLibcallsAEABI()
234 FCmp32Libcalls[CmpInst::FCMP_OEQ] = { in setFCmpLibcallsAEABI()
235 {RTLIB::OEQ_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
236 FCmp32Libcalls[CmpInst::FCMP_OGE] = { in setFCmpLibcallsAEABI()
237 {RTLIB::OGE_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
238 FCmp32Libcalls[CmpInst::FCMP_OGT] = { in setFCmpLibcallsAEABI()
239 {RTLIB::OGT_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
240 FCmp32Libcalls[CmpInst::FCMP_OLE] = { in setFCmpLibcallsAEABI()
241 {RTLIB::OLE_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
242 FCmp32Libcalls[CmpInst::FCMP_OLT] = { in setFCmpLibcallsAEABI()
[all …]
H A DARMInstructionSelector.cpp394 getComparePreds(CmpInst::Predicate Pred) { in getComparePreds()
397 case CmpInst::FCMP_ONE: in getComparePreds()
400 case CmpInst::FCMP_UEQ: in getComparePreds()
403 case CmpInst::ICMP_EQ: in getComparePreds()
404 case CmpInst::FCMP_OEQ: in getComparePreds()
407 case CmpInst::ICMP_SGT: in getComparePreds()
408 case CmpInst::FCMP_OGT: in getComparePreds()
411 case CmpInst::ICMP_SGE: in getComparePreds()
412 case CmpInst::FCMP_OGE: in getComparePreds()
415 case CmpInst::ICMP_UGT: in getComparePreds()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCmpInstAnalysis.h46 unsigned getICmpCode(CmpInst::Predicate Pred);
55 CmpInst::Predicate &Pred);
59 bool predicatesFoldable(CmpInst::Predicate P1, CmpInst::Predicate P2);
63 inline unsigned getFCmpCode(CmpInst::Predicate CC) { in getFCmpCode()
64 assert(CmpInst::FCMP_FALSE <= CC && CC <= CmpInst::FCMP_TRUE && in getFCmpCode()
68 static_assert(CmpInst::FCMP_FALSE == 0); // 0 0 0 0 in getFCmpCode()
69 static_assert(CmpInst::FCMP_OEQ == 1); // 0 0 0 1 in getFCmpCode()
70 static_assert(CmpInst::FCMP_OGT == 2); // 0 0 1 0 in getFCmpCode()
71 static_assert(CmpInst::FCMP_OGE == 3); // 0 0 1 1 in getFCmpCode()
72 static_assert(CmpInst::FCMP_OLT == 4); // 0 1 0 0 in getFCmpCode()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64GlobalISelUtils.cpp44 const CmpInst::Predicate &Pred, in isCMN()
56 !CmpInst::isEquality(Pred)) in isCMN()
129 const CmpInst::Predicate P, AArch64CC::CondCode &CondCode, in changeFCMPPredToAArch64CC()
135 case CmpInst::FCMP_OEQ: in changeFCMPPredToAArch64CC()
138 case CmpInst::FCMP_OGT: in changeFCMPPredToAArch64CC()
141 case CmpInst::FCMP_OGE: in changeFCMPPredToAArch64CC()
144 case CmpInst::FCMP_OLT: in changeFCMPPredToAArch64CC()
147 case CmpInst::FCMP_OLE: in changeFCMPPredToAArch64CC()
150 case CmpInst::FCMP_ONE: in changeFCMPPredToAArch64CC()
154 case CmpInst::FCMP_ORD: in changeFCMPPredToAArch64CC()
[all …]
H A DAArch64PostLegalizerLowering.cpp553 std::optional<std::pair<uint64_t, CmpInst::Predicate>>
554 tryAdjustICmpImmAndPred(Register RHS, CmpInst::Predicate P, in tryAdjustICmpImmAndPred()
577 case CmpInst::ICMP_SLT: in tryAdjustICmpImmAndPred()
578 case CmpInst::ICMP_SGE: in tryAdjustICmpImmAndPred()
588 P = (P == CmpInst::ICMP_SLT) ? CmpInst::ICMP_SLE : CmpInst::ICMP_SGT; in tryAdjustICmpImmAndPred()
591 case CmpInst::ICMP_ULT: in tryAdjustICmpImmAndPred()
592 case CmpInst::ICMP_UGE: in tryAdjustICmpImmAndPred()
601 P = (P == CmpInst::ICMP_ULT) ? CmpInst::ICMP_ULE : CmpInst::ICMP_UGT; in tryAdjustICmpImmAndPred()
604 case CmpInst::ICMP_SLE: in tryAdjustICmpImmAndPred()
605 case CmpInst::ICMP_SGT: in tryAdjustICmpImmAndPred()
[all …]
H A DAArch64GlobalISelUtils.h45 bool isCMN(const MachineInstr *MaybeSub, const CmpInst::Predicate &Pred,
68 void changeFCMPPredToAArch64CC(const CmpInst::Predicate P,
79 void changeVectorFCMPPredToAArch64CC(const CmpInst::Predicate P,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstraintElimination.cpp91 CmpInst::Predicate Pred;
96 : Pred(CmpInst::BAD_ICMP_PREDICATE), Op0(nullptr), Op1(nullptr) {} in ConditionTy()
97 ConditionTy(CmpInst::Predicate Pred, Value *Op0, Value *Op1) in ConditionTy()
135 : U(U), DoesHold(CmpInst::BAD_ICMP_PREDICATE, nullptr, nullptr), in FactOrCheck()
139 FactOrCheck(DomTreeNode *DTN, CmpInst::Predicate Pred, Value *Op0, Value *Op1, in FactOrCheck()
144 static FactOrCheck getConditionFact(DomTreeNode *DTN, CmpInst::Predicate Pred, in getConditionFact()
307 bool doesHold(CmpInst::Predicate Pred, Value *A, Value *B) const;
309 void addFact(CmpInst::Predicate Pred, Value *A, Value *B, unsigned NumIn,
316 ConstraintTy getConstraint(CmpInst::Predicate Pred, Value *Op0, Value *Op1,
326 ConstraintTy getConstraintForSolving(CmpInst::Predicate Pred, Value *Op0,
[all …]
H A DFloat2Int.cpp51 static CmpInst::Predicate mapFCmpPred(CmpInst::Predicate P) { in mapFCmpPred()
53 case CmpInst::FCMP_OEQ: in mapFCmpPred()
54 case CmpInst::FCMP_UEQ: in mapFCmpPred()
55 return CmpInst::ICMP_EQ; in mapFCmpPred()
56 case CmpInst::FCMP_OGT: in mapFCmpPred()
57 case CmpInst::FCMP_UGT: in mapFCmpPred()
58 return CmpInst::ICMP_SGT; in mapFCmpPred()
59 case CmpInst::FCMP_OGE: in mapFCmpPred()
60 case CmpInst::FCMP_UGE: in mapFCmpPred()
61 return CmpInst::ICMP_SGE; in mapFCmpPred()
[all …]
H A DIndVarSimplify.cpp269 CmpInst::Predicate NewPred = CmpInst::BAD_ICMP_PREDICATE; in handleFloatingPointIV()
272 case CmpInst::FCMP_OEQ: in handleFloatingPointIV()
273 case CmpInst::FCMP_UEQ: NewPred = CmpInst::ICMP_EQ; break; in handleFloatingPointIV()
274 case CmpInst::FCMP_ONE: in handleFloatingPointIV()
275 case CmpInst::FCMP_UNE: NewPred = CmpInst::ICMP_NE; break; in handleFloatingPointIV()
276 case CmpInst::FCMP_OGT: in handleFloatingPointIV()
277 case CmpInst::FCMP_UGT: NewPred = CmpInst::ICMP_SGT; break; in handleFloatingPointIV()
278 case CmpInst::FCMP_OGE: in handleFloatingPointIV()
279 case CmpInst::FCMP_UGE: NewPred = CmpInst::ICMP_SGE; break; in handleFloatingPointIV()
280 case CmpInst::FCMP_OLT: in handleFloatingPointIV()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp89 void convertFCmp(CmpInst &I);
92 void convertICmp(CmpInst &I);
126 void SystemZTDCPass::convertFCmp(CmpInst &I) { in convertFCmp()
148 if ((Pred & CmpInst::FCMP_OGE) != CmpInst::FCMP_OGE && in convertFCmp()
149 (Pred & CmpInst::FCMP_OGE) != 0) in convertFCmp()
154 if ((Pred & CmpInst::FCMP_OLE) != CmpInst::FCMP_OLE && in convertFCmp()
155 (Pred & CmpInst::FCMP_OLE) != 0) in convertFCmp()
209 if (Pred & CmpInst::FCMP_OEQ) in convertFCmp()
211 if (Pred & CmpInst::FCMP_OGT) in convertFCmp()
213 if (Pred & CmpInst::FCMP_OLT) in convertFCmp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOperations.cpp33 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_EQ)); in describeFuzzerIntOps()
34 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_NE)); in describeFuzzerIntOps()
35 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_UGT)); in describeFuzzerIntOps()
36 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_UGE)); in describeFuzzerIntOps()
37 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_ULT)); in describeFuzzerIntOps()
38 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_ULE)); in describeFuzzerIntOps()
39 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SGT)); in describeFuzzerIntOps()
40 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SGE)); in describeFuzzerIntOps()
41 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SLT)); in describeFuzzerIntOps()
42 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SLE)); in describeFuzzerIntOps()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLibCallsShrinkWrap.cpp83 Value *createOrCond(CallInst *CI, Value *Arg, CmpInst::Predicate Cmp, in createOrCond()
84 float Val, Value *Arg2, CmpInst::Predicate Cmp2, in createOrCond()
93 Value *createOrCond(CallInst *CI, CmpInst::Predicate Cmp, float Val, in createOrCond()
94 CmpInst::Predicate Cmp2, float Val2) { in createOrCond()
100 Value *createCond(IRBuilder<> &BBBuilder, Value *Arg, CmpInst::Predicate Cmp, in createCond()
111 Value *createCond(CallInst *CI, Value *Arg, CmpInst::Predicate Cmp, in createCond()
118 Value *createCond(CallInst *CI, CmpInst::Predicate Cmp, float Val) { in createCond()
143 Cond = createOrCond(CI, CmpInst::FCMP_OLT, -1.0f, CmpInst::FCMP_OGT, 1.0f); in performCallDomainErrorOnly()
154 Cond = createOrCond(CI, CmpInst::FCMP_OEQ, INFINITY, CmpInst::FCMP_OEQ, in performCallDomainErrorOnly()
163 Cond = createCond(CI, CmpInst::FCMP_OLT, 1.0f); in performCallDomainErrorOnly()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp21 unsigned llvm::getICmpCode(CmpInst::Predicate Pred) { in getICmpCode()
41 CmpInst::Predicate &Pred) { in getPredForICmpCode()
45 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 0); in getPredForICmpCode()
53 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 1); in getPredForICmpCode()
59 return (CmpInst::isSigned(P1) == CmpInst::isSigned(P2)) || in predicatesFoldable()
60 (CmpInst::isSigned(P1) && ICmpInst::isEquality(P2)) || in predicatesFoldable()
61 (CmpInst::isSigned(P2) && ICmpInst::isEquality(P1)); in predicatesFoldable()
65 CmpInst::Predicate &Pred) { in getPredForFCmpCode()
70 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 0); in getPredForFCmpCode()
72 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 1); in getPredForFCmpCode()
[all …]
H A DLoopNestAnalysis.cpp52 static CmpInst *getOuterLoopLatchCmp(const Loop &OuterLoop) { in getOuterLoopLatchCmp()
61 CmpInst *OuterLoopLatchCmp = dyn_cast<CmpInst>(BI->getCondition()); in getOuterLoopLatchCmp()
70 static CmpInst *getInnerLoopGuardCmp(const Loop &InnerLoop) { in getInnerLoopGuardCmp()
73 CmpInst *InnerLoopGuardCmp = in getInnerLoopGuardCmp()
74 (InnerGuard) ? dyn_cast<CmpInst>(InnerGuard->getCondition()) : nullptr; in getInnerLoopGuardCmp()
85 const CmpInst *InnerLoopGuardCmp, in checkSafeInstruction()
86 const CmpInst *OuterLoopLatchCmp, in checkSafeInstruction()
97 (isa<CmpInst>(I) && &I != OuterLoopLatchCmp && &I != InnerLoopGuardCmp)) { in checkSafeInstruction()
137 CmpInst *OuterLoopLatchCmp = getOuterLoopLatchCmp(OuterLoop); in analyzeLoopNestForPerfectNest()
138 CmpInst *InnerLoopGuardCmp = getInnerLoopGuardCmp(InnerLoop); in analyzeLoopNestForPerfectNest()
[all …]
H A DInstructionSimplify.cpp91 CmpInst::Predicate ExpectedPred, Pred1, Pred2; in foldSelectWithBinaryOp()
134 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS, in isSameCompare()
136 CmpInst *Cmp = dyn_cast<CmpInst>(V); in isSameCompare()
139 CmpInst::Predicate CPred = Cmp->getPredicate(); in isSameCompare()
143 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare()
152 static Value *simplifyCmpSelCase(CmpInst::Predicate Pred, Value *LHS, in simplifyCmpSelCase()
169 static Value *simplifyCmpSelTrueCase(CmpInst::Predicate Pred, Value *LHS, in simplifyCmpSelTrueCase()
178 static Value *simplifyCmpSelFalseCase(CmpInst::Predicate Pred, Value *LHS, in simplifyCmpSelFalseCase()
473 static Value *threadCmpOverSelect(CmpInst::Predicate Pred, Value *LHS, in threadCmpOverSelect()
483 Pred = CmpInst::getSwappedPredicate(Pred); in threadCmpOverSelect()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsInstructionSelector.cpp755 CmpInst::Predicate Cond = in select()
756 static_cast<CmpInst::Predicate>(I.getOperand(1).getPredicate()); in select()
759 case CmpInst::ICMP_EQ: // LHS == RHS -> (LHS ^ RHS) < 1 in select()
763 case CmpInst::ICMP_NE: // LHS != RHS -> 0 < (LHS ^ RHS) in select()
767 case CmpInst::ICMP_UGT: // LHS > RHS -> RHS < LHS in select()
770 case CmpInst::ICMP_UGE: // LHS >= RHS -> !(LHS < RHS) in select()
774 case CmpInst::ICMP_ULT: // LHS < RHS -> LHS < RHS in select()
777 case CmpInst::ICMP_ULE: // LHS <= RHS -> !(RHS < LHS) in select()
781 case CmpInst::ICMP_SGT: // LHS > RHS -> RHS < LHS in select()
784 case CmpInst::ICMP_SGE: // LHS >= RHS -> !(LHS < RHS) in select()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp425 static RISCVCC::CondCode getRISCVCCFromICmp(CmpInst::Predicate CC) { in getRISCVCCFromICmp()
429 case CmpInst::Predicate::ICMP_EQ: in getRISCVCCFromICmp()
431 case CmpInst::Predicate::ICMP_NE: in getRISCVCCFromICmp()
433 case CmpInst::Predicate::ICMP_ULT: in getRISCVCCFromICmp()
435 case CmpInst::Predicate::ICMP_SLT: in getRISCVCCFromICmp()
437 case CmpInst::Predicate::ICMP_UGE: in getRISCVCCFromICmp()
439 case CmpInst::Predicate::ICMP_SGE: in getRISCVCCFromICmp()
448 CmpInst::Predicate Pred = CmpInst::BAD_ICMP_PREDICATE; in getOperandsForBranch()
461 case CmpInst::Predicate::ICMP_SGT: in getOperandsForBranch()
469 case CmpInst::Predicate::ICMP_SLT: in getOperandsForBranch()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp578 CmpInst *cmp_inst = dyn_cast<CmpInst>(&ii); in CanInterpret()
595 case CmpInst::FCMP_OEQ: in CanInterpret()
596 case CmpInst::ICMP_EQ: in CanInterpret()
597 case CmpInst::FCMP_UNE: in CanInterpret()
598 case CmpInst::ICMP_NE: in CanInterpret()
599 case CmpInst::FCMP_OGT: in CanInterpret()
600 case CmpInst::ICMP_UGT: in CanInterpret()
601 case CmpInst::FCMP_OGE: in CanInterpret()
602 case CmpInst::ICMP_UGE: in CanInterpret()
603 case CmpInst::FCMP_OLT: in CanInterpret()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/
H A DPPCTargetParser.def194 PPC_AIX_FEATURE("4xxmac","4xx CPU has a Multiply Accumulator",BUILTIN_PPC_FALSE,0,0,CmpInst::Predic…
196 PPC_AIX_FEATURE("arch_2_05","CPU supports ISA 205 (eg, POWER6)",BUILTIN_PPC_TRUE,0,0,CmpInst::Predi…
201 PPC_AIX_FEATURE("booke","CPU supports the Embedded ISA category",BUILTIN_PPC_FALSE,0,0,CmpInst::Pre…
202 PPC_AIX_FEATURE("cellbe","CPU has a CELL broadband engine",BUILTIN_PPC_FALSE,0,0,CmpInst::Predicate…
207 …,"CPU has a SPE single precision floating point unit",BUILTIN_PPC_FALSE,0,0,CmpInst::Predicate(),0)
208 …,"CPU has a SPE double precision floating point unit",BUILTIN_PPC_FALSE,0,0,CmpInst::Predicate(),0)
209 PPC_AIX_FEATURE("fpu","CPU has a floating point unit",BUILTIN_PPC_TRUE,0,0,CmpInst::Predicate(),0)
211 PPC_AIX_FEATURE("isel","CPU supports the integer select instruction",BUILTIN_PPC_TRUE,0,0,CmpInst::…
213 PPC_AIX_FEATURE("mmu","CPU has a memory management unit",BUILTIN_PPC_TRUE,0,0,CmpInst::Predicate(),…
214 PPC_AIX_FEATURE("pa6t","CPU supports the PA Semi 6T CORE ISA",BUILTIN_PPC_FALSE,0,0,CmpInst::Predic…
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp2444 CmpInst::Predicate FastISel::optimizeCmpPredicate(const CmpInst *CI) const { in optimizeCmpPredicate()
2446 CmpInst::Predicate Predicate = CI->getPredicate(); in optimizeCmpPredicate()
2452 case CmpInst::FCMP_FALSE: Predicate = CmpInst::FCMP_FALSE; break; in optimizeCmpPredicate()
2453 case CmpInst::FCMP_OEQ: Predicate = CmpInst::FCMP_ORD; break; in optimizeCmpPredicate()
2454 case CmpInst::FCMP_OGT: Predicate = CmpInst::FCMP_FALSE; break; in optimizeCmpPredicate()
2455 case CmpInst::FCMP_OGE: Predicate = CmpInst::FCMP_ORD; break; in optimizeCmpPredicate()
2456 case CmpInst::FCMP_OLT: Predicate = CmpInst::FCMP_FALSE; break; in optimizeCmpPredicate()
2457 case CmpInst::FCMP_OLE: Predicate = CmpInst::FCMP_ORD; break; in optimizeCmpPredicate()
2458 case CmpInst::FCMP_ONE: Predicate = CmpInst::FCMP_FALSE; break; in optimizeCmpPredicate()
2459 case CmpInst::FCMP_ORD: Predicate = CmpInst::FCMP_ORD; break; in optimizeCmpPredicate()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h103 static ConstantRange makeAllowedICmpRegion(CmpInst::Predicate Pred,
114 static ConstantRange makeSatisfyingICmpRegion(CmpInst::Predicate Pred,
124 static ConstantRange makeExactICmpRegion(CmpInst::Predicate Pred,
129 bool icmp(CmpInst::Predicate Pred, const ConstantRange &Other) const;
148 static CmpInst::Predicate
149 getEquivalentPredWithFlippedSignedness(CmpInst::Predicate Pred,
195 bool getEquivalentICmp(CmpInst::Predicate &Pred, APInt &RHS) const;
200 getEquivalentICmp(CmpInst::Predicate &Pred, APInt &RHS, APInt &Offset) const;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp97 ConstantRange ConstantRange::makeAllowedICmpRegion(CmpInst::Predicate Pred, in makeAllowedICmpRegion()
106 case CmpInst::ICMP_EQ: in makeAllowedICmpRegion()
108 case CmpInst::ICMP_NE: in makeAllowedICmpRegion()
112 case CmpInst::ICMP_ULT: { in makeAllowedICmpRegion()
118 case CmpInst::ICMP_SLT: { in makeAllowedICmpRegion()
124 case CmpInst::ICMP_ULE: in makeAllowedICmpRegion()
126 case CmpInst::ICMP_SLE: in makeAllowedICmpRegion()
128 case CmpInst::ICMP_UGT: { in makeAllowedICmpRegion()
134 case CmpInst::ICMP_SGT: { in makeAllowedICmpRegion()
140 case CmpInst::ICMP_UGE: in makeAllowedICmpRegion()
[all …]
H A DInstructions.cpp3431 CmpInst::CmpInst(Type *ty, OtherOps op, Predicate predicate, Value *LHS, in CmpInst() function in CmpInst
3434 : Instruction(ty, op, OperandTraits<CmpInst>::op_begin(this), in CmpInst()
3435 OperandTraits<CmpInst>::operands(this), InsertBefore) { in CmpInst()
3444 CmpInst *CmpInst::Create(OtherOps Op, Predicate predicate, Value *S1, Value *S2, in Create()
3448 return new ICmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3451 return new ICmpInst(CmpInst::Predicate(predicate), in Create()
3456 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3459 return new FCmpInst(CmpInst::Predicate(predicate), in Create()
3463 CmpInst *CmpInst::CreateWithCopiedFlags(OtherOps Op, Predicate Pred, Value *S1, in CreateWithCopiedFlags()
3468 CmpInst *Inst = Create(Op, Pred, S1, S2, Name, InsertBefore); in CreateWithCopiedFlags()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h157 static bool isCanonicalPredicate(CmpInst::Predicate Pred) { in isCanonicalPredicate()
159 case CmpInst::ICMP_NE: in isCanonicalPredicate()
160 case CmpInst::ICMP_ULE: in isCanonicalPredicate()
161 case CmpInst::ICMP_SLE: in isCanonicalPredicate()
162 case CmpInst::ICMP_UGE: in isCanonicalPredicate()
163 case CmpInst::ICMP_SGE: in isCanonicalPredicate()
165 case CmpInst::FCMP_ONE: in isCanonicalPredicate()
166 case CmpInst::FCMP_OLE: in isCanonicalPredicate()
167 case CmpInst::FCMP_OGE: in isCanonicalPredicate()
185 CmpInst::Predicate,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp112 LoadInst *LI, GetElementPtrInst *GEP, GlobalVariable *GV, CmpInst &ICI, in foldCmpLoadFromIndexedGlobal()
745 if (IndicesTheSame && CmpInst::makeCmpResultType(BaseType) == I.getType()) in foldGEPICmp()
821 if (GEPsInBounds || CmpInst::isEquality(Cond)) { in foldGEPICmp()
967 auto getICmp = [&I](CmpInst::Predicate Pred, Value *LHS, Value *RHS) { in foldICmpShrConstConst()
969 Pred = CmpInst::getInversePredicate(Pred); in foldICmpShrConstConst()
1026 auto getICmp = [&I](CmpInst::Predicate Pred, Value *LHS, Value *RHS) { in foldICmpShlConstConst()
1028 Pred = CmpInst::getInversePredicate(Pred); in foldICmpShlConstConst()
1203 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithZero()
1296 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithConstant()
1342 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithDominatingICmp()
[all …]

123456789