Home
last modified time | relevance | path

Searched refs:ComputeNumSignBits (Results 1 – 25 of 30) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DValueTracking.cpp368 static unsigned ComputeNumSignBits(const Value *V, const APInt &DemandedElts,
371 static unsigned ComputeNumSignBits(const Value *V, unsigned Depth, in ComputeNumSignBits() function
381 return ComputeNumSignBits(V, DemandedElts, Depth, Q); in ComputeNumSignBits()
384 unsigned llvm::ComputeNumSignBits(const Value *V, const DataLayout &DL, in ComputeNumSignBits() function in llvm
388 return ::ComputeNumSignBits( in ComputeNumSignBits()
2834 static unsigned ComputeNumSignBits(const Value *V, const APInt &DemandedElts, in ComputeNumSignBits() function
2894 return ComputeNumSignBits(U->getOperand(0), Depth + 1, Q) + Tmp; in ComputeNumSignBitsImpl()
2906 unsigned NumBits = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2915 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2946 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
[all …]
H A DIVDescriptors.cpp136 auto NumSignBits = ComputeNumSignBits(Exit, DL, 0, AC, nullptr, DT); in computeRecurrenceType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp117 ComputeNumSignBits(Op, *DL, 0, nullptr, Mul) > 16) in tryMAddReplacement()
126 ComputeNumSignBits(Op, *DL, 0, nullptr, Mul) > 16) in tryMAddReplacement()
H A DX86ISelLowering.cpp7767 DAG.ComputeNumSignBits(N0, EltsLHS, Depth + 1) <= NumBitsPerElt) || in getFauxShuffleMask()
7769 DAG.ComputeNumSignBits(N1, EltsRHS, Depth + 1) <= NumBitsPerElt)) in getFauxShuffleMask()
11826 if ((N1.isUndef() || DAG.ComputeNumSignBits(VV1) > NumPackedBits) && in matchShuffleWithPACK()
11827 (N2.isUndef() || DAG.ComputeNumSignBits(VV2) > NumPackedBits)) { in matchShuffleWithPACK()
18583 if (CondEltSize != DAG.ComputeNumSignBits(Cond)) in LowerVSELECT()
21007 if (DAG.ComputeNumSignBits(In) < InVT.getScalarSizeInBits()) { in LowerTruncateVecI1()
21062 if (DAG.ComputeNumSignBits(In) < InVT.getScalarSizeInBits()) { in LowerTruncateVecI1()
21141 if ((InNumEltBits - NumPackedSignBits) < DAG.ComputeNumSignBits(In)) in LowerTRUNCATE()
22411 In.getScalarValueSizeInBits() - DAG.ComputeNumSignBits(In) + 1; in EmitCmp()
22417 In.getScalarValueSizeInBits() - DAG.ComputeNumSignBits(In) + 1; in EmitCmp()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h477 unsigned ComputeNumSignBits(const Value *Op, unsigned Depth = 0,
479 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3661 unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const { in ComputeNumSignBits() function in SelectionDAG
3671 return ComputeNumSignBits(Op, DemandedElts, Depth); in ComputeNumSignBits()
3674 unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts, in ComputeNumSignBits() function in SelectionDAG
3711 Tmp2 = ComputeNumSignBits(SrcOp, Depth + 1); in ComputeNumSignBits()
3745 Tmp = ComputeNumSignBits(Op.getOperand(0), DemandedLHS, Depth + 1); in ComputeNumSignBits()
3747 Tmp2 = ComputeNumSignBits(Op.getOperand(1), DemandedRHS, Depth + 1); in ComputeNumSignBits()
3768 return ComputeNumSignBits(N0, DemandedElts, Depth + 1); in ComputeNumSignBits()
3783 Tmp = ComputeNumSignBits(N0, SrcDemandedElts, Depth + 1); in ComputeNumSignBits()
3805 return ComputeNumSignBits(Op.getOperand(0), DemandedElts, Depth+1) + Tmp; in ComputeNumSignBits()
3810 Tmp2 = ComputeNumSignBits(Op.getOperand(0), DemandedElts, Depth+1); in ComputeNumSignBits()
[all …]
H A DTargetLowering.cpp764 DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
800 unsigned NumSignBits = DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
1542 TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyDemandedBits()
1609 if (TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1) >= in SimplifyDemandedBits()
1731 if (BitWidth == TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1)) in SimplifyDemandedBits()
1808 TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyDemandedBits()
6325 DAG.ComputeNumSignBits(LHS) > InnerBitSize && in expandMUL_LOHI()
6326 DAG.ComputeNumSignBits(RHS) > InnerBitSize) { in expandMUL_LOHI()
8233 unsigned LHSLead = Signed ? DAG.ComputeNumSignBits(LHS) - 1 in expandFixedPointDiv()
H A DDAGCombiner.cpp2626 if (DAG.ComputeNumSignBits(N1.getOperand(0)) != VT.getScalarSizeInBits()) in foldAddSubMasked1()
4718 unsigned SignBits = DAG.ComputeNumSignBits(N0); in visitMULO()
4720 SignBits += DAG.ComputeNumSignBits(N1); in visitMULO()
8523 if (DAG.ComputeNumSignBits(N0) == OpSizeInBits) in visitSRA()
8555 if (DAG.ComputeNumSignBits(N0.getOperand(0)) > N1C->getZExtValue()) in visitSRA()
10806 unsigned NumSignBits = DAG.ComputeNumSignBits(Op); in visitSIGN_EXTEND()
11821 if (DAG.ComputeNumSignBits(N0) >= (VTBits - ExtVTBits + 1)) in visitSIGN_EXTEND_INREG()
11838 (N00Bits - DAG.ComputeNumSignBits(N00)) < ExtVTBits) && in visitSIGN_EXTEND_INREG()
11857 (N00Bits - DAG.ComputeNumSignBits(N00, DemandedSrcElts)) < in visitSIGN_EXTEND_INREG()
11895 unsigned InSignBits = DAG.ComputeNumSignBits(N0.getOperand(0)); in visitSIGN_EXTEND_INREG()
[all …]
H A DSelectionDAGISel.cpp752 unsigned NumSignBits = CurDAG->ComputeNumSignBits(Src); in ComputeLiveOutVRegInfo()
H A DLegalizeIntegerTypes.cpp1605 OpL.getScalarValueSizeInBits() - DAG.ComputeNumSignBits(OpL) + 1; in PromoteSetCCOperands()
1607 OpR.getScalarValueSizeInBits() - DAG.ComputeNumSignBits(OpR) + 1; in PromoteSetCCOperands()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp452 return ScalarSize - ComputeNumSignBits(Op, *DL, 0, AC); in numBitsSigned()
840 unsigned LHSSignBits = ComputeNumSignBits(Num, DL, 0, AC, &I); in getDivNumBits()
844 unsigned RHSSignBits = ComputeNumSignBits(Den, DL, 0, AC, &I); in getDivNumBits()
H A DAMDGPUISelLowering.cpp58 return VT.getSizeInBits() - DAG.ComputeNumSignBits(Op); in numBitsSigned()
1665 unsigned LHSSignBits = DAG.ComputeNumSignBits(LHS); in LowerDIVREM24()
1669 unsigned RHSSignBits = DAG.ComputeNumSignBits(RHS); in LowerDIVREM24()
2054 DAG.ComputeNumSignBits(LHS) > 32 && in LowerSDIVREM()
2055 DAG.ComputeNumSignBits(RHS) > 32) { in LowerSDIVREM()
4021 unsigned OpSignBits = DAG.ComputeNumSignBits(BitsFrom); in PerformDAGCombine()
4554 unsigned Op0SignBits = DAG.ComputeNumSignBits(Op.getOperand(0), Depth + 1); in ComputeNumSignBitsForTargetNode()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h490 unsigned ComputeNumSignBits(const Value *Op, unsigned Depth = 0,
492 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT);
H A DInstCombineCasts.cpp438 ShiftedBits < IC.ComputeNumSignBits(I->getOperand(0), 0, CxtI)) in canEvaluateTruncated()
1489 if (ComputeNumSignBits(Res, 0, &CI) > DestBitSize - SrcBitSize) in visitSExt()
H A DInstCombineSimplifyDemanded.cpp649 unsigned SignBits = ComputeNumSignBits(I->getOperand(0), Depth + 1, CxtI); in SimplifyDemandedUseBits()
H A DInstCombineShifts.cpp995 if (!I.hasNoSignedWrap() && ComputeNumSignBits(Op0, 0, &I) > ShAmt) { in visitShl()
H A DInstCombineCompares.cpp1251 if (IC.ComputeNumSignBits(A, 0, &I) < NeededSignBits || in processUGT_ADDCST_ADD()
1252 IC.ComputeNumSignBits(B, 0, &I) < NeededSignBits) in processUGT_ADDCST_ADD()
H A DInstCombineAndOrXor.cpp2294 if (ComputeNumSignBits(A) != Ty->getScalarSizeInBits()) in getSelectCondition()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DValueTracking.h200 unsigned ComputeNumSignBits(const Value *Op, const DataLayout &DL,
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h1757 unsigned ComputeNumSignBits(SDValue Op, unsigned Depth = 0) const;
1767 unsigned ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp656 unsigned LHSSB = DAG.ComputeNumSignBits(Mul.getOperand(0)); in TryExpandADDWithMul()
657 unsigned RHSSB = DAG.ComputeNumSignBits(Mul.getOperand(1)); in TryExpandADDWithMul()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp3584 else if (DAG.ComputeNumSignBits(Op1) > 32) in lowerSDIVREM()
6946 unsigned LHS = DAG.ComputeNumSignBits(Op.getOperand(OpNo), Src0DemE, Depth + 1); in computeNumSignBitsBinOp()
6949 unsigned RHS = DAG.ComputeNumSignBits(Op.getOperand(OpNo + 1), Src1DemE, Depth + 1); in computeNumSignBitsBinOp()
6999 unsigned Tmp = DAG.ComputeNumSignBits(PackedOp, SrcDemE, Depth + 1); in ComputeNumSignBitsForTargetNode()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp4696 bool LHSIsS = DAG.ComputeNumSignBits(LHS) > XLen; in ReplaceNodeResults()
4697 bool RHSIsS = DAG.ComputeNumSignBits(RHS) > XLen; in ReplaceNodeResults()
6175 unsigned Tmp = DAG.ComputeNumSignBits(Op.getOperand(0), Depth + 1); in ComputeNumSignBitsForTargetNode()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp5019 unsigned ExtraSignBits = ComputeNumSignBits(Cond, DL, 0, AC, SI) - 1; in eliminateDeadSwitchCases()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp13022 if (DAG.ComputeNumSignBits(N->getOperand(0)) != OpBits || in DAGCombineTruncBoolExt()
13023 DAG.ComputeNumSignBits(N->getOperand(1)) != OpBits) in DAGCombineTruncBoolExt()
13421 DAG.ComputeNumSignBits(Inputs[i].getOperand(0)) < in DAGCombineExtBoolTrunc()

12