Home
last modified time | relevance | path

Searched refs:EltTy (Results 1 – 25 of 125) sorted by relevance

12345

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DTinyPtrVector.h30 template <typename EltTy>
33 using VecTy = SmallVector<EltTy, 4>;
35 using PtrUnion = PointerUnion<EltTy, VecTy *>;
63 if (Val.template is<EltTy>()) {
72 if (RHS.Val.template is<EltTy>()) {
82 RHS.Val = (EltTy)nullptr; in TinyPtrVector()
97 if (RHS.Val.template is<EltTy>()) {
100 RHS.Val = (EltTy)nullptr;
107 RHS.Val = (EltTy)nullptr;
111 TinyPtrVector(std::initializer_list<EltTy> IL) in TinyPtrVector()
[all …]
/external/llvm/include/llvm/ADT/
DTinyPtrVector.h25 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/swiftshader/third_party/LLVM/include/llvm/ADT/
DTinyPtrVector.h24 template <typename EltTy>
27 typedef llvm::SmallVector<EltTy, 4> VecTy;
28 llvm::PointerUnion<EltTy, VecTy*> Val;
52 if (Val.template is<EltTy>()) in size()
57 typedef const EltTy *iterator;
62 if (Val.template is<EltTy>()) in begin()
63 return Val.template getAddrOf<EltTy>(); in begin()
72 if (Val.template is<EltTy>()) in end()
79 EltTy operator[](unsigned i) const {
81 if (EltTy V = Val.template dyn_cast<EltTy>()) {
[all …]
/external/llvm/lib/Transforms/Utils/
DModuleUtils.cpp31 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-7.0/llvm/lib/Transforms/Utils/
DModuleUtils.cpp31 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 ConstantStruct::get(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/llvm/lib/Target/Mips/
DMipsSEISelDAGToDAG.cpp540 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/lib/VMCore/
DConstantFold.cpp711 Type *EltTy = VTy->getElementType(); in ConstantFoldSelectInstruction() local
722 Constant *C1 = CP1 ? CP1->getOperand(i) : Constant::getNullValue(EltTy); in ConstantFoldSelectInstruction()
723 Constant *C2 = CP2 ? CP2->getOperand(i) : Constant::getNullValue(EltTy); in ConstantFoldSelectInstruction()
840 Type *EltTy = cast<VectorType>(C->getType())->getElementType(); in GetVectorElement() local
842 return Constant::getNullValue(EltTy); in GetVectorElement()
844 return UndefValue::get(EltTy); in GetVectorElement()
856 Type *EltTy = cast<VectorType>(V1->getType())->getElementType(); in ConstantFoldShuffleVectorInstruction() local
865 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
869 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
1277 Type* EltTy = VTy->getElementType(); in ConstantFoldBinaryInstruction() local
[all …]
DType.cpp674 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get() argument
675 assert(EltTy && "Can't get a pointer to <null> type!"); in get()
676 assert(isValidElementType(EltTy) && "Invalid type for pointer element!"); in get()
678 LLVMContextImpl *CImpl = EltTy->getContext().pImpl; in get()
681 PointerType *&Entry = AddressSpace == 0 ? CImpl->PointerTypes[EltTy] in get()
682 : CImpl->ASPointerTypes[std::make_pair(EltTy, AddressSpace)]; in get()
685 Entry = new (CImpl->TypeAllocator) PointerType(EltTy, AddressSpace); in get()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPURewriteOutArguments.cpp400 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()
/external/swiftshader/third_party/LLVM/include/llvm/
DDerivedTypes.h377 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local
378 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
387 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() local
388 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
399 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() local
400 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DAnalysis.cpp56 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() local
59 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex()
60 CurIndex = ComputeLinearIndex(EltTy, 0, 0, CurIndex); in ComputeLinearIndex()
92 Type *EltTy = ATy->getElementType(); in ComputeValueVTs() local
93 uint64_t EltSize = TLI.getTargetData()->getTypeAllocSize(EltTy); in ComputeValueVTs()
95 ComputeValueVTs(TLI, EltTy, ValueVTs, Offsets, in ComputeValueVTs()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsSEISelDAGToDAG.cpp606 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local
611 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatCommon()
612 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon()
616 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy); in selectVSplatCommon()
682 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local
687 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2()
688 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2()
692 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2()
713 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local
718 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatMaskL()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DDerivedTypes.h385 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/llvm/include/llvm/IR/
DDerivedTypes.h382 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-7.0/llvm/include/llvm/IR/
DDerivedTypes.h409 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local
410 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
417 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() local
418 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
427 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() local
428 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DScalarizeMaskedMemIntrin.cpp125 Type *EltTy = CI->getType()->getVectorElementType(); in scalarizeMaskedLoad() local
151 EltTy->getPointerTo(cast<PointerType>(Ptr->getType())->getAddressSpace()); in scalarizeMaskedLoad()
165 Builder.CreateInBoundsGEP(EltTy, FirstEltPtr, Builder.getInt32(Idx)); in scalarizeMaskedLoad()
210 Builder.CreateInBoundsGEP(EltTy, FirstEltPtr, Builder.getInt32(Idx)); in scalarizeMaskedLoad()
271 Type *EltTy = VecType->getElementType(); in scalarizeMaskedStore() local
293 EltTy->getPointerTo(cast<PointerType>(Ptr->getType())->getAddressSpace()); in scalarizeMaskedStore()
303 Builder.CreateInBoundsGEP(EltTy, FirstEltPtr, Builder.getInt32(Idx)); in scalarizeMaskedStore()
334 Builder.CreateInBoundsGEP(EltTy, FirstEltPtr, Builder.getInt32(Idx)); in scalarizeMaskedStore()
DAnalysis.cpp59 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() local
62 unsigned EltLinearOffset = ComputeLinearIndex(EltTy, nullptr, nullptr, 0); in ComputeLinearIndex()
68 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, Offsets, in ComputeValueVTs()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DType.cpp617 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get() argument
618 assert(EltTy && "Can't get a pointer to <null> type!"); in get()
619 assert(isValidElementType(EltTy) && "Invalid type for pointer element!"); in get()
621 LLVMContextImpl *CImpl = EltTy->getContext().pImpl; in get()
624 PointerType *&Entry = AddressSpace == 0 ? CImpl->PointerTypes[EltTy] in get()
625 : CImpl->ASPointerTypes[std::make_pair(EltTy, AddressSpace)]; in get()
628 Entry = new (CImpl->TypeAllocator) PointerType(EltTy, AddressSpace); in get()
/external/clang/lib/CodeGen/
DCodeGenTypes.cpp492 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/
DType.cpp659 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/lib/TableGen/
DTGParser.cpp1195 RecTy *EltTy = 0; in ParseSimpleValue() local
1204 if (EltTy != 0) { in ParseSimpleValue()
1205 EltTy = resolveTypes(EltTy, TArg->getType()); in ParseSimpleValue()
1206 if (EltTy == 0) { in ParseSimpleValue()
1211 EltTy = TArg->getType(); in ParseSimpleValue()
1216 if (EltTy != 0) { in ParseSimpleValue()
1218 if (!EltTy->typeIsConvertibleTo(GivenEltTy)) { in ParseSimpleValue()
1223 EltTy = GivenEltTy; in ParseSimpleValue()
1226 if (EltTy == 0) { in ParseSimpleValue()
1235 if (!EltTy->typeIsConvertibleTo(GivenListTy->getElementType())) { in ParseSimpleValue()
[all …]
/external/llvm/lib/CodeGen/
DAnalysis.cpp60 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/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/
DTGParser.cpp464 if (!I->getType()->typeIsA(Defset->EltTy)) { in addDefOne()
1829 RecTy *EltTy = nullptr; in ParseSimpleValue() local
1833 if (EltTy) { in ParseSimpleValue()
1834 EltTy = resolveTypes(EltTy, TArg->getType()); in ParseSimpleValue()
1835 if (!EltTy) { in ParseSimpleValue()
1840 EltTy = TArg->getType(); in ParseSimpleValue()
1846 if (EltTy) { in ParseSimpleValue()
1848 if (!EltTy->typeIsConvertibleTo(GivenEltTy)) { in ParseSimpleValue()
1853 EltTy = GivenEltTy; in ParseSimpleValue()
1856 if (!EltTy) { in ParseSimpleValue()
[all …]
/external/llvm/lib/Target/X86/
DX86ShuffleDecodeConstantPool.cpp47 Type *EltTy = MaskTy->getVectorElementType(); in DecodePSHUFBMask() local
48 if (!EltTy->isIntegerTy()) in DecodePSHUFBMask()
53 unsigned BitWidth = cast<IntegerType>(EltTy)->getBitWidth(); in DecodePSHUFBMask()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1645 Type *&EltTy) { in isHomogeneousAggregate() argument
1648 EltTy = (NumElts == 0 ? 0 : AT->getElementType()); in isHomogeneousAggregate()
1653 EltTy = (NumElts == 0 ? 0 : ST->getContainedType(0)); in isHomogeneousAggregate()
1655 if (ST->getContainedType(n) != EltTy) in isHomogeneousAggregate()
1727 Type *EltTy; in TypeHasComponent() local
1732 EltTy = ST->getContainedType(EltIdx); in TypeHasComponent()
1733 EltSize = TD->getTypeAllocSize(EltTy); in TypeHasComponent()
1736 EltTy = AT->getElementType(); in TypeHasComponent()
1737 EltSize = TD->getTypeAllocSize(EltTy); in TypeHasComponent()
1749 return TypeHasComponent(EltTy, Offset, Size); in TypeHasComponent()
[all …]

12345