| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | CorrelatedValuePropagation.cpp | 789 unsigned NewWidth = std::max<unsigned>(PowerOf2Ceil(MinSignedBits), 8); in narrowSDivOrSRem() local 793 if (NewWidth >= OrigWidth) in narrowSDivOrSRem() 798 auto *TruncTy = Instr->getType()->getWithNewBitWidth(NewWidth); in narrowSDivOrSRem() 907 unsigned NewWidth = std::max<unsigned>(PowerOf2Ceil(MaxActiveBits), 8); in narrowUDivOrURem() local 911 if (NewWidth >= Instr->getType()->getScalarSizeInBits()) in narrowUDivOrURem() 916 auto *TruncTy = Instr->getType()->getWithNewBitWidth(NewWidth); in narrowUDivOrURem()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPreLegalizer.cpp | 392 unsigned NewWidth = widenBitWidthToNextPow2(CurrentWidth); in widenScalarType() local 393 if (NewWidth != CurrentWidth) in widenScalarType() 394 MRI.setType(Reg, LLT::scalar(NewWidth)); in widenScalarType() 400 unsigned NewWidth = widenBitWidthToNextPow2(CurrentWidth); in widenCImmType() local 401 if (NewWidth != CurrentWidth) { in widenCImmType() 404 CImmVal->getValue().zextOrTrunc(NewWidth))); in widenCImmType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 1276 unsigned NewWidth = Width; in instCombineIntrinsic() local 1283 NewWidth = 16; in instCombineIntrinsic() 1285 NewWidth = 32; in instCombineIntrinsic() 1287 NewWidth = 64; in instCombineIntrinsic() 1291 if (Width != NewWidth) { in instCombineIntrinsic() 1292 IntegerType *CmpTy = IC.Builder.getIntNTy(NewWidth); in instCombineIntrinsic()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 949 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concat() local 950 if (NewWidth <= APINT_BITS_PER_WORD) in concat() 951 return APInt(NewWidth, (U.VAL << NewLSB.getBitWidth()) | NewLSB.U.VAL); in concat()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 4192 unsigned NewWidth = SrcTy->getScalarSizeInBits(); in visitSwitchInst() local 4196 return IsZExt ? CaseVal.isIntN(NewWidth) in visitSwitchInst() 4197 : CaseVal.isSignedIntN(NewWidth); in visitSwitchInst() 4200 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth); in visitSwitchInst() 4230 unsigned NewWidth = Known.getBitWidth() - std::max(LeadingKnownZeros, LeadingKnownOnes); in visitSwitchInst() local 4236 if (NewWidth > 0 && NewWidth < Known.getBitWidth() && in visitSwitchInst() 4237 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst() 4238 IntegerType *Ty = IntegerType::get(SI.getContext(), NewWidth); in visitSwitchInst() 4243 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth); in visitSwitchInst()
|
| H A D | InstCombineCompares.cpp | 1110 unsigned NewWidth = CI2->getValue().countr_zero(); in processUGT_ADDCST_ADD() local 1111 if (NewWidth != 7 && NewWidth != 15 && NewWidth != 31) in processUGT_ADDCST_ADD() 1115 ++NewWidth; in processUGT_ADDCST_ADD() 1118 if (CI1->getBitWidth() == NewWidth || in processUGT_ADDCST_ADD() 1119 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in processUGT_ADDCST_ADD() 1125 if (IC.ComputeMaxSignificantBits(A, &I) > NewWidth || in processUGT_ADDCST_ADD() 1126 IC.ComputeMaxSignificantBits(B, &I) > NewWidth) in processUGT_ADDCST_ADD() 1144 if (!TI || TI->getType()->getPrimitiveSizeInBits() > NewWidth) in processUGT_ADDCST_ADD() 1151 Type *NewType = IntegerType::get(OrigAdd->getContext(), NewWidth); in processUGT_ADDCST_ADD()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | APInt.cpp | 383 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concatSlowCase() local 384 APInt Result = NewLSB.zext(NewWidth); in concatSlowCase()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstrInfo.cpp | 8999 unsigned NewWidth, unsigned *pNewMask = nullptr) { in AdjustBlendMask() argument 9000 assert(((OldWidth % NewWidth) == 0 || (NewWidth % OldWidth) == 0) && in AdjustBlendMask() 9004 if ((OldWidth % NewWidth) == 0) { in AdjustBlendMask() 9005 unsigned Scale = OldWidth / NewWidth; in AdjustBlendMask() 9007 for (unsigned i = 0; i != NewWidth; ++i) { in AdjustBlendMask() 9015 unsigned Scale = NewWidth / OldWidth; in AdjustBlendMask()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 10258 unsigned NewWidth = BitWidth + 1; in GetQuadraticEquation() local 10263 N = N.sext(NewWidth); in GetQuadraticEquation() 10264 M = M.sext(NewWidth); in GetQuadraticEquation() 10265 L = L.sext(NewWidth); in GetQuadraticEquation() 10280 APInt T = APInt(NewWidth, 2); in GetQuadraticEquation() 10282 << "x + " << C << ", coeff bw: " << NewWidth in GetQuadraticEquation()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLoweringHVX.cpp | 3330 auto repeatOp = [&](unsigned NewWidth, SDValue Arg) { in ExpandHvxResizeIntoSteps() argument 3331 MVT Ty = MVT::getVectorVT(MVT::getIntegerVT(NewWidth), NumElems); in ExpandHvxResizeIntoSteps()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaDecl.cpp | 20492 unsigned NewWidth; in ActOnEnumBody() local 20503 NewWidth = Context.getTargetInfo().getIntWidth(); in ActOnEnumBody() 20515 NewWidth = BestWidth; in ActOnEnumBody() 20520 InitVal = InitVal.extOrTrunc(NewWidth); in ActOnEnumBody()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeDAG.cpp | 749 unsigned NewWidth = SrcVT.getStoreSizeInBits(); in LegalizeLoadOps() local 750 EVT NVT = EVT::getIntegerVT(*DAG.getContext(), NewWidth); in LegalizeLoadOps()
|