Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp703 unsigned NewWidth = std::max<unsigned>(PowerOf2Ceil(MinSignedBits), 8); in narrowSDivOrSRem() local
707 if (NewWidth >= OrigWidth) in narrowSDivOrSRem()
712 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in narrowSDivOrSRem()
822 unsigned NewWidth = std::max<unsigned>(PowerOf2Ceil(MaxActiveBits), 8); in narrowUDivOrURem() local
826 if (NewWidth >= Instr->getType()->getIntegerBitWidth()) in narrowUDivOrURem()
831 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in narrowUDivOrURem()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp941 unsigned NewWidth = Width; in instCombineIntrinsic() local
948 NewWidth = 16; in instCombineIntrinsic()
950 NewWidth = 32; in instCombineIntrinsic()
952 NewWidth = 64; in instCombineIntrinsic()
956 if (Width != NewWidth) { in instCombineIntrinsic()
957 IntegerType *CmpTy = IC.Builder.getIntNTy(NewWidth); in instCombineIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp3342 unsigned NewWidth = SrcTy->getScalarSizeInBits(); in visitSwitchInst() local
3346 return IsZExt ? CaseVal.isIntN(NewWidth) in visitSwitchInst()
3347 : CaseVal.isSignedIntN(NewWidth); in visitSwitchInst()
3350 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth); in visitSwitchInst()
3370 unsigned NewWidth = Known.getBitWidth() - std::max(LeadingKnownZeros, LeadingKnownOnes); in visitSwitchInst() local
3376 if (NewWidth > 0 && NewWidth < Known.getBitWidth() && in visitSwitchInst()
3377 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst()
3378 IntegerType *Ty = IntegerType::get(SI.getContext(), NewWidth); in visitSwitchInst()
3383 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth); in visitSwitchInst()
H A DInstCombineCompares.cpp1081 unsigned NewWidth = CI2->getValue().countr_zero(); in processUGT_ADDCST_ADD() local
1082 if (NewWidth != 7 && NewWidth != 15 && NewWidth != 31) in processUGT_ADDCST_ADD()
1086 ++NewWidth; in processUGT_ADDCST_ADD()
1089 if (CI1->getBitWidth() == NewWidth || in processUGT_ADDCST_ADD()
1090 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in processUGT_ADDCST_ADD()
1096 if (IC.ComputeMaxSignificantBits(A, 0, &I) > NewWidth || in processUGT_ADDCST_ADD()
1097 IC.ComputeMaxSignificantBits(B, 0, &I) > NewWidth) in processUGT_ADDCST_ADD()
1115 if (!TI || TI->getType()->getPrimitiveSizeInBits() > NewWidth) in processUGT_ADDCST_ADD()
1122 Type *NewType = IntegerType::get(OrigAdd->getContext(), NewWidth); in processUGT_ADDCST_ADD()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h927 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concat() local
928 if (NewWidth <= APINT_BITS_PER_WORD) in concat()
929 return APInt(NewWidth, (U.VAL << NewLSB.getBitWidth()) | NewLSB.U.VAL); in concat()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrInfo.cpp8821 unsigned NewWidth, unsigned *pNewMask = nullptr) { in AdjustBlendMask() argument
8822 assert(((OldWidth % NewWidth) == 0 || (NewWidth % OldWidth) == 0) && in AdjustBlendMask()
8826 if ((OldWidth % NewWidth) == 0) { in AdjustBlendMask()
8827 unsigned Scale = OldWidth / NewWidth; in AdjustBlendMask()
8829 for (unsigned i = 0; i != NewWidth; ++i) { in AdjustBlendMask()
8837 unsigned Scale = NewWidth / OldWidth; in AdjustBlendMask()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp10125 unsigned NewWidth = BitWidth + 1; in GetQuadraticEquation() local
10130 N = N.sext(NewWidth); in GetQuadraticEquation()
10131 M = M.sext(NewWidth); in GetQuadraticEquation()
10132 L = L.sext(NewWidth); in GetQuadraticEquation()
10147 APInt T = APInt(NewWidth, 2); in GetQuadraticEquation()
10149 << "x + " << C << ", coeff bw: " << NewWidth in GetQuadraticEquation()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp753 unsigned NewWidth = SrcVT.getStoreSizeInBits(); in LegalizeLoadOps() local
754 EVT NVT = EVT::getIntegerVT(*DAG.getContext(), NewWidth); in LegalizeLoadOps()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp20337 unsigned NewWidth; in ActOnEnumBody() local
20343 NewWidth = IntWidth; in ActOnEnumBody()
20355 NewWidth = BestWidth; in ActOnEnumBody()
20360 InitVal = InitVal.extOrTrunc(NewWidth); in ActOnEnumBody()