Home
last modified time | relevance | path

Searched refs:LHSWidth (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMisplacedWideningCastCheck.cpp58 unsigned LHSWidth = getMaxCalculationWidth(Context, Bop->getLHS()); in getMaxCalculationWidth() local
61 return LHSWidth + RHSWidth; in getMaxCalculationWidth()
63 return std::max(LHSWidth, RHSWidth) + 1; in getMaxCalculationWidth()
74 return LHSWidth + Result.Val.getInt().getExtValue(); in getMaxCalculationWidth()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp522 unsigned LHSWidth = cast<FixedVectorType>(SVI->getOperand(0)->getType()) in visitExtractElementInst() local
527 if (SrcIdx < (int)LHSWidth) in visitExtractElementInst()
530 SrcIdx -= LHSWidth; in visitExtractElementInst()
2587 X->getType()->isVectorTy() && VWidth == LHSWidth) { in visitShuffleVectorInst()
2613 return new ShuffleVectorInst(LHS, createUnaryMask(Mask, LHSWidth)); in visitShuffleVectorInst()
2828 else if (LHSOp0Width == LHSWidth) { in visitShuffleVectorInst()
2833 if (RHSShuffle && RHSOp0Width == LHSWidth) { in visitShuffleVectorInst()
2852 unsigned newLHSWidth = (newLHS != LHS) ? LHSOp0Width : LHSWidth; in visitShuffleVectorInst()
2863 } else if (Mask[i] < (int)LHSWidth) { in visitShuffleVectorInst()
2886 eltMask = RHSMask[Mask[i]-LHSWidth]; in visitShuffleVectorInst()
[all …]
H A DInstCombineCasts.cpp1787 unsigned LHSWidth = LHSMinType->getFPMantissaWidth(); in visitFPTrunc() local
1789 unsigned SrcWidth = std::max(LHSWidth, RHSWidth); in visitFPTrunc()
1827 if (OpWidth >= LHSWidth + RHSWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
1854 if (LHSWidth == SrcWidth) { in visitFPTrunc()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DVectorUtils.cpp321 unsigned LHSWidth = in findScalarElement() local
326 if (InEl < (int)LHSWidth) in findScalarElement()
328 return findScalarElement(SVI->getOperand(1), InEl - LHSWidth); in findScalarElement()