| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | CorrelatedValuePropagation.cpp | 748 unsigned NewWidth = std::max<unsigned>(PowerOf2Ceil(MinSignedBits), 8); in narrowSDivOrSRem() local 752 if (NewWidth >= OrigWidth) in narrowSDivOrSRem() 757 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in narrowSDivOrSRem() 792 unsigned NewWidth = std::max<unsigned>(PowerOf2Ceil(MaxActiveBits), 8); in processUDivOrURem() local 796 if (NewWidth >= Instr->getType()->getIntegerBitWidth()) in processUDivOrURem() 801 auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth); in processUDivOrURem()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 814 unsigned NewWidth = Width; in instCombineIntrinsic() local 821 NewWidth = 16; in instCombineIntrinsic() 823 NewWidth = 32; in instCombineIntrinsic() 825 NewWidth = 64; in instCombineIntrinsic() 829 if (Width != NewWidth) { in instCombineIntrinsic() 830 IntegerType *CmpTy = IC.Builder.getIntNTy(NewWidth); in instCombineIntrinsic()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 910 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concat() local 911 if (NewWidth <= APINT_BITS_PER_WORD) in concat() 912 return APInt(NewWidth, (U.VAL << NewLSB.getBitWidth()) | NewLSB.U.VAL); in concat()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 3228 unsigned NewWidth = Known.getBitWidth() - std::max(LeadingKnownZeros, LeadingKnownOnes); in visitSwitchInst() local 3234 if (NewWidth > 0 && NewWidth < Known.getBitWidth() && in visitSwitchInst() 3235 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst() 3236 IntegerType *Ty = IntegerType::get(SI.getContext(), NewWidth); in visitSwitchInst() 3241 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth); in visitSwitchInst()
|
| H A D | InstCombineCompares.cpp | 1256 unsigned NewWidth = CI2->getValue().countTrailingZeros(); in processUGT_ADDCST_ADD() local 1257 if (NewWidth != 7 && NewWidth != 15 && NewWidth != 31) in processUGT_ADDCST_ADD() 1261 ++NewWidth; in processUGT_ADDCST_ADD() 1264 if (CI1->getBitWidth() == NewWidth || in processUGT_ADDCST_ADD() 1265 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in processUGT_ADDCST_ADD() 1271 if (IC.ComputeMaxSignificantBits(A, 0, &I) > NewWidth || in processUGT_ADDCST_ADD() 1272 IC.ComputeMaxSignificantBits(B, 0, &I) > NewWidth) in processUGT_ADDCST_ADD() 1290 if (!TI || TI->getType()->getPrimitiveSizeInBits() > NewWidth) in processUGT_ADDCST_ADD() 1297 Type *NewType = IntegerType::get(OrigAdd->getContext(), NewWidth); in processUGT_ADDCST_ADD()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APInt.cpp | 345 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concatSlowCase() local 346 APInt Result = NewLSB.zext(NewWidth); in concatSlowCase()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstrInfo.cpp | 7965 unsigned NewWidth, unsigned *pNewMask = nullptr) { in AdjustBlendMask() argument 7966 assert(((OldWidth % NewWidth) == 0 || (NewWidth % OldWidth) == 0) && in AdjustBlendMask() 7970 if ((OldWidth % NewWidth) == 0) { in AdjustBlendMask() 7971 unsigned Scale = OldWidth / NewWidth; in AdjustBlendMask() 7973 for (unsigned i = 0; i != NewWidth; ++i) { in AdjustBlendMask() 7981 unsigned Scale = NewWidth / OldWidth; in AdjustBlendMask()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 9879 unsigned NewWidth = BitWidth + 1; in GetQuadraticEquation() local 9884 N = N.sext(NewWidth); in GetQuadraticEquation() 9885 M = M.sext(NewWidth); in GetQuadraticEquation() 9886 L = L.sext(NewWidth); in GetQuadraticEquation() 9901 APInt T = APInt(NewWidth, 2); in GetQuadraticEquation() 9903 << "x + " << C << ", coeff bw: " << NewWidth in GetQuadraticEquation()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeDAG.cpp | 741 unsigned NewWidth = SrcVT.getStoreSizeInBits(); in LegalizeLoadOps() local 742 EVT NVT = EVT::getIntegerVT(*DAG.getContext(), NewWidth); in LegalizeLoadOps()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaDecl.cpp | 19107 unsigned NewWidth; in ActOnEnumBody() local 19113 NewWidth = IntWidth; in ActOnEnumBody() 19125 NewWidth = BestWidth; in ActOnEnumBody() 19130 InitVal = InitVal.extOrTrunc(NewWidth); in ActOnEnumBody()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 12506 unsigned NewWidth, bool NewSign,
|