/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 29 template <typename EltTy> 32 using VecTy = SmallVector<EltTy, 4>; 38 using PtrUnion = PointerUnion<EltTy, VecTy *>; 66 if (Val.template is<EltTy>()) { 75 if (RHS.Val.template is<EltTy>()) { 85 RHS.Val = (EltTy)nullptr; in TinyPtrVector() 100 if (RHS.Val.template is<EltTy>()) { 103 RHS.Val = EltTy(); 110 RHS.Val = EltTy(); 114 TinyPtrVector(std::initializer_list<EltTy> IL) in TinyPtrVector() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 25 template <typename EltTy> 28 typedef llvm::SmallVector<EltTy, 4> VecTy; 30 typedef llvm::PointerUnion<EltTy, VecTy *> PtrUnion; 56 if (Val.template is<EltTy>()) { 65 if (RHS.Val.template is<EltTy>()) { 75 RHS.Val = (EltTy)nullptr; in TinyPtrVector() 89 if (RHS.Val.template is<EltTy>()) { 98 RHS.Val = (EltTy)nullptr; 106 explicit TinyPtrVector(ArrayRef<EltTy> Elts) in TinyPtrVector() 113 TinyPtrVector(size_t Count, EltTy Value) in TinyPtrVector() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | ModuleUtils.cpp | 31 StructType *EltTy; in appendToGlobalArray() local 37 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray() 40 EltTy = OldEltTy; in appendToGlobalArray() 46 if (EltTy != OldEltTy) in appendToGlobalArray() 48 EltTy, Ctor->getAggregateElement((unsigned)0), in appendToGlobalArray() 57 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray() 66 if (EltTy->getNumElements() >= 3) in appendToGlobalArray() 70 ConstantStruct::get(EltTy, makeArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray() 75 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToGlobalArray()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | ScalarizeMaskedMemIntrin.cpp | 136 Type *EltTy = VecType->getElementType(); in scalarizeMaskedLoad() local 154 AlignVal = MinAlign(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedLoad() 157 EltTy->getPointerTo(Ptr->getType()->getPointerAddressSpace()); in scalarizeMaskedLoad() 168 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() 169 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AlignVal); in scalarizeMaskedLoad() 212 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() 213 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AlignVal); in scalarizeMaskedLoad() 274 Type *EltTy = VecType->getElementType(); in scalarizeMaskedStore() local 290 AlignVal = MinAlign(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedStore() 293 EltTy->getPointerTo(Ptr->getType()->getPointerAddressSpace()); in scalarizeMaskedStore() [all …]
|
D | Analysis.cpp | 58 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() local 61 unsigned EltLinearOffset = ComputeLinearIndex(EltTy, nullptr, nullptr, 0); in ComputeLinearIndex() 67 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex() 101 Type *EltTy = ATy->getElementType(); in ComputeValueVTs() local 102 uint64_t EltSize = DL.getTypeAllocSize(EltTy); in ComputeValueVTs() 104 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, MemVTs, Offsets, in ComputeValueVTs() 141 Type *EltTy = ATy->getElementType(); in computeValueLLTs() local 142 uint64_t EltSize = DL.getTypeAllocSize(EltTy); in computeValueLLTs() 144 computeValueLLTs(DL, *EltTy, ValueTys, Offsets, in computeValueLLTs()
|
/external/llvm/lib/Target/Mips/ |
D | MipsSEISelDAGToDAG.cpp | 540 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local 545 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatCommon() 546 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon() 550 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy); in selectVSplatCommon() 616 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local 621 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2() 622 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2() 626 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2() 647 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local 652 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatMaskL() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPURewriteOutArguments.cpp | 400 Type *EltTy = Arg->getType()->getPointerElementType(); in runOnFunction() local 401 if (Val->getType() != EltTy) { in runOnFunction() 402 Type *EffectiveEltTy = EltTy; in runOnFunction() 403 if (StructType *CT = dyn_cast<StructType>(EltTy)) { in runOnFunction() 418 if (EltTy != EffectiveEltTy) in runOnFunction() 419 Val = B.CreateInsertValue(UndefValue::get(EltTy), Val, 0); in runOnFunction() 455 auto *EltTy = ArgType->getElementType(); in runOnFunction() local 458 Align = DL->getABITypeAlignment(EltTy); in runOnFunction()
|
D | AMDGPULegalizerInfo.cpp | 46 const LLT EltTy = Ty.getScalarType(); in isMultiple32() local 47 return Ty.getSizeInBits() <= MaxSize && EltTy.getSizeInBits() % 32 == 0; in isMultiple32() 70 const LLT EltTy = Ty.getScalarType(); in isWideVec16() local 71 return EltTy.getSizeInBits() == 16 && Ty.getNumElements() > 2; in isWideVec16() 78 const LLT EltTy = Ty.getElementType(); in oneMoreElement() local 79 return std::make_pair(TypeIdx, LLT::vector(Ty.getNumElements() + 1, EltTy)); in oneMoreElement() 86 const LLT EltTy = Ty.getElementType(); in fewerEltsToSize64Vector() local 90 return std::make_pair(TypeIdx, LLT::scalarOrVector(NewNumElts, EltTy)); in fewerEltsToSize64Vector() 100 const LLT EltTy = Ty.getElementType(); in moreEltsToNext32Bit() local 102 const int EltSize = EltTy.getSizeInBits(); in moreEltsToNext32Bit() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 471 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local 472 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger() 479 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() local 480 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); in getExtendedElementVectorType() 487 Type *EltTy; in getTruncatedElementVectorType() local 491 EltTy = Type::getFloatTy(VTy->getContext()); in getTruncatedElementVectorType() 494 EltTy = Type::getHalfTy(VTy->getContext()); in getTruncatedElementVectorType() 503 EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() 505 return VectorType::get(EltTy, VTy->getElementCount()); in getTruncatedElementVectorType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsSEISelDAGToDAG.cpp | 554 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local 559 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatCommon() 560 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon() 564 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy); in selectVSplatCommon() 630 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local 635 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2() 636 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2() 640 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2() 661 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local 666 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatMaskL() [all …]
|
/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 382 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local 383 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 390 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() local 391 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 400 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() local 401 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | DerivedTypes.h | 385 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local 386 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 393 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() local 394 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 403 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() local 404 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64LegalizerInfo.cpp | 72 LLT EltTy = Query.Types[0].getElementType(); in AArch64LegalizerInfo() local 73 if (EltTy == s64) in AArch64LegalizerInfo() 75 return std::make_pair(0, EltTy); in AArch64LegalizerInfo() 243 const LLT EltTy = ValTy.getElementType(); in AArch64LegalizerInfo() local 244 return EltTy.isPointer() && EltTy.getAddressSpace() == 0; in AArch64LegalizerInfo() 473 const LLT &EltTy = Ty.getElementType(); in AArch64LegalizerInfo() local 474 if (EltTy.getSizeInBits() < 8 || EltTy.getSizeInBits() > 64) in AArch64LegalizerInfo() 476 if (!isPowerOf2_32(EltTy.getSizeInBits())) in AArch64LegalizerInfo() 544 const LLT &EltTy = Query.Types[1].getElementType(); in AArch64LegalizerInfo() local 545 return Query.Types[0] != EltTy; in AArch64LegalizerInfo()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LowerMemIntrinsics.cpp | 295 Type *EltTy = cast<PointerType>(SrcAddr->getType())->getElementType(); in createMemMoveLoop() local 335 EltTy, LoopBuilder.CreateInBoundsGEP(EltTy, SrcAddr, IndexPtr), in createMemMoveLoop() 338 Element, LoopBuilder.CreateInBoundsGEP(EltTy, DstAddr, IndexPtr)); in createMemMoveLoop() 353 EltTy, FwdLoopBuilder.CreateInBoundsGEP(EltTy, SrcAddr, FwdCopyPhi), in createMemMoveLoop() 356 FwdElement, FwdLoopBuilder.CreateInBoundsGEP(EltTy, DstAddr, FwdCopyPhi)); in createMemMoveLoop()
|
D | ModuleUtils.cpp | 31 StructType *EltTy = StructType::get( in appendToGlobalArray() local 50 ConstantStruct::get(EltTy, makeArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray() 55 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToGlobalArray()
|
/external/clang/lib/CodeGen/ |
D | CodeGenTypes.cpp | 492 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); in ConvertType() local 493 ResultType = llvm::StructType::get(EltTy, EltTy, nullptr); in ConvertType() 541 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); in ConvertType() local 545 if (!EltTy->isSized()) { in ConvertType() 547 EltTy = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType() 550 ResultType = llvm::ArrayType::get(EltTy, A->getSize().getZExtValue()); in ConvertType()
|
/external/llvm/lib/IR/ |
D | Type.cpp | 659 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get() argument 660 assert(EltTy && "Can't get a pointer to <null> type!"); in get() 661 assert(isValidElementType(EltTy) && "Invalid type for pointer element!"); in get() 663 LLVMContextImpl *CImpl = EltTy->getContext().pImpl; in get() 666 PointerType *&Entry = AddressSpace == 0 ? CImpl->PointerTypes[EltTy] in get() 667 : CImpl->ASPointerTypes[std::make_pair(EltTy, AddressSpace)]; in get() 670 Entry = new (CImpl->TypeAllocator) PointerType(EltTy, AddressSpace); in get()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Type.cpp | 637 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get() argument 638 assert(EltTy && "Can't get a pointer to <null> type!"); in get() 639 assert(isValidElementType(EltTy) && "Invalid type for pointer element!"); in get() 641 LLVMContextImpl *CImpl = EltTy->getContext().pImpl; in get() 644 PointerType *&Entry = AddressSpace == 0 ? CImpl->PointerTypes[EltTy] in get() 645 : CImpl->ASPointerTypes[std::make_pair(EltTy, AddressSpace)]; in get() 648 Entry = new (CImpl->Alloc) PointerType(EltTy, AddressSpace); in get()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/ |
D | BPFAbstractMemberAccess.cpp | 551 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo() local 553 (EltTy->getSizeInBits() >> 3); in GetFieldInfo() 570 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo() local 571 return calcArraySize(CTy, 1) * (EltTy->getSizeInBits() >> 3); in GetFieldInfo() 624 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo() local 625 SizeInBits = calcArraySize(CTy, 1) * EltTy->getSizeInBits(); in GetFieldInfo() 655 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo() local 656 SizeInBits = calcArraySize(CTy, 1) * EltTy->getSizeInBits(); in GetFieldInfo()
|
/external/llvm/lib/CodeGen/ |
D | Analysis.cpp | 60 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() local 63 unsigned EltLinearOffset = ComputeLinearIndex(EltTy, nullptr, nullptr, 0); in ComputeLinearIndex() 69 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex() 102 Type *EltTy = ATy->getElementType(); in ComputeValueVTs() local 103 uint64_t EltSize = DL.getTypeAllocSize(EltTy); in ComputeValueVTs() 105 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, Offsets, in ComputeValueVTs()
|
/external/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 47 Type *EltTy = MaskTy->getVectorElementType(); in DecodePSHUFBMask() local 48 if (!EltTy->isIntegerTy()) in DecodePSHUFBMask() 53 unsigned BitWidth = cast<IntegerType>(EltTy)->getBitWidth(); in DecodePSHUFBMask()
|
/external/llvm/lib/TableGen/ |
D | TGParser.cpp | 1349 RecTy *EltTy = nullptr; in ParseSimpleValue() local 1356 if (EltTy) { in ParseSimpleValue() 1357 EltTy = resolveTypes(EltTy, TArg->getType()); in ParseSimpleValue() 1358 if (!EltTy) { in ParseSimpleValue() 1363 EltTy = TArg->getType(); in ParseSimpleValue() 1368 if (EltTy) { in ParseSimpleValue() 1370 if (!EltTy->typeIsConvertibleTo(GivenEltTy)) { in ParseSimpleValue() 1375 EltTy = GivenEltTy; in ParseSimpleValue() 1378 if (!EltTy) { in ParseSimpleValue() 1387 if (!EltTy->typeIsConvertibleTo(GivenListTy->getElementType())) { in ParseSimpleValue() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/ |
D | TGParser.cpp | 465 if (!I->getType()->typeIsA(Defset->EltTy)) { in addDefOne() 2022 RecTy *EltTy = nullptr; in ParseSimpleValue() local 2026 if (EltTy) { in ParseSimpleValue() 2027 EltTy = resolveTypes(EltTy, TArg->getType()); in ParseSimpleValue() 2028 if (!EltTy) { in ParseSimpleValue() 2033 EltTy = TArg->getType(); in ParseSimpleValue() 2039 if (EltTy) { in ParseSimpleValue() 2041 if (!EltTy->typeIsConvertibleTo(GivenEltTy)) { in ParseSimpleValue() 2046 EltTy = GivenEltTy; in ParseSimpleValue() 2049 if (!EltTy) { in ParseSimpleValue() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | LegalizerInfo.h | 858 LegalizeRuleSet &clampMinNumElements(unsigned TypeIdx, const LLT &EltTy, in clampMinNumElements() argument 866 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMinNumElements() 876 LegalizeRuleSet &clampMaxNumElements(unsigned TypeIdx, const LLT &EltTy, in clampMaxNumElements() argument 884 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMaxNumElements() 904 const LLT &EltTy = MinTy.getElementType(); in clampNumElements() local 905 return clampMinNumElements(TypeIdx, EltTy, MinTy.getNumElements()) in clampNumElements() 906 .clampMaxNumElements(TypeIdx, EltTy, MaxTy.getNumElements()); in clampNumElements()
|
/external/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 83 MVT EltTy = getSimpleVT().getVectorElementType(); in changeVectorElementTypeToInteger() local 84 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger()
|