Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DMisplacedWideningCastCheck.cpp59 unsigned LHSWidth = getMaxCalculationWidth(Context, Bop->getLHS()); in getMaxCalculationWidth() local
62 return LHSWidth + RHSWidth; in getMaxCalculationWidth()
64 return std::max(LHSWidth, RHSWidth) + 1; in getMaxCalculationWidth()
75 return LHSWidth + Result.Val.getInt().getExtValue(); in getMaxCalculationWidth()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp231 unsigned LHSWidth = in visitExtractElementInst() local
236 if (SrcIdx < (int)LHSWidth) in visitExtractElementInst()
239 SrcIdx -= LHSWidth; in visitExtractElementInst()
943 unsigned LHSWidth = cast<VectorType>(LHS->getType())->getNumElements(); in visitShuffleVectorInst() local
950 Value *Result = (VWidth == LHSWidth) in visitShuffleVectorInst()
957 for (unsigned i = 0, e = LHSWidth; i != VWidth; ++i) { in visitShuffleVectorInst()
980 if (VWidth == LHSWidth) { in visitShuffleVectorInst()
1161 else if (LHSOp0Width == LHSWidth) { in visitShuffleVectorInst()
1166 if (RHSShuffle && RHSOp0Width == LHSWidth) { in visitShuffleVectorInst()
1185 unsigned newLHSWidth = (newLHS != LHS) ? LHSOp0Width : LHSWidth; in visitShuffleVectorInst()
[all …]
DInstCombineCasts.cpp1271 unsigned LHSWidth = LHSOrig->getType()->getFPMantissaWidth(); in visitFPTrunc() local
1273 unsigned SrcWidth = std::max(LHSWidth, RHSWidth); in visitFPTrunc()
1314 if (OpWidth >= LHSWidth + RHSWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
1350 if (LHSWidth < SrcWidth) in visitFPTrunc()
/external/llvm/lib/Analysis/
DVectorUtils.cpp261 unsigned LHSWidth = SVI->getOperand(0)->getType()->getVectorNumElements(); in findScalarElement() local
265 if (InEl < (int)LHSWidth) in findScalarElement()
267 return findScalarElement(SVI->getOperand(1), InEl - LHSWidth); in findScalarElement()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp441 unsigned LHSWidth = cast<FixedVectorType>(SVI->getOperand(0)->getType()) in visitExtractElementInst() local
446 if (SrcIdx < (int)LHSWidth) in visitExtractElementInst()
449 SrcIdx -= LHSWidth; in visitExtractElementInst()
2292 unsigned LHSWidth = cast<FixedVectorType>(LHS->getType())->getNumElements(); in visitShuffleVectorInst() local
2304 X->getType()->isVectorTy() && VWidth == LHSWidth) { in visitShuffleVectorInst()
2335 Elts.push_back(Mask[i] % LHSWidth); in visitShuffleVectorInst()
2546 else if (LHSOp0Width == LHSWidth) { in visitShuffleVectorInst()
2551 if (RHSShuffle && RHSOp0Width == LHSWidth) { in visitShuffleVectorInst()
2570 unsigned newLHSWidth = (newLHS != LHS) ? LHSOp0Width : LHSWidth; in visitShuffleVectorInst()
2581 } else if (Mask[i] < (int)LHSWidth) { in visitShuffleVectorInst()
[all …]
DInstCombineCasts.cpp1674 unsigned LHSWidth = LHSMinType->getFPMantissaWidth(); in visitFPTrunc() local
1676 unsigned SrcWidth = std::max(LHSWidth, RHSWidth); in visitFPTrunc()
1714 if (OpWidth >= LHSWidth + RHSWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
1741 if (LHSWidth == SrcWidth) { in visitFPTrunc()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp413 unsigned LHSWidth = in visitExtractElementInst() local
418 if (SrcIdx < (int)LHSWidth) in visitExtractElementInst()
421 SrcIdx -= LHSWidth; in visitExtractElementInst()
1910 unsigned LHSWidth = LHS->getType()->getVectorNumElements(); in visitShuffleVectorInst() local
1922 Elts.push_back(ConstantInt::get(Int32Ty, Mask[i] % LHSWidth)); in visitShuffleVectorInst()
2135 else if (LHSOp0Width == LHSWidth) { in visitShuffleVectorInst()
2140 if (RHSShuffle && RHSOp0Width == LHSWidth) { in visitShuffleVectorInst()
2159 unsigned newLHSWidth = (newLHS != LHS) ? LHSOp0Width : LHSWidth; in visitShuffleVectorInst()
2170 } else if (Mask[i] < (int)LHSWidth) { in visitShuffleVectorInst()
2193 eltMask = RHSMask[Mask[i]-LHSWidth]; in visitShuffleVectorInst()
[all …]
DInstCombineCasts.cpp1542 unsigned LHSWidth = LHSMinType->getFPMantissaWidth(); in visitFPTrunc() local
1544 unsigned SrcWidth = std::max(LHSWidth, RHSWidth); in visitFPTrunc()
1582 if (OpWidth >= LHSWidth + RHSWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
1609 if (LHSWidth == SrcWidth) { in visitFPTrunc()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DVectorUtils.cpp289 unsigned LHSWidth = SVI->getOperand(0)->getType()->getVectorNumElements(); in findScalarElement() local
293 if (InEl < (int)LHSWidth) in findScalarElement()
295 return findScalarElement(SVI->getOperand(1), InEl - LHSWidth); in findScalarElement()
/external/llvm-project/llvm/lib/Analysis/
DVectorUtils.cpp305 unsigned LHSWidth = in findScalarElement() local
310 if (InEl < (int)LHSWidth) in findScalarElement()
312 return findScalarElement(SVI->getOperand(1), InEl - LHSWidth); in findScalarElement()