/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFCheckAndAdjustIR.cpp | 179 CallInst *MinMax; member 184 : ICmp(ICmp), Other(Other), Predicate(Predicate), MinMax(nullptr), in MinMaxSinkInfo() 225 Info.MinMax = Call; in sinkMinMaxInBB() 275 CallInst *MinMax = Info.MinMax; in sinkMinMaxInBB() local 276 Intrinsic::ID IID = MinMax->getCalledFunction()->getIntrinsicID(); in sinkMinMaxInBB() 284 Value *A = ZeroOrSignExtend(Builder, MinMax->getArgOperand(0), Info); in sinkMinMaxInBB() 285 Value *B = ZeroOrSignExtend(Builder, MinMax->getArgOperand(1), Info); in sinkMinMaxInBB() 307 Instruction *ToRemove[] = {ICmp, Info.ZExt, Info.SExt, MinMax}; in sinkMinMaxInBB()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstraintElimination.cpp | 1436 static bool checkAndReplaceMinMax(MinMaxIntrinsic *MinMax, ConstraintInfo &Info, in checkAndReplaceMinMax() argument 1438 auto ReplaceMinMaxWithOperand = [&](MinMaxIntrinsic *MinMax, bool UseLHS) { in checkAndReplaceMinMax() argument 1440 MinMax->replaceAllUsesWith(MinMax->getOperand(UseLHS ? 0 : 1)); in checkAndReplaceMinMax() 1441 ToRemove.push_back(MinMax); in checkAndReplaceMinMax() 1446 ICmpInst::getNonStrictPredicate(MinMax->getPredicate()); in checkAndReplaceMinMax() 1448 Pred, MinMax->getOperand(0), MinMax->getOperand(1), MinMax, Info)) in checkAndReplaceMinMax() 1449 return ReplaceMinMaxWithOperand(MinMax, *ImpliedCondition); in checkAndReplaceMinMax() 1451 Pred, MinMax->getOperand(1), MinMax->getOperand(0), MinMax, Info)) in checkAndReplaceMinMax() 1452 return ReplaceMinMaxWithOperand(MinMax, !*ImpliedCondition); in checkAndReplaceMinMax() 1778 } else if (auto *MinMax = dyn_cast<MinMaxIntrinsic>(Inst)) { in eliminateConstraints() local [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | AssumeBundleQueries.h | 71 struct MinMax { 80 using Assume2KnowledgeMap = DenseMap<AssumeInst *, MinMax>;
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LoopPeel.cpp | 450 auto ComputePeelCountMinMax = [&](MinMaxIntrinsic *MinMax) { in countToEliminateCompares() argument 451 if (!MinMax->getType()->isIntegerTy()) in countToEliminateCompares() 453 Value *LHS = MinMax->getLHS(), *RHS = MinMax->getRHS(); in countToEliminateCompares() 468 bool IsSigned = MinMax->isSigned(); in countToEliminateCompares() 494 if (MinMaxIntrinsic *MinMax = dyn_cast<MinMaxIntrinsic>(&I)) in countToEliminateCompares() local 495 ComputePeelCountMinMax(MinMax); in countToEliminateCompares()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-xray/ |
H A D | xray-account.cpp | 278 auto MinMax = std::minmax_element(Timings.begin(), Timings.end()); in getStats() local 279 R.Min = *MinMax.first; in getStats() 280 R.Max = *MinMax.second; in getStats()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 1453 auto *MinMax = dyn_cast<MinMaxIntrinsic>(Op); in takeLog2() local 1454 if (MinMax && MinMax->hasOneUse() && !MinMax->isSigned()) { in takeLog2() 1457 if (Value *LogX = takeLog2(Builder, MinMax->getLHS(), Depth, in takeLog2() 1459 if (Value *LogY = takeLog2(Builder, MinMax->getRHS(), Depth, in takeLog2() 1462 return Builder.CreateBinaryIntrinsic(MinMax->getIntrinsicID(), LogX, in takeLog2()
|
H A D | InstCombineAddSub.cpp | 2071 auto *MinMax = dyn_cast<MinMaxIntrinsic>(Op1); in foldSubOfMinMax() local 2072 if (!MinMax) in foldSubOfMinMax() 2077 Value *X = MinMax->getLHS(); in foldSubOfMinMax() 2078 Value *Y = MinMax->getRHS(); in foldSubOfMinMax() 2081 Intrinsic::ID InvID = getInverseMinMaxIntrinsic(MinMax->getIntrinsicID()); in foldSubOfMinMax() 2102 if (MinMax->isSigned() && match(Y, m_ZeroInt()) && in foldSubOfMinMax() 2104 Intrinsic::ID InvID = getInverseMinMaxIntrinsic(MinMax->getIntrinsicID()); in foldSubOfMinMax()
|
H A D | InstCombineCompares.cpp | 5375 MinMaxIntrinsic *MinMax, in foldICmpWithMinMax() argument 5378 Value *X = MinMax->getLHS(); in foldICmpWithMinMax() 5379 Value *Y = MinMax->getRHS(); in foldICmpWithMinMax() 5380 if (ICmpInst::isSigned(Pred) && !MinMax->isSigned()) in foldICmpWithMinMax() 5382 if (ICmpInst::isUnsigned(Pred) && MinMax->isSigned()) { in foldICmpWithMinMax() 5387 isKnownNonNegative(MinMax, SQ.getWithInstruction(&I))) { in foldICmpWithMinMax() 5428 ICmpInst::getNonStrictPredicate(MinMax->getPredicate()); in foldICmpWithMinMax() 5434 ICmpInst::Predicate NewPred = MinMax->getPredicate(); in foldICmpWithMinMax() 5472 bool IsSame = MinMax->getPredicate() == ICmpInst::getStrictPredicate(Pred); in foldICmpWithMinMax() 7199 if (auto *MinMax = dyn_cast<MinMaxIntrinsic>(Op0)) in foldICmpCommutative() local [all …]
|
H A D | InstCombineInternal.h | 670 Instruction *foldICmpWithMinMax(Instruction &I, MinMaxIntrinsic *MinMax,
|
H A D | InstCombineCalls.cpp | 1281 Function *MinMax = in reassociateMinMaxWithConstantInOperand() local 1285 return CallInst::Create(MinMax, {NewInner, C}); in reassociateMinMaxWithConstantInOperand() 1341 Function *MinMax = Intrinsic::getDeclaration(Mod, MinMaxID, II->getType()); in factorizeMinMaxTree() local 1342 return CallInst::Create(MinMax, { MinMaxOp, ThirdOp }); in factorizeMinMaxTree()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ScalarEvolution.cpp | 1857 auto *MinMax = cast<SCEVMinMaxExpr>(Op); in getZeroExtendExprImpl() local 1859 for (auto *Operand : MinMax->operands()) in getZeroExtendExprImpl() 1861 if (isa<SCEVUMinExpr>(MinMax)) in getZeroExtendExprImpl() 1867 if (auto *MinMax = dyn_cast<SCEVSequentialMinMaxExpr>(Op)) { in getZeroExtendExprImpl() local 1868 assert(isa<SCEVSequentialUMinExpr>(MinMax) && "Not supported!"); in getZeroExtendExprImpl() 1870 for (auto *Operand : MinMax->operands()) in getZeroExtendExprImpl() 2129 auto *MinMax = cast<SCEVMinMaxExpr>(Op); in getSignExtendExprImpl() local 2131 for (auto *Operand : MinMax->operands()) in getSignExtendExprImpl() 2133 if (isa<SCEVSMinExpr>(MinMax)) in getSignExtendExprImpl() 15151 if (auto *MinMax = dyn_cast<SCEVMinMaxExpr>(Expr)) { in collect() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | R600ISelLowering.cpp | 812 SDValue MinMax = combineFMinMaxLegacy(DL, VT, LHS, RHS, True, False, CC, DCI); in LowerSELECT_CC() local 813 if (MinMax) in LowerSELECT_CC() 814 return MinMax; in LowerSELECT_CC()
|
H A D | AMDGPUISelLowering.cpp | 4654 SDValue MinMax in performSelectCombine() local 4658 return MinMax; in performSelectCombine()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 8483 SDValue MinMax; in expandFMINIMUM_FMAXIMUM() local 8492 MinMax = DAG.getNode(CompOpcIeee, DL, VT, LHS, RHS, Flags); in expandFMINIMUM_FMAXIMUM() 8495 MinMax = DAG.getNode(CompOpc, DL, VT, LHS, RHS, Flags); in expandFMINIMUM_FMAXIMUM() 8503 MinMax = DAG.getSelect(DL, VT, Compare, LHS, RHS, Flags); in expandFMINIMUM_FMAXIMUM() 8511 MinMax = DAG.getSelect(DL, VT, DAG.getSetCC(DL, CCVT, LHS, RHS, ISD::SETUO), in expandFMINIMUM_FMAXIMUM() 8512 DAG.getConstantFP(*FPNaN, DL, VT), MinMax, Flags); in expandFMINIMUM_FMAXIMUM() 8518 SDValue IsZero = DAG.getSetCC(DL, CCVT, MinMax, in expandFMINIMUM_FMAXIMUM() 8524 MinMax, Flags); in expandFMINIMUM_FMAXIMUM() 8528 MinMax = DAG.getSelect(DL, VT, IsZero, RCmp, MinMax, Flags); in expandFMINIMUM_FMAXIMUM() 8531 return MinMax; in expandFMINIMUM_FMAXIMUM()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | OpenCLBuiltins.td | 1197 …defvar extension_fp16 = !cast<FunctionExtension>("FuncExtFloatAtomicsFp16" # addrspace # "MinMax"); 1198 …defvar extension_fp32 = !cast<FunctionExtension>("FuncExtFloatAtomicsFp32" # addrspace # "MinMax"); 1199 …defvar extension_fp64 = !cast<FunctionExtension>("FuncExtFloatAtomicsFp64" # addrspace # "MinMax");
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 28412 SDValue MinMax = DAG.getNode(MinMaxOp, DL, VT, NewX, NewY, Op->getFlags()); in LowerFMINIMUM_FMAXIMUM() local 28415 return MinMax; in LowerFMINIMUM_FMAXIMUM() 28418 return DAG.getSelect(DL, VT, IsNaN, NewX, MinMax); in LowerFMINIMUM_FMAXIMUM() 45281 if (SDValue MinMax = combineMinMaxReduction(N, DAG, Subtarget)) in combineExtractVectorElt() local 45282 return MinMax; in combineExtractVectorElt()
|