Home
last modified time | relevance | path

Searched refs:NewWidth (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp767 unsigned NewWidth = std::max<unsigned>(PowerOf2Ceil(MinSignedBits), 8); in narrowSDivOrSRem() local
771 if (NewWidth >= OrigWidth) in narrowSDivOrSRem()
776 auto *TruncTy = Instr->getType()->getWithNewBitWidth(NewWidth); in narrowSDivOrSRem()
887 unsigned NewWidth = std::max<unsigned>(PowerOf2Ceil(MaxActiveBits), 8); in narrowUDivOrURem() local
891 if (NewWidth >= Instr->getType()->getScalarSizeInBits()) in narrowUDivOrURem()
896 auto *TruncTy = Instr->getType()->getWithNewBitWidth(NewWidth); in narrowUDivOrURem()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp940 unsigned NewWidth = Width; in instCombineIntrinsic() local
947 NewWidth = 16; in instCombineIntrinsic()
949 NewWidth = 32; in instCombineIntrinsic()
951 NewWidth = 64; in instCombineIntrinsic()
955 if (Width != NewWidth) { in instCombineIntrinsic()
956 IntegerType *CmpTy = IC.Builder.getIntNTy(NewWidth); in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h929 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concat() local
930 if (NewWidth <= APINT_BITS_PER_WORD) in concat()
931 return APInt(NewWidth, (U.VAL << NewLSB.getBitWidth()) | NewLSB.U.VAL); in concat()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp3802 unsigned NewWidth = SrcTy->getScalarSizeInBits(); in visitSwitchInst() local
3806 return IsZExt ? CaseVal.isIntN(NewWidth) in visitSwitchInst()
3807 : CaseVal.isSignedIntN(NewWidth); in visitSwitchInst()
3810 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth); in visitSwitchInst()
3840 unsigned NewWidth = Known.getBitWidth() - std::max(LeadingKnownZeros, LeadingKnownOnes); in visitSwitchInst() local
3846 if (NewWidth > 0 && NewWidth < Known.getBitWidth() && in visitSwitchInst()
3847 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst()
3848 IntegerType *Ty = IntegerType::get(SI.getContext(), NewWidth); in visitSwitchInst()
3853 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth); in visitSwitchInst()
H A DInstCombineCompares.cpp1082 unsigned NewWidth = CI2->getValue().countr_zero(); in processUGT_ADDCST_ADD() local
1083 if (NewWidth != 7 && NewWidth != 15 && NewWidth != 31) in processUGT_ADDCST_ADD()
1087 ++NewWidth; in processUGT_ADDCST_ADD()
1090 if (CI1->getBitWidth() == NewWidth || in processUGT_ADDCST_ADD()
1091 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in processUGT_ADDCST_ADD()
1097 if (IC.ComputeMaxSignificantBits(A, 0, &I) > NewWidth || in processUGT_ADDCST_ADD()
1098 IC.ComputeMaxSignificantBits(B, 0, &I) > NewWidth) in processUGT_ADDCST_ADD()
1116 if (!TI || TI->getType()->getPrimitiveSizeInBits() > NewWidth) in processUGT_ADDCST_ADD()
1123 Type *NewType = IntegerType::get(OrigAdd->getContext(), NewWidth); in processUGT_ADDCST_ADD()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp354 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concatSlowCase() local
355 APInt Result = NewLSB.zext(NewWidth); in concatSlowCase()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrInfo.cpp8904 unsigned NewWidth, unsigned *pNewMask = nullptr) { in AdjustBlendMask() argument
8905 assert(((OldWidth % NewWidth) == 0 || (NewWidth % OldWidth) == 0) && in AdjustBlendMask()
8909 if ((OldWidth % NewWidth) == 0) { in AdjustBlendMask()
8910 unsigned Scale = OldWidth / NewWidth; in AdjustBlendMask()
8912 for (unsigned i = 0; i != NewWidth; ++i) { in AdjustBlendMask()
8920 unsigned Scale = NewWidth / OldWidth; in AdjustBlendMask()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp10186 unsigned NewWidth = BitWidth + 1; in GetQuadraticEquation() local
10191 N = N.sext(NewWidth); in GetQuadraticEquation()
10192 M = M.sext(NewWidth); in GetQuadraticEquation()
10193 L = L.sext(NewWidth); in GetQuadraticEquation()
10208 APInt T = APInt(NewWidth, 2); in GetQuadraticEquation()
10210 << "x + " << C << ", coeff bw: " << NewWidth in GetQuadraticEquation()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLoweringHVX.cpp3293 auto repeatOp = [&](unsigned NewWidth, SDValue Arg) { in ExpandHvxResizeIntoSteps() argument
3294 MVT Ty = MVT::getVectorVT(MVT::getIntegerVT(NewWidth), NumElems); in ExpandHvxResizeIntoSteps()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp732 unsigned NewWidth = SrcVT.getStoreSizeInBits(); in LegalizeLoadOps() local
733 EVT NVT = EVT::getIntegerVT(*DAG.getContext(), NewWidth); in LegalizeLoadOps()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp20012 unsigned NewWidth; in ActOnEnumBody() local
20018 NewWidth = IntWidth; in ActOnEnumBody()
20030 NewWidth = BestWidth; in ActOnEnumBody()
20035 InitVal = InitVal.extOrTrunc(NewWidth); in ActOnEnumBody()