Home
last modified time | relevance | path

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

/freebsd/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/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandFp.cpp129 Value *NegOne = Builder.CreateSExt( in expandFPToI() local
189 Value *PosInf = Builder.CreateXor(NegOne, NegInf); in expandFPToI()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp780 const SCEV *NegOne = SE.getNegativeSCEV(One); in computeSafeIterationSpace() local
781 return SE.getAddExpr(SE.getSMaxExpr(SE.getSMinExpr(X, Zero), NegOne), One); in computeSafeIterationSpace()
H A DReassociate.cpp295 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local
299 CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg->getIterator(), Neg); in LowerNegateToMultiply()
H A DLoopStrengthReduce.cpp582 const SCEV *NegOne = SE.getSCEV(ConstantInt::getAllOnesValue( in DoInitialMatch() local
585 Good.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch()
587 Bad.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DDXContainerYAML.cpp394 int32_t NegOne = -1; in mapping() local
395 IO.mapRequired("NumDescriptors", NegOne); in mapping()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp666 Constant *NegOne = ConstantInt::getAllOnesValue(Y->getType()); in foldPowiReassoc() local
667 Instruction *NewPow = createPowiExpr(I, *this, Op1, Y, NegOne); in foldPowiReassoc()
679 Constant *NegOne = ConstantInt::getAllOnesValue(Y->getType()); in foldPowiReassoc() local
680 auto *NewPow = createPowiExpr(I, *this, X, Y, NegOne); in foldPowiReassoc()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h1990 auto NegOne = buildConstant(Dst.getLLTTy(*getMRI()), -1); in buildNot() local
1991 return buildInstr(TargetOpcode::G_XOR, {Dst}, {Src0, NegOne}); in buildNot()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp2355 SDValue NegOne = DAG.getAllOnesConstant(DL, VT); in LowerSDIVREM() local
2379 SDValue LHSign = DAG.getSelectCC(DL, LHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM()
2380 SDValue RHSign = DAG.getSelectCC(DL, RHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM()
2593 const SDValue NegOne = DAG.getConstantFP(-1.0, SL, MVT::f64); in LowerFFLOOR() local
2602 SDValue Add = DAG.getNode(ISD::SELECT, SL, MVT::f64, And, NegOne, Zero); in LowerFFLOOR()
H A DAMDGPULegalizerInfo.cpp5305 auto NegOne = B.buildConstant(I32, -1); in legalizeFSQRTF32() local
5306 auto SqrtSNextDown = B.buildAdd(I32, SqrtS, NegOne); in legalizeFSQRTF32()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp2222 APInt NegOne = APInt::getAllOnes(CarryVT.getScalarSizeInBits()); in LowerSETCCCARRY() local
2224 DAG.getConstant(NegOne, DL, CarryVT)); in LowerSETCCCARRY()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp3984 llvm::Value *NegOne = llvm::Constant::getAllOnesValue(Ty); in EmitUndefinedBehaviorIntegerDivAndRemCheck() local
3987 llvm::Value *RHSCmp = Builder.CreateICmpNE(Ops.RHS, NegOne); in EmitUndefinedBehaviorIntegerDivAndRemCheck()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp8950 auto NegOne = MIRBuilder.buildConstant(Ty, -1); in lowerAddSubSatToMinMax() local
8951 Lo = MIRBuilder.buildSub(Ty, MIRBuilder.buildSMax(Ty, LHS, NegOne), in lowerAddSubSatToMinMax()
8953 Hi = MIRBuilder.buildSub(Ty, MIRBuilder.buildSMin(Ty, LHS, NegOne), in lowerAddSubSatToMinMax()
H A DCombinerHelper.cpp3730 auto NegOne = Builder.buildConstant(Ty, -1); in applySimplifyURemByPow2() local
3731 auto Add = Builder.buildAdd(Ty, Pow2Src1, NegOne); in applySimplifyURemByPow2()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp4516 SDValue NegOne = DAG.getAllOnesConstant(dl, CTVT); in simplifySetCCWithCTPOP() local
4519 SDValue Add = DAG.getNode(ISD::ADD, dl, CTVT, Result, NegOne); in simplifySetCCWithCTPOP()
4533 SDValue NegOne = DAG.getAllOnesConstant(dl, CTVT); in simplifySetCCWithCTPOP() local
4535 SDValue Add = DAG.getNode(ISD::ADD, dl, CTVT, CTOp, NegOne); in simplifySetCCWithCTPOP()
H A DDAGCombiner.cpp5343 SDValue NegOne = DAG.getAllOnesConstant(DL, VT); in visitREM() local
5344 SDValue Add = DAG.getNode(ISD::ADD, DL, VT, N1, NegOne); in visitREM()
5354 SDValue NegOne = DAG.getAllOnesConstant(DL, VT); in visitREM() local
5355 SDValue Add = DAG.getNode(ISD::ADD, DL, VT, N1, NegOne); in visitREM()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp25242 SDValue NegOne = DAG.getAllOnesConstant(dl, WideVT); in LowerSIGN_EXTEND_Mask() local
25244 V = DAG.getSelect(dl, WideVT, In, NegOne, Zero); in LowerSIGN_EXTEND_Mask()