Home
last modified time | relevance | path

Searched refs:Cmp2 (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp65 int64_t Cmp2 = 0; member
133 const auto Cmp2 = MatchInfo.Cmp2; in matchClampI64ToI16() local
134 const auto Diff = std::abs(Cmp2 - Cmp1); in matchClampI64ToI16()
145 return ((Cmp2 >= Cmp1 && Cmp1 >= Min && Cmp2 <= Max) || in matchClampI64ToI16()
146 (Cmp1 >= Cmp2 && Cmp1 <= Max && Cmp2 >= Min)); in matchClampI64ToI16()
153 m_GSMax(m_Reg(MatchInfo.Origin), m_ICst(MatchInfo.Cmp2)))) { in matchClampI64ToI16()
161 m_GSMin(m_Reg(MatchInfo.Origin), m_ICst(MatchInfo.Cmp2)))) { in matchClampI64ToI16()
193 auto MinBoundary = std::min(MatchInfo.Cmp1, MatchInfo.Cmp2); in applyClampI64ToI16()
194 auto MaxBoundary = std::max(MatchInfo.Cmp1, MatchInfo.Cmp2); in applyClampI64ToI16()
H A DAMDGPUAsanInstrumentation.cpp173 auto *Cmp2 = createSlowPathCmp(M, IRB, IntptrTy, AddrLong, ShadowValue, in instrumentAddressImpl() local
175 Cmp = IRB.CreateAnd(Cmp, Cmp2); in instrumentAddressImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp216 if (const CmpInst *Cmp2 = dyn_cast<CmpInst>(&V2)) { in isInverse() local
217 if (Cmp1->getPredicate() == Cmp2->getInversePredicate() && in isInverse()
218 Cmp1->getOperand(0) == Cmp2->getOperand(0) && in isInverse()
219 Cmp1->getOperand(1) == Cmp2->getOperand(1)) in isInverse()
223 CmpInst::getSwappedPredicate(Cmp2->getInversePredicate()) && in isInverse()
224 Cmp1->getOperand(0) == Cmp2->getOperand(1) && in isInverse()
225 Cmp1->getOperand(1) == Cmp2->getOperand(0)) in isInverse()
H A DLibCallsShrinkWrap.cpp84 float Val, Value *Arg2, CmpInst::Predicate Cmp2, in createOrCond() argument
87 auto Cond2 = createCond(BBBuilder, Arg2, Cmp2, Val2); in createOrCond()
94 CmpInst::Predicate Cmp2, float Val2) { in createOrCond() argument
96 return createOrCond(CI, Arg, Cmp, Val, Arg, Cmp2, Val2); in createOrCond()
H A DSimplifyCFG.cpp1628 if (auto *Cmp2 = dyn_cast<CmpInst>(I2)) in areIdenticalUpToCommutativity() local
1629 return Cmp1->getPredicate() == Cmp2->getSwappedPredicate() && in areIdenticalUpToCommutativity()
1630 Cmp1->getOperand(0) == Cmp2->getOperand(1) && in areIdenticalUpToCommutativity()
1631 Cmp1->getOperand(1) == Cmp2->getOperand(0); in areIdenticalUpToCommutativity()
6286 Value *Cmp2 = Builder.CreateICmpEQ(Condition, CaseValues[1], in foldSwitchToSelect() local
6288 Value *Cmp = Builder.CreateOr(Cmp1, Cmp2, "switch.selectcmp"); in foldSwitchToSelect()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRShiftExpand.cpp137 Value *Cmp2 = Builder.CreateICmpEQ(ShiftAmountSub, Int8Zero); in expand() local
138 Builder.CreateCondBr(Cmp2, EndBB, LoopBB); in expand()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp93 Value *Cmp2 = SizeRange.getUnsignedMin().uge(OffsetRange.getUnsignedMax()) in getBoundsCheckCond() local
101 Value *Or = IRB.CreateOr(Cmp2, Cmp3); in getBoundsCheckCond()
H A DAddressSanitizer.cpp1955 auto *Cmp2 = createSlowPathCmp(IRB, AddrLong, ShadowValue, TypeStoreSize); in instrumentAddress() local
1956 Cmp = IRB.CreateAnd(Cmp, Cmp2); in instrumentAddress()
1967 Value *Cmp2 = createSlowPathCmp(IRB, AddrLong, ShadowValue, TypeStoreSize); in instrumentAddress() local
1969 CrashTerm = SplitBlockAndInsertIfThen(Cmp2, CheckTerm, false); in instrumentAddress()
1974 BranchInst *NewTerm = BranchInst::Create(CrashBlock, NextBB, Cmp2); in instrumentAddress()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp1319 auto Cmp2 = MIB.buildInstr(getFCmpOpcode(CmpInst::FCMP_OLT, Size), in selectFPCompare() local
1321 if (!Cmp2.constrainAllUses(TII, TRI, RBI)) in selectFPCompare()
1326 MIB.buildInstr(RISCV::OR, {TmpReg}, {Cmp1.getReg(0), Cmp2.getReg(0)}); in selectFPCompare()
1337 auto Cmp2 = MIB.buildInstr(getFCmpOpcode(CmpInst::FCMP_OEQ, Size), in selectFPCompare() local
1339 if (!Cmp2.constrainAllUses(TII, TRI, RBI)) in selectFPCompare()
1344 MIB.buildInstr(RISCV::AND, {TmpReg}, {Cmp1.getReg(0), Cmp2.getReg(0)}); in selectFPCompare()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7333 GICmp *Cmp2 = getOpcodeDef<GICmp>(RHS, MRI); in tryFoldAndOrOrICmpsUsingRanges() local
7334 if (!Cmp2) in tryFoldAndOrOrICmpsUsingRanges()
7339 !MRI.hasOneNonDBGUse(Cmp2->getReg(0))) in tryFoldAndOrOrICmpsUsingRanges()
7351 getIConstantVRegValWithLookThrough(Cmp2->getRHSReg(), MRI); in tryFoldAndOrOrICmpsUsingRanges()
7357 Register R2 = Cmp2->getLHSReg(); in tryFoldAndOrOrICmpsUsingRanges()
7359 CmpInst::Predicate Pred2 = Cmp2->getCond(); in tryFoldAndOrOrICmpsUsingRanges()
7491 GFCmp *Cmp2 = getOpcodeDef<GFCmp>(RHS, MRI); in tryFoldLogicOfFCmps() local
7492 if (!Cmp2) in tryFoldLogicOfFCmps()
7504 !MRI.hasOneNonDBGUse(Cmp2->getReg(0)) || in tryFoldLogicOfFCmps()
7505 MRI.getType(Cmp1->getLHSReg()) != MRI.getType(Cmp2->getLHSReg())) in tryFoldLogicOfFCmps()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp1032 auto Cmp2 = getVectorFCMP(CC2, LHS, RHS, NoNans, MRI); in applyLowerVectorFCMP() local
1033 auto Cmp2Dst = Cmp2(MIB); in applyLowerVectorFCMP()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp752 Value *Cmp2 = IRB.CreateICmpEQ(ThenLabel, IRB.getInt32(0)); in wrapTestSetjmp() local
753 IRB.CreateCondBr(Cmp2, CallEmLongjmpBB, EndBB2); in wrapTestSetjmp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp3581 Value *Cmp1, *Cmp2, *Cmp3, *Cmp4; in foldOrOfInversions() local
3582 if (!match(I.getOperand(0), m_And(m_Value(Cmp1), m_Value(Cmp2))) || in foldOrOfInversions()
3587 if (isKnownInversion(Cmp1, Cmp3) && isKnownInversion(Cmp2, Cmp4)) in foldOrOfInversions()
3589 if (isKnownInversion(Cmp1, Cmp4) && isKnownInversion(Cmp2, Cmp3)) in foldOrOfInversions()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp11207 SDValue Cmp2; in emitFloatCompareMask() local
11209 Cmp2 = emitVectorComparison(LHS, RHS, CC2, NoNaNs, VT, DL, DAG); in emitFloatCompareMask()
11210 if (!Cmp2) in emitFloatCompareMask()
11213 if (!Cmp2 && !ShouldInvert) in emitFloatCompareMask()
11220 if (Cmp2) { in emitFloatCompareMask()
11221 Cmp2 = DAG.getNode(ISD::INSERT_VECTOR_ELT, DL, VecVT, DAG.getUNDEF(VecVT), in emitFloatCompareMask()
11222 Cmp2, Zero); in emitFloatCompareMask()
11223 Cmp = DAG.getNode(ISD::OR, DL, VecVT, Cmp, Cmp2); in emitFloatCompareMask()
15918 SDValue Cmp2 = emitVectorComparison(LHS, RHS, CC2, NoNaNs, CmpVT, DL, DAG); in LowerVSETCC() local
15919 if (!Cmp2.getNode()) in LowerVSETCC()
[all …]