Home
last modified time | relevance | path

Searched refs:VWidth (Results 1 – 7 of 7) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp963 unsigned VWidth = cast<VectorType>(V->getType())->getNumElements(); in SimplifyDemandedVectorElts() local
964 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts()
991 for (unsigned i = 0; i != VWidth; ++i) { in SimplifyDemandedVectorElts()
1037 APInt UndefElts2(VWidth, 0); in SimplifyDemandedVectorElts()
1058 if (IdxNo >= VWidth || !DemandedElts[IdxNo]) { in SimplifyDemandedVectorElts()
1080 for (unsigned i = 0; i < VWidth; i++) { in SimplifyDemandedVectorElts()
1105 for (unsigned i = 0; i < VWidth; i++) { in SimplifyDemandedVectorElts()
1128 for (unsigned i = 0; i < VWidth; ++i) { in SimplifyDemandedVectorElts()
1143 for (unsigned i = 0; i < VWidth; i++) { in SimplifyDemandedVectorElts()
1171 if (VWidth == InVWidth) { in SimplifyDemandedVectorElts()
[all …]
DInstCombineVectorOps.cpp579 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst() local
580 APInt UndefElts(VWidth, 0); in visitInsertElementInst()
581 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitInsertElementInst()
891 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements(); in visitShuffleVectorInst() local
893 APInt UndefElts(VWidth, 0); in visitShuffleVectorInst()
894 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitShuffleVectorInst()
910 Value *Result = (VWidth == LHSWidth) in visitShuffleVectorInst()
917 for (unsigned i = 0, e = LHSWidth; i != VWidth; ++i) { in visitShuffleVectorInst()
940 if (VWidth == LHSWidth) { in visitShuffleVectorInst()
1151 for (unsigned i = 0; i < VWidth; ++i) { in visitShuffleVectorInst()
[all …]
DInstCombineCalls.cpp667 unsigned VWidth = in visitCallInst() local
669 APInt DemandedElts(VWidth, 1); in visitCallInst()
670 APInt UndefElts(VWidth, 0); in visitCallInst()
742 unsigned VWidth = VT->getNumElements(); in visitCallInst() local
747 Builder->CreateVectorSplat(VWidth, VTCI)); in visitCallInst()
750 Builder->CreateVectorSplat(VWidth, VTCI)); in visitCallInst()
760 unsigned VWidth = in visitCallInst() local
762 unsigned LowHalfElts = VWidth / 2; in visitCallInst()
763 APInt InputDemandedElts(APInt::getBitsSet(VWidth, 0, LowHalfElts)); in visitCallInst()
764 APInt UndefElts(VWidth, 0); in visitCallInst()
DInstCombineMulDivRem.cpp1441 unsigned VWidth = C->getType()->getVectorNumElements(); in visitSRem() local
1445 for (unsigned i = 0; i != VWidth; ++i) { in visitSRem()
1458 SmallVector<Constant *, 16> Elts(VWidth); in visitSRem()
1459 for (unsigned i = 0; i != VWidth; ++i) { in visitSRem()
DInstructionCombining.cpp1213 unsigned VWidth = cast<VectorType>(Inst.getType())->getNumElements(); in SimplifyVectorOp() local
1215 assert(cast<VectorType>(LHS->getType())->getNumElements() == VWidth); in SimplifyVectorOp()
1216 assert(cast<VectorType>(RHS->getType())->getNumElements() == VWidth); in SimplifyVectorOp()
1254 SmallVector<Constant*, 16> C2M(VWidth, in SimplifyVectorOp()
1257 for (unsigned I = 0; I < VWidth; ++I) { in SimplifyVectorOp()
1259 assert(ShMask[I] < (int)VWidth); in SimplifyVectorOp()
DInstCombineSelect.cpp1252 unsigned VWidth = VecTy->getNumElements(); in visitSelectInst() local
1253 APInt UndefElts(VWidth, 0); in visitSelectInst()
1254 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitSelectInst()
/external/clang/test/CodeGen/
Dpragma-loop.cpp107 const T VWidth = VECWIDTH; in for_template_define_test() local
110 #pragma clang loop vectorize_width(VWidth) interleave_count(ICount) in for_template_define_test()