Home
last modified time | relevance | path

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

1234

/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/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()
DVerifier.cpp1730 Type *EltTy = Ty; in PerformTypeCheck() local
1733 EltTy = VTy->getElementType(); in PerformTypeCheck()
1755 IntegerType *IEltTy = dyn_cast<IntegerType>(EltTy); in PerformTypeCheck()
1792 if (!EltTy->isIntegerTy()) { in PerformTypeCheck()
1798 unsigned GotBits = cast<IntegerType>(EltTy)->getBitWidth(); in PerformTypeCheck()
1801 if (EltTy != Ty) in PerformTypeCheck()
1817 if (!EltTy->isFloatingPointTy()) { in PerformTypeCheck()
1825 if (EltTy != Ty) in PerformTypeCheck()
1828 Suffix += EVT::getEVT(EltTy).getEVTString(); in PerformTypeCheck()
1835 Suffix += ".v" + utostr(NumElts) + EVT::getEVT(EltTy).getEVTString(); in PerformTypeCheck()
[all …]
/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/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-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/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()
DCGCall.cpp790 QualType EltTy; member
793 ConstantArrayExpansion(QualType EltTy, uint64_t NumElts) in ConstantArrayExpansion()
794 : TypeExpansion(TEK_ConstantArray), EltTy(EltTy), NumElts(NumElts) {} in ConstantArrayExpansion()
815 QualType EltTy; member
817 ComplexExpansion(QualType EltTy) : TypeExpansion(TEK_Complex), EltTy(EltTy) {} in ComplexExpansion()
892 return CAExp->NumElts * getExpansionSize(CAExp->EltTy, Context); in getExpansionSize()
914 getExpandedTypes(CAExp->EltTy, TI); in getExpandedTypes()
922 llvm::Type *EltTy = ConvertType(CExp->EltTy); in getExpandedTypes() local
923 *TI++ = EltTy; in getExpandedTypes()
924 *TI++ = EltTy; in getExpandedTypes()
[all …]
/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/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 …]
/external/swiftshader/third_party/LLVM/lib/Linker/
DLinkModules.cpp562 Type *EltTy = DstTy->getElementType(); in linkAppendingVarProto() local
565 if (EltTy != SrcTy->getElementType()) in linkAppendingVarProto()
583 ArrayType *NewType = ArrayType::get(EltTy, NewSize); in linkAppendingVarProto()
768 Type *EltTy = DstAT->getElementType(); in linkAppendingVarInit() local
769 Elements.append(DstAT->getNumElements(), Constant::getNullValue(EltTy)); in linkAppendingVarInit()
779 Type *EltTy = SrcAT->getElementType(); in linkAppendingVarInit() local
780 Elements.append(SrcAT->getNumElements(), Constant::getNullValue(EltTy)); in linkAppendingVarInit()
/external/llvm/lib/TableGen/
DTGParser.cpp1349 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/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp61 typedef std::pair<BasicBlock*, unsigned> EltTy; typedef
62 static inline EltTy getEmptyKey() { in getEmptyKey()
63 return EltTy(reinterpret_cast<BasicBlock*>(-1), ~0U); in getEmptyKey()
65 static inline EltTy getTombstoneKey() { in getTombstoneKey()
66 return EltTy(reinterpret_cast<BasicBlock*>(-2), 0U); in getTombstoneKey()
71 static bool isEqual(const EltTy &LHS, const EltTy &RHS) { in isEqual()
/external/llvm/include/llvm/CodeGen/
DValueTypes.h83 MVT EltTy = getSimpleVT().getVectorElementType(); in changeVectorElementTypeToInteger() local
84 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp730 Type *EltTy = Src0->getType()->getPointerElementType(); in handleAlloca() local
731 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in handleAlloca()
746 Type *EltTy = V->getType()->getPointerElementType(); in handleAlloca() local
747 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in handleAlloca()
/external/llvm/lib/Linker/
DIRMover.cpp747 Type *EltTy = cast<ArrayType>(TypeMap.get(SrcGV->getValueType())) in linkAppendingVarProto() local
758 if (cast<StructType>(EltTy)->getNumElements() == 3) in linkAppendingVarProto()
766 auto &ST = *cast<StructType>(EltTy); in linkAppendingVarProto()
768 EltTy = StructType::get(SrcGV->getContext(), Tys, false); in linkAppendingVarProto()
783 if (EltTy != DstTy->getElementType()) in linkAppendingVarProto()
821 ArrayType *NewType = ArrayType::get(EltTy, NewSize); in linkAppendingVarProto()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp826 Type *EltTy = cast<VectorType>(V->getType())->getElementType(); in SimplifyDemandedVectorElts() local
827 Constant *Undef = UndefValue::get(EltTy); in SimplifyDemandedVectorElts()
855 Type *EltTy = cast<VectorType>(V->getType())->getElementType(); in SimplifyDemandedVectorElts() local
856 Constant *Zero = Constant::getNullValue(EltTy); in SimplifyDemandedVectorElts()
857 Constant *Undef = UndefValue::get(EltTy); in SimplifyDemandedVectorElts()

1234