Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp927 unsigned VWidth = II->getType()->getVectorNumElements(); in simplifyAMDGCNMemoryIntrinsicDemanded() local
928 if (VWidth == 1) in simplifyAMDGCNMemoryIntrinsicDemanded()
967 if (NewNumElts >= VWidth && DemandedElts.isMask()) { in simplifyAMDGCNMemoryIntrinsicDemanded()
1014 for (unsigned OrigLoadIdx = 0; OrigLoadIdx < VWidth; ++OrigLoadIdx) { in simplifyAMDGCNMemoryIntrinsicDemanded()
1038 unsigned VWidth = V->getType()->getVectorNumElements(); in SimplifyDemandedVectorElts() local
1039 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts()
1066 for (unsigned i = 0; i != VWidth; ++i) { in SimplifyDemandedVectorElts()
1112 APInt UndefElts2(VWidth, 0); in SimplifyDemandedVectorElts()
1113 APInt UndefElts3(VWidth, 0); in SimplifyDemandedVectorElts()
1135 if (IdxNo < VWidth) in SimplifyDemandedVectorElts()
[all …]
DInstCombineVectorOps.cpp835 unsigned VWidth = VecOp->getType()->getVectorNumElements(); in visitInsertElementInst() local
836 APInt UndefElts(VWidth, 0); in visitInsertElementInst()
837 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitInsertElementInst()
1367 unsigned VWidth = SVI.getType()->getVectorNumElements(); in visitShuffleVectorInst() local
1369 APInt UndefElts(VWidth, 0); in visitShuffleVectorInst()
1370 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitShuffleVectorInst()
1384 Value *Result = (VWidth == LHSWidth) in visitShuffleVectorInst()
1391 for (unsigned i = 0, e = LHSWidth; i != VWidth; ++i) { in visitShuffleVectorInst()
1414 if (VWidth == LHSWidth) { in visitShuffleVectorInst()
1625 for (unsigned i = 0; i < VWidth; ++i) { in visitShuffleVectorInst()
[all …]
DInstCombineCalls.cpp347 unsigned VWidth = VT->getNumElements(); in simplifyX86immShift() local
366 auto ShiftVec = Builder.CreateVectorSplat(VWidth, ShiftAmt); in simplifyX86immShift()
2354 unsigned VWidth = Arg->getType()->getVectorNumElements(); in visitCallInst() local
2355 if (Value *V = SimplifyDemandedVectorEltsLow(Arg, VWidth, 1)) { in visitCallInst()
2422 unsigned VWidth = Arg0->getType()->getVectorNumElements(); in visitCallInst() local
2423 if (Value *V = SimplifyDemandedVectorEltsLow(Arg0, VWidth, 1)) { in visitCallInst()
2427 if (Value *V = SimplifyDemandedVectorEltsLow(Arg1, VWidth, 1)) { in visitCallInst()
2584 unsigned VWidth = II->getType()->getVectorNumElements(); in visitCallInst() local
2585 APInt UndefElts(VWidth, 0); in visitCallInst()
2586 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitCallInst()
[all …]
DInstCombineMulDivRem.cpp1384 unsigned VWidth = C->getType()->getVectorNumElements(); in visitSRem() local
1388 for (unsigned i = 0; i != VWidth; ++i) { in visitSRem()
1401 SmallVector<Constant *, 16> Elts(VWidth); in visitSRem()
1402 for (unsigned i = 0; i != VWidth; ++i) { in visitSRem()
DInstructionCombining.cpp1363 unsigned VWidth = cast<VectorType>(Inst.getType())->getNumElements(); in foldShuffledBinop() local
1365 assert(cast<VectorType>(LHS->getType())->getNumElements() == VWidth); in foldShuffledBinop()
1366 assert(cast<VectorType>(RHS->getType())->getNumElements() == VWidth); in foldShuffledBinop()
1405 NewVecC(VWidth, UndefValue::get(C->getType()->getScalarType())); in foldShuffledBinop()
1407 for (unsigned I = 0; I < VWidth; ++I) { in foldShuffledBinop()
1409 assert(ShMask[I] < (int)VWidth); in foldShuffledBinop()
DInstCombineSelect.cpp1945 unsigned VWidth = VecTy->getNumElements(); in visitSelectInst() local
1946 APInt UndefElts(VWidth, 0); in visitSelectInst()
1947 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitSelectInst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp909 unsigned VWidth = V->getType()->getVectorNumElements(); in SimplifyDemandedVectorElts() local
910 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts()
937 for (unsigned i = 0; i != VWidth; ++i) { in SimplifyDemandedVectorElts()
983 APInt UndefElts2(VWidth, 0); in SimplifyDemandedVectorElts()
1004 if (IdxNo >= VWidth || !DemandedElts[IdxNo]) { in SimplifyDemandedVectorElts()
1026 for (unsigned i = 0; i < VWidth; i++) { in SimplifyDemandedVectorElts()
1051 for (unsigned i = 0; i < VWidth; i++) { in SimplifyDemandedVectorElts()
1074 for (unsigned i = 0; i < VWidth; ++i) { in SimplifyDemandedVectorElts()
1089 for (unsigned i = 0; i < VWidth; i++) { in SimplifyDemandedVectorElts()
1124 if (VWidth == InVWidth) { in SimplifyDemandedVectorElts()
[all …]
DInstCombineVectorOps.cpp619 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst() local
620 APInt UndefElts(VWidth, 0); in visitInsertElementInst()
621 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitInsertElementInst()
931 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements(); in visitShuffleVectorInst() local
933 APInt UndefElts(VWidth, 0); in visitShuffleVectorInst()
934 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitShuffleVectorInst()
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()
1191 for (unsigned i = 0; i < VWidth; ++i) { in visitShuffleVectorInst()
[all …]
DInstCombineCalls.cpp298 unsigned VWidth = VT->getNumElements(); in simplifyX86immShift() local
317 auto ShiftVec = Builder.CreateVectorSplat(VWidth, ShiftAmt); in simplifyX86immShift()
1614 unsigned VWidth = Arg->getType()->getVectorNumElements(); in visitCallInst() local
1615 if (Value *V = SimplifyDemandedVectorEltsLow(Arg, VWidth, 1)) { in visitCallInst()
1663 unsigned VWidth = Arg0->getType()->getVectorNumElements(); in visitCallInst() local
1664 if (Value *V = SimplifyDemandedVectorEltsLow(Arg0, VWidth, 1)) { in visitCallInst()
1668 if (Value *V = SimplifyDemandedVectorEltsLow(Arg1, VWidth, 1)) { in visitCallInst()
1694 unsigned VWidth = Arg1->getType()->getVectorNumElements(); in visitCallInst() local
1695 if (Value *V = SimplifyDemandedVectorEltsLow(Arg1, VWidth, 1)) { in visitCallInst()
1709 unsigned VWidth = Arg0->getType()->getVectorNumElements(); in visitCallInst() local
[all …]
DInstCombineMulDivRem.cpp1490 unsigned VWidth = C->getType()->getVectorNumElements(); in visitSRem() local
1494 for (unsigned i = 0; i != VWidth; ++i) { in visitSRem()
1507 SmallVector<Constant *, 16> Elts(VWidth); in visitSRem()
1508 for (unsigned i = 0; i != VWidth; ++i) { in visitSRem()
DInstCombineSelect.cpp1234 unsigned VWidth = VecTy->getNumElements(); in visitSelectInst() local
1235 APInt UndefElts(VWidth, 0); in visitSelectInst()
1236 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitSelectInst()
DInstructionCombining.cpp1264 unsigned VWidth = cast<VectorType>(Inst.getType())->getNumElements(); in SimplifyVectorOp() local
1266 assert(cast<VectorType>(LHS->getType())->getNumElements() == VWidth); in SimplifyVectorOp()
1267 assert(cast<VectorType>(RHS->getType())->getNumElements() == VWidth); in SimplifyVectorOp()
1304 SmallVector<Constant*, 16> C2M(VWidth, in SimplifyVectorOp()
1307 for (unsigned I = 0; I < VWidth; ++I) { in SimplifyVectorOp()
1309 assert(ShMask[I] < (int)VWidth); in SimplifyVectorOp()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp809 unsigned VWidth = cast<VectorType>(V->getType())->getNumElements(); in SimplifyDemandedVectorElts() local
810 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts()
830 for (unsigned i = 0; i != VWidth; ++i) in SimplifyDemandedVectorElts()
859 for (unsigned i = 0; i != VWidth; ++i) { in SimplifyDemandedVectorElts()
890 APInt UndefElts2(VWidth, 0); in SimplifyDemandedVectorElts()
911 if (IdxNo >= VWidth || !DemandedElts[IdxNo]) { in SimplifyDemandedVectorElts()
933 for (unsigned i = 0; i < VWidth; i++) { in SimplifyDemandedVectorElts()
958 for (unsigned i = 0; i < VWidth; i++) { in SimplifyDemandedVectorElts()
981 for (unsigned i = 0; i < VWidth; ++i) { in SimplifyDemandedVectorElts()
1001 if (VWidth == InVWidth) { in SimplifyDemandedVectorElts()
[all …]
DInstCombineVectorOps.cpp434 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst() local
435 APInt UndefElts(VWidth, 0); in visitInsertElementInst()
436 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitInsertElementInst()
458 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements(); in visitShuffleVectorInst() local
460 if (VWidth != cast<VectorType>(LHS->getType())->getNumElements()) in visitShuffleVectorInst()
463 APInt UndefElts(VWidth, 0); in visitShuffleVectorInst()
464 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitShuffleVectorInst()
DInstCombineCalls.cpp588 unsigned VWidth = in visitCallInst() local
590 APInt DemandedElts(VWidth, 1); in visitCallInst()
591 APInt UndefElts(VWidth, 0); in visitCallInst()
608 unsigned VWidth = in visitCallInst() local
610 unsigned LowHalfElts = VWidth / 2; in visitCallInst()
611 APInt InputDemandedElts(APInt::getBitsSet(VWidth, 0, LowHalfElts)); in visitCallInst()
612 APInt UndefElts(VWidth, 0); in visitCallInst()
DInstCombineMulDivRem.cpp688 unsigned VWidth = RHSV->getNumOperands(); in visitSRem() local
691 for (unsigned i = 0; !hasNegative && i != VWidth; ++i) in visitSRem()
697 std::vector<Constant *> Elts(VWidth); in visitSRem()
698 for (unsigned i = 0; i != VWidth; ++i) { in visitSRem()
/external/clang/test/CodeGenCXX/
Dpragma-loop.cpp108 const T VWidth = VECWIDTH; in for_template_define_test() local
111 #pragma clang loop vectorize_width(VWidth) interleave_count(ICount) in for_template_define_test()