/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 64 unsigned NumSrcElts, in foldConstVectorToAPInt() argument 69 for (unsigned i = 0; i != NumSrcElts; ++i) { in foldConstVectorToAPInt() 72 Element = C->getAggregateElement(NumSrcElts - i - 1); in foldConstVectorToAPInt() 106 unsigned NumSrcElts = VTy->getNumElements(); in FoldBitCast() local 114 VectorType::get(IntegerType::get(C->getContext(), FPWidth), NumSrcElts); in FoldBitCast() 121 SrcEltTy, NumSrcElts, DL)) in FoldBitCast()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 1354 unsigned NumSrcElts = SrcVT.getVectorNumElements(); in SimplifyDemandedVectorElts() local 1355 if (NumSrcElts == NumElts) in SimplifyDemandedVectorElts() 1360 APInt SrcDemandedElts = APInt::getNullValue(NumSrcElts); in SimplifyDemandedVectorElts() 1364 if ((NumElts % NumSrcElts) == 0) { in SimplifyDemandedVectorElts() 1365 unsigned Scale = NumElts / NumSrcElts; in SimplifyDemandedVectorElts() 1376 for (unsigned i = 0; i != NumSrcElts; ++i) { in SimplifyDemandedVectorElts() 1389 if ((NumSrcElts % NumElts) == 0) { in SimplifyDemandedVectorElts() 1390 unsigned Scale = NumSrcElts / NumElts; in SimplifyDemandedVectorElts() 1487 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in SimplifyDemandedVectorElts() local 1489 if (Idx.uge(NumSrcElts - NumElts)) in SimplifyDemandedVectorElts() [all …]
|
D | SelectionDAG.cpp | 2373 unsigned NumSrcElts = Src.getValueType().getVectorNumElements(); in computeKnownBits() local 2374 if (SubIdx && SubIdx->getAPIntValue().ule(NumSrcElts - NumElts)) { in computeKnownBits() 2377 APInt DemandedSrc = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx); in computeKnownBits() 2889 const unsigned NumSrcElts = VecVT.getVectorNumElements(); in computeKnownBits() local 2895 if (ConstEltNo && ConstEltNo->getAPIntValue().ult(NumSrcElts)) { in computeKnownBits() 2898 APInt DemandedElt = APInt::getOneBitSet(NumSrcElts, Idx); in computeKnownBits() 3509 const unsigned NumSrcElts = VecVT.getVectorNumElements(); in ComputeNumSignBits() local 3519 APInt DemandedSrcElts = APInt::getAllOnesValue(NumSrcElts); in ComputeNumSignBits() 3521 if (ConstEltNo && ConstEltNo->getAPIntValue().ult(NumSrcElts)) in ComputeNumSignBits() 3523 APInt::getOneBitSet(NumSrcElts, ConstEltNo->getZExtValue()); in ComputeNumSignBits() [all …]
|
D | DAGCombiner.cpp | 14929 unsigned NumSrcElts = SubVecVT.getVectorNumElements(); in combineInsertEltToShuffle() local 14931 unsigned NumMaskVals = ExtendRatio * NumSrcElts; in combineInsertEltToShuffle() 14940 if (i / NumSrcElts == InsIndex) in combineInsertEltToShuffle() 14941 Mask[i] = (i % NumSrcElts) + NumMaskVals; in combineInsertEltToShuffle()
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 69 unsigned NumSrcElts = VTy->getNumElements(); in FoldBitCast() local 77 VectorType::get(IntegerType::get(C->getContext(), FPWidth), NumSrcElts); in FoldBitCast() 86 for (unsigned i = 0; i != NumSrcElts; ++i) { in FoldBitCast() 89 Element = C->getAggregateElement(NumSrcElts-i-1); in FoldBitCast()
|
/external/clang/lib/CodeGen/ |
D | CGExpr.cpp | 1760 unsigned NumSrcElts = VTy->getNumElements(); in EmitStoreThroughExtVectorComponentLValue() local 1762 if (NumDstElts == NumSrcElts) { in EmitStoreThroughExtVectorComponentLValue() 1767 for (unsigned i = 0; i != NumSrcElts; ++i) in EmitStoreThroughExtVectorComponentLValue() 1774 } else if (NumDstElts > NumSrcElts) { in EmitStoreThroughExtVectorComponentLValue() 1780 for (unsigned i = 0; i != NumSrcElts; ++i) in EmitStoreThroughExtVectorComponentLValue() 1796 if (getAccessedFieldNo(NumSrcElts - 1, Elts) == Mask.size()) in EmitStoreThroughExtVectorComponentLValue() 1797 NumSrcElts--; in EmitStoreThroughExtVectorComponentLValue() 1800 for (unsigned i = 0; i != NumSrcElts; ++i) in EmitStoreThroughExtVectorComponentLValue()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 2000 unsigned NumSrcElts = 128 / EltTy->getPrimitiveSizeInBits(); in UpgradeIntrinsicCall() local 2001 Type *VT = VectorType::get(EltTy, NumSrcElts); in UpgradeIntrinsicCall() 2005 if (NumSrcElts == 2) in UpgradeIntrinsicCall() 2035 unsigned NumSrcElts = in UpgradeIntrinsicCall() local 2041 ShuffleMask[i] = i % NumSrcElts; in UpgradeIntrinsicCall()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 5522 unsigned NumSrcElts = UndefSrcElts.getBitWidth(); in getTargetConstantBitsFromNode() local 5524 assert((NumSrcElts * SrcEltSizeInBits) == SizeInBits && in getTargetConstantBitsFromNode() 5533 if (NumSrcElts == NumElts) { in getTargetConstantBitsFromNode() 5543 for (unsigned i = 0; i != NumSrcElts; ++i) { in getTargetConstantBitsFromNode() 5620 unsigned NumSrcElts = SizeInBits / SrcEltSizeInBits; in getTargetConstantBitsFromNode() local 5622 APInt UndefSrcElts(NumSrcElts, 0); in getTargetConstantBitsFromNode() 5623 SmallVector<APInt, 64> SrcEltBits(NumSrcElts, APInt(SrcEltSizeInBits, 0)); in getTargetConstantBitsFromNode() 5643 unsigned NumSrcElts = CstTy->getVectorNumElements(); in getTargetConstantBitsFromNode() local 5645 APInt UndefSrcElts(NumSrcElts, 0); in getTargetConstantBitsFromNode() 5646 SmallVector<APInt, 64> SrcEltBits(NumSrcElts, APInt(SrcEltSizeInBits, 0)); in getTargetConstantBitsFromNode() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 516 unsigned NumSrcElts = ArgTy->getVectorNumElements(); in simplifyX86pack() local 517 assert(NumDstElts == (2 * NumSrcElts) && "Unexpected packing types"); in simplifyX86pack() 520 unsigned NumSrcEltsPerLane = NumSrcElts / NumLanes; in simplifyX86pack()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 5012 unsigned NumSrcElts = VT.getSizeInBits() / EltVT.getSizeInBits(); in ReconstructShuffle() local 5013 EVT DestVT = EVT::getVectorVT(*DAG.getContext(), EltVT, NumSrcElts); in ReconstructShuffle() 5027 if (Src.MaxElt - Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 5032 if (Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 5036 DAG.getConstant(NumSrcElts, dl, MVT::i64)); in ReconstructShuffle() 5037 Src.WindowBase = -NumSrcElts; in ReconstructShuffle() 5038 } else if (Src.MaxElt < NumSrcElts) { in ReconstructShuffle() 5050 DAG.getConstant(NumSrcElts, dl, MVT::i64)); in ReconstructShuffle()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 5790 unsigned NumSrcElts = VT.getSizeInBits() / EltVT.getSizeInBits(); in ReconstructShuffle() local 5791 EVT DestVT = EVT::getVectorVT(*DAG.getContext(), EltVT, NumSrcElts); in ReconstructShuffle() 5805 if (Src.MaxElt - Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 5811 if (Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 5815 DAG.getConstant(NumSrcElts, dl, MVT::i64)); in ReconstructShuffle() 5816 Src.WindowBase = -NumSrcElts; in ReconstructShuffle() 5817 } else if (Src.MaxElt < NumSrcElts) { in ReconstructShuffle() 5829 DAG.getConstant(NumSrcElts, dl, MVT::i64)); in ReconstructShuffle()
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 5943 unsigned NumSrcElts = VT.getSizeInBits() / EltVT.getSizeInBits(); in ReconstructShuffle() local 5944 EVT DestVT = EVT::getVectorVT(*DAG.getContext(), EltVT, NumSrcElts); in ReconstructShuffle() 5960 if (Src.MaxElt - Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 5965 if (Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 5969 DAG.getConstant(NumSrcElts, dl, MVT::i32)); in ReconstructShuffle() 5970 Src.WindowBase = -NumSrcElts; in ReconstructShuffle() 5971 } else if (Src.MaxElt < NumSrcElts) { in ReconstructShuffle() 5983 DAG.getConstant(NumSrcElts, dl, MVT::i32)); in ReconstructShuffle()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 6771 unsigned NumSrcElts = VT.getSizeInBits() / EltVT.getSizeInBits(); in ReconstructShuffle() local 6772 EVT DestVT = EVT::getVectorVT(*DAG.getContext(), EltVT, NumSrcElts); in ReconstructShuffle() 6788 if (Src.MaxElt - Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 6793 if (Src.MinElt >= NumSrcElts) { in ReconstructShuffle() 6797 DAG.getConstant(NumSrcElts, dl, MVT::i32)); in ReconstructShuffle() 6798 Src.WindowBase = -NumSrcElts; in ReconstructShuffle() 6799 } else if (Src.MaxElt < NumSrcElts) { in ReconstructShuffle() 6811 DAG.getConstant(NumSrcElts, dl, MVT::i32)); in ReconstructShuffle()
|