/external/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 28 typedef llvm::SmallVector<EltTy, 4> VecTy; typedef 29 typedef typename VecTy::value_type value_type; 30 typedef llvm::PointerUnion<EltTy, VecTy *> PtrUnion; 38 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 43 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 44 Val = new VecTy(*V); in TinyPtrVector() 60 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 66 Val.template get<VecTy*>()->clear(); 67 Val.template get<VecTy*>()->push_back(RHS.front()); 69 *Val.template get<VecTy*>() = *RHS.Val.template get<VecTy*>(); [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | TinyPtrVector.h | 27 typedef llvm::SmallVector<EltTy, 4> VecTy; typedef 28 llvm::PointerUnion<EltTy, VecTy*> Val; 32 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 33 Val = new VecTy(*V); in TinyPtrVector() 36 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 44 if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) in empty() 54 return Val.template get<VecTy*>()->size(); in size() 65 return Val.template get<VecTy *>()->begin(); in begin() 75 return Val.template get<VecTy *>()->end(); in end() 86 assert(i < Val.template get<VecTy*>()->size() && [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1395 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) { in getNaturalGEPRecursively() local 1396 unsigned ElementSizeInBits = DL.getTypeSizeInBits(VecTy->getScalarType()); in getNaturalGEPRecursively() 1403 if (NumSkippedElements.ugt(VecTy->getNumElements())) in getNaturalGEPRecursively() 1407 return getNaturalGEPRecursively(IRB, DL, Ptr, VecTy->getElementType(), in getNaturalGEPRecursively() 2068 VectorType *VecTy = cast<VectorType>(V->getType()); in extractVector() local 2070 assert(NumElements <= VecTy->getNumElements() && "Too many elements!"); in extractVector() 2072 if (NumElements == VecTy->getNumElements()) in extractVector() 2094 VectorType *VecTy = cast<VectorType>(Old->getType()); in insertVector() local 2095 assert(VecTy && "Can only insert a vector into a vector"); in insertVector() 2106 assert(Ty->getNumElements() <= VecTy->getNumElements() && in insertVector() [all …]
|
D | Scalarizer.cpp | 104 VectorLayout() : VecTy(nullptr), ElemTy(nullptr), VecAlign(0), ElemSize(0) {} in VectorLayout() 112 VectorType *VecTy; member 356 Layout.VecTy = dyn_cast<VectorType>(Ty); in getVectorLayout() 357 if (!Layout.VecTy) in getVectorLayout() 361 Layout.ElemTy = Layout.VecTy->getElementType(); in getVectorLayout() 369 Layout.VecAlign = DL.getABITypeAlignment(Layout.VecTy); in getVectorLayout() 605 unsigned NumElems = Layout.VecTy->getNumElements(); in visitLoadInst() 630 unsigned NumElems = Layout.VecTy->getNumElements(); in visitStoreInst()
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 431 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSLLDQIntrinsics() local 432 Op = Builder.CreateBitCast(Op, VecTy, "cast"); in UpgradeX86PSLLDQIntrinsics() 435 Value *Res = Constant::getNullValue(VecTy); in UpgradeX86PSLLDQIntrinsics() 465 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSRLDQIntrinsics() local 466 Op = Builder.CreateBitCast(Op, VecTy, "cast"); in UpgradeX86PSRLDQIntrinsics() 469 Value *Res = Constant::getNullValue(VecTy); in UpgradeX86PSRLDQIntrinsics() 899 Type *VecTy = CI->getType(); in UpgradeIntrinsicCall() local 900 Type *EltTy = VecTy->getVectorElementType(); in UpgradeIntrinsicCall() 901 unsigned EltNum = VecTy->getVectorNumElements(); in UpgradeIntrinsicCall() 906 Rep = UndefValue::get(VecTy); in UpgradeIntrinsicCall() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 295 VectorType *VecTy, in getExtractWithExtendCost() argument 304 auto *Src = VecTy->getElementType(); in getExtractWithExtendCost() 311 auto Cost = getVectorInstrCost(Instruction::ExtractElement, VecTy, Index); in getExtractWithExtendCost() 314 auto VecLT = TLI->getTypeLegalizationCost(DL, VecTy); in getExtractWithExtendCost() 495 int AArch64TTIImpl::getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, in getInterleavedMemoryOpCost() argument 501 assert(isa<VectorType>(VecTy) && "Expect a vector type"); in getInterleavedMemoryOpCost() 504 unsigned NumElts = VecTy->getVectorNumElements(); in getInterleavedMemoryOpCost() 505 Type *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor); in getInterleavedMemoryOpCost() 513 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
|
D | AArch64TargetTransformInfo.h | 102 int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy, 130 int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor,
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 256 Type *VecTy = ReduxRoot->getOperand(0)->getType(); in matchPairwiseReduction() local 257 unsigned NumVecElems = VecTy->getVectorNumElements(); in matchPairwiseReduction() 283 Ty = VecTy; in matchPairwiseReduction() 320 Type *VecTy = ReduxRoot->getOperand(0)->getType(); in matchVectorSplittingReduction() local 321 unsigned NumVecElems = VecTy->getVectorNumElements(); in matchVectorSplittingReduction() 374 Ty = VecTy; in matchVectorSplittingReduction()
|
D | TargetTransformInfo.cpp | 297 VectorType *VecTy, in getExtractWithExtendCost() argument 299 int Cost = TTIImpl->getExtractWithExtendCost(Opcode, Dst, VecTy, Index); in getExtractWithExtendCost() 351 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument 353 int Cost = TTIImpl->getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
|
D | Lint.cpp | 513 VectorType *VecTy = dyn_cast<VectorType>(V->getType()); in isZero() local 514 if (!VecTy) { in isZero() 532 unsigned BitWidth = VecTy->getElementType()->getIntegerBitWidth(); in isZero() 533 for (unsigned I = 0, N = VecTy->getNumElements(); I != N; ++I) { in isZero()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 1534 VectorType *VecTy = VectorType::get(ScalarTy, VL.size()); in getEntryCost() local 1539 VecTy = VectorType::get(IntegerType::get(F->getContext(), MinBWs[VL[0]]), in getEntryCost() 1546 return TTI->getShuffleCost(TargetTransformInfo::SK_Broadcast, VecTy, 0); in getEntryCost() 1566 TTI->getVectorInstrCost(Instruction::ExtractElement, VecTy, i); in getEntryCost() 1570 return getGatherCost(VecTy); in getEntryCost() 1591 int VecCost = TTI->getCastInstrCost(VL0->getOpcode(), VecTy, SrcVecTy); in getEntryCost() 1599 int ScalarCost = VecTy->getNumElements() * in getEntryCost() 1601 int VecCost = TTI->getCmpSelInstrCost(Opcode, VecTy, MaskTy); in getEntryCost() 1659 int ScalarCost = VecTy->getNumElements() * in getEntryCost() 1662 int VecCost = TTI->getArithmeticInstrCost(Opcode, VecTy, Op1VK, Op2VK, in getEntryCost() [all …]
|
D | LoadStoreVectorizer.cpp | 725 VectorType *VecTy; in vectorizeStoreChain() local 728 VecTy = VectorType::get(StoreTy->getScalarType(), in vectorizeStoreChain() 731 VecTy = VectorType::get(StoreTy, Chain.size()); in vectorizeStoreChain() 774 Value *Vec = UndefValue::get(VecTy); in vectorizeStoreChain() 807 Builder.CreateBitCast(S0->getPointerOperand(), VecTy->getPointerTo(AS)); in vectorizeStoreChain() 879 VectorType *VecTy; in vectorizeLoadChain() local 882 VecTy = VectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain() 885 VecTy = VectorType::get(LoadTy, Chain.size()); in vectorizeLoadChain() 929 Builder.CreateBitCast(L0->getPointerOperand(), VecTy->getPointerTo(AS)); in vectorizeLoadChain()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 410 int PPCTTIImpl::getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, in getInterleavedMemoryOpCost() argument 415 assert(isa<VectorType>(VecTy) && in getInterleavedMemoryOpCost() 419 std::pair<int, MVT> LT = TLI->getTypeLegalizationCost(DL, VecTy); in getInterleavedMemoryOpCost() 422 int Cost = getMemoryOpCost(Opcode, VecTy, Alignment, AddressSpace); in getInterleavedMemoryOpCost()
|
D | PPCTargetTransformInfo.h | 88 int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy,
|
/external/llvm/include/llvm/Analysis/ |
D | TargetTransformInfo.h | 505 int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy, 546 int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, 702 VectorType *VecTy, unsigned Index) = 0; 716 virtual int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, 910 int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy, in getExtractWithExtendCost() argument 912 return Impl.getExtractWithExtendCost(Opcode, Dst, VecTy, Index); in getExtractWithExtendCost() 937 int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, in getInterleavedMemoryOpCost() argument 940 return Impl.getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
|
/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 467 VectorType *VecTy, unsigned Index) { in getExtractWithExtendCost() argument 469 Instruction::ExtractElement, VecTy, Index) + in getExtractWithExtendCost() 471 VecTy->getElementType()); in getExtractWithExtendCost() 556 unsigned getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, in getInterleavedMemoryOpCost() argument 561 VectorType *VT = dyn_cast<VectorType>(VecTy); in getInterleavedMemoryOpCost() 572 Opcode, VecTy, Alignment, AddressSpace); in getInterleavedMemoryOpCost() 576 MVT VecTyLT = getTLI()->getTypeLegalizationCost(DL, VecTy).second; in getInterleavedMemoryOpCost() 578 static_cast<T *>(this)->getDataLayout().getTypeStoreSize(VecTy); in getInterleavedMemoryOpCost()
|
D | ValueTypes.h | 86 MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements()); in changeVectorElementTypeToInteger() local 87 assert(VecTy.SimpleTy >= 0 && in changeVectorElementTypeToInteger() 89 return VecTy; in changeVectorElementTypeToInteger()
|
/external/llvm/lib/Target/Mips/ |
D | MipsSEISelLowering.cpp | 1417 static SDValue getBuildVectorSplat(EVT VecTy, SDValue SplatValue, in getBuildVectorSplat() argument 1419 EVT ViaVecTy = VecTy; in getBuildVectorSplat() 1424 if (VecTy == MVT::v2i64) { in getBuildVectorSplat() 1447 if (VecTy != ViaVecTy) in getBuildVectorSplat() 1448 Result = DAG.getNode(ISD::BITCAST, DL, VecTy, Result); in getBuildVectorSplat() 1456 EVT VecTy = Op->getValueType(0); in lowerMSABinaryBitImmIntr() local 1462 if (VecTy == MVT::v2i64) { in lowerMSABinaryBitImmIntr() 1485 if (VecTy == MVT::v2i64) in lowerMSABinaryBitImmIntr() 1488 Exp2Imm = getBuildVectorSplat(VecTy, Imm, BigEndian, DAG); in lowerMSABinaryBitImmIntr() 1490 Exp2Imm = DAG.getNode(ISD::SHL, DL, VecTy, DAG.getConstant(1, DL, VecTy), in lowerMSABinaryBitImmIntr() [all …]
|
/external/swiftshader/third_party/subzero/crosstest/ |
D | test_vector_ops.cpp | 654 template <typename VecTy> class ShuffleVectorTest { 713 typedef VecTy (*TestFn)(VecTy V1, VecTy V2);
|
/external/llvm/lib/Target/ARM/ |
D | ARMTargetTransformInfo.cpp | 496 int ARMTTIImpl::getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, in getInterleavedMemoryOpCost() argument 502 assert(isa<VectorType>(VecTy) && "Expect a vector type"); in getInterleavedMemoryOpCost() 505 bool EltIs64Bits = DL.getTypeSizeInBits(VecTy->getScalarType()) == 64; in getInterleavedMemoryOpCost() 508 unsigned NumElts = VecTy->getVectorNumElements(); in getInterleavedMemoryOpCost() 509 Type *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor); in getInterleavedMemoryOpCost() 517 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 1608 VectorType *VecTy = cast<VectorType>(VecInput->getType()); in OptimizeIntToFloatBitCast() local 1611 if (VecTy->getPrimitiveSizeInBits() % DestWidth == 0) { in OptimizeIntToFloatBitCast() 1614 if (VecTy->getElementType() != DestTy) { in OptimizeIntToFloatBitCast() 1615 VecTy = VectorType::get(DestTy, in OptimizeIntToFloatBitCast() 1616 VecTy->getPrimitiveSizeInBits() / DestWidth); in OptimizeIntToFloatBitCast() 1617 VecInput = IC.Builder->CreateBitCast(VecInput, VecTy); in OptimizeIntToFloatBitCast() 1629 VectorType *VecTy = cast<VectorType>(VecInput->getType()); in OptimizeIntToFloatBitCast() local 1631 if (VecTy->getPrimitiveSizeInBits() % DestWidth == 0 && in OptimizeIntToFloatBitCast() 1635 if (VecTy->getElementType() != DestTy) { in OptimizeIntToFloatBitCast() 1636 VecTy = VectorType::get(DestTy, in OptimizeIntToFloatBitCast() [all …]
|
/external/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 234 Type *VecTy = Shuffles[0]->getType(); in lowerInterleavedLoad() local 239 if (Shuffles[i]->getType() != VecTy) in lowerInterleavedLoad()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 484 VectorType *VecTy = cast<VectorType>(II.getType()); in simplifyX86insertps() local 485 assert(VecTy->getNumElements() == 4 && "insertps with wrong vector type"); in simplifyX86insertps() 497 ConstantAggregateZero *ZeroVector = ConstantAggregateZero::get(VecTy); in simplifyX86insertps() 732 auto *VecTy = cast<VectorType>(II.getType()); in simplifyX86pshufb() local 734 unsigned NumElts = VecTy->getNumElements(); in simplifyX86pshufb() 768 auto V2 = Constant::getNullValue(VecTy); in simplifyX86pshufb() 831 auto *VecTy = cast<VectorType>(II.getType()); in simplifyX86vpermv() local 833 unsigned Size = VecTy->getNumElements(); in simplifyX86vpermv() 856 auto V2 = UndefValue::get(VecTy); in simplifyX86vpermv() 869 VectorType *VecTy = cast<VectorType>(II.getType()); in simplifyX86vperm2() local [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | ValueTypes.h | 450 MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements()); in changeVectorElementTypeToInteger() local 451 assert(VecTy != MVT::INVALID_SIMPLE_VALUE_TYPE && in changeVectorElementTypeToInteger() 453 return VecTy; in changeVectorElementTypeToInteger()
|
/external/spirv-llvm/lib/SPIRV/ |
D | OCLUtil.cpp | 248 if (VectorType* VecTy = dyn_cast<VectorType>(Ty)) { in encodeVecTypeHint() local 249 Type* EleTy = VecTy->getElementType(); in encodeVecTypeHint() 250 unsigned Size = VecTy->getVectorNumElements(); in encodeVecTypeHint()
|