Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp153 ConstantInt *NegOne = ConstantInt::getSigned(DivTy, -1); in generateUnsignedDivisionCode() local
263 Value *Tmp4 = Builder.CreateAdd(Divisor, NegOne); in generateUnsignedDivisionCode()
299 Value *SR_2 = Builder.CreateAdd(SR_3, NegOne); in generateUnsignedDivisionCode()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeFpConvert.cpp126 Value *NegOne = Builder.CreateSExt( in expandFPToI() local
185 Value *PosInf = Builder.CreateXor(NegOne, NegInf); in expandFPToI()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp764 const SCEV *NegOne = SE.getNegativeSCEV(One); in computeSafeIterationSpace() local
765 return SE.getAddExpr(SE.getSMaxExpr(SE.getSMinExpr(X, Zero), NegOne), One); in computeSafeIterationSpace()
H A DReassociate.cpp290 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local
293 BinaryOperator *Res = CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
H A DLoopStrengthReduce.cpp459 const SCEV *NegOne = SE.getSCEV(ConstantInt::getAllOnesValue( in DoInitialMatch() local
462 Good.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch()
464 Bad.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h1711 auto NegOne = buildConstant(Dst.getLLTTy(*getMRI()), -1); in buildNot() local
1712 return buildInstr(TargetOpcode::G_XOR, {Dst}, {Src0, NegOne}); in buildNot()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1835 Constant *NegOne = ConstantInt::getAllOnesValue(Y->getType()); in visitFDiv() local
1836 Value *Y1 = Builder.CreateAdd(Y, NegOne); in visitFDiv()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp2257 SDValue NegOne = DAG.getConstant(-1, DL, VT); in LowerSDIVREM() local
2281 SDValue LHSign = DAG.getSelectCC(DL, LHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM()
2282 SDValue RHSign = DAG.getSelectCC(DL, RHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM()
2495 const SDValue NegOne = DAG.getConstantFP(-1.0, SL, MVT::f64); in LowerFFLOOR() local
2504 SDValue Add = DAG.getNode(ISD::SELECT, SL, MVT::f64, And, NegOne, Zero); in LowerFFLOOR()
H A DAMDGPULegalizerInfo.cpp5108 auto NegOne = B.buildConstant(I32, -1); in legalizeFSQRTF32() local
5109 auto SqrtSNextDown = B.buildAdd(I32, SqrtS, NegOne); in legalizeFSQRTF32()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp2219 APInt NegOne = APInt::getAllOnes(CarryVT.getScalarSizeInBits()); in LowerSETCCCARRY() local
2221 DAG.getConstant(NegOne, DL, CarryVT)); in LowerSETCCCARRY()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp7539 auto NegOne = MIRBuilder.buildConstant(Ty, -1); in lowerAddSubSatToMinMax() local
7540 Lo = MIRBuilder.buildSub(Ty, MIRBuilder.buildSMax(Ty, LHS, NegOne), in lowerAddSubSatToMinMax()
7542 Hi = MIRBuilder.buildSub(Ty, MIRBuilder.buildSMin(Ty, LHS, NegOne), in lowerAddSubSatToMinMax()
H A DCombinerHelper.cpp3438 auto NegOne = Builder.buildConstant(Ty, -1); in applySimplifyURemByPow2() local
3439 auto Add = Builder.buildAdd(Ty, Pow2Src1, NegOne); in applySimplifyURemByPow2()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp3426 llvm::Value *NegOne = llvm::Constant::getAllOnesValue(Ty); in EmitUndefinedBehaviorIntegerDivAndRemCheck() local
3429 llvm::Value *RHSCmp = Builder.CreateICmpNE(Ops.RHS, NegOne); in EmitUndefinedBehaviorIntegerDivAndRemCheck()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp4249 SDValue NegOne = DAG.getAllOnesConstant(dl, CTVT); in simplifySetCCWithCTPOP() local
4252 SDValue Add = DAG.getNode(ISD::ADD, dl, CTVT, Result, NegOne); in simplifySetCCWithCTPOP()
4266 SDValue NegOne = DAG.getAllOnesConstant(dl, CTVT); in simplifySetCCWithCTPOP() local
4268 SDValue Add = DAG.getNode(ISD::ADD, dl, CTVT, CTOp, NegOne); in simplifySetCCWithCTPOP()
H A DDAGCombiner.cpp5030 SDValue NegOne = DAG.getAllOnesConstant(DL, VT); in visitREM() local
5031 SDValue Add = DAG.getNode(ISD::ADD, DL, VT, N1, NegOne); in visitREM()
5041 SDValue NegOne = DAG.getAllOnesConstant(DL, VT); in visitREM() local
5042 SDValue Add = DAG.getNode(ISD::ADD, DL, VT, N1, NegOne); in visitREM()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp24179 SDValue NegOne = DAG.getConstant(-1, dl, WideVT); in LowerSIGN_EXTEND_Mask() local
24181 V = DAG.getSelect(dl, WideVT, In, NegOne, Zero); in LowerSIGN_EXTEND_Mask()