Searched refs:EltTy (Results 1 - 25 of 51) sorted by relevance

123

/external/llvm/include/llvm/ADT/
H A 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;
89 if (RHS.Val.template is<EltTy>()) {
98 RHS.Val = (EltTy)nullptr;
106 explicit TinyPtrVector(ArrayRef<EltTy> Elts)
111 operator ArrayRef<EltTy>() cons
[all...]
/external/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp32 StructType *EltTy; local
37 EltTy = cast<StructType>(ATy->getElementType());
47 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy),
56 if (EltTy->getNumElements() >= 3)
59 ConstantStruct::get(EltTy, makeArrayRef(CSVals, EltTy->getNumElements()));
64 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size());
/external/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp524 EVT EltTy = N->getValueType(0).getVectorElementType(); local
529 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) &&
530 ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
534 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy);
600 EVT EltTy = N->getValueType(0).getVectorElementType(); local
605 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) &&
606 ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
610 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy);
631 EVT EltTy = N->getValueType(0).getVectorElementType(); local
636 if (selectVSplat(N.getNode(), ImmValue, EltTy
665 EVT EltTy = N->getValueType(0).getVectorElementType(); local
687 EVT EltTy = N->getValueType(0).getVectorElementType(); local
[all...]
/external/llvm/include/llvm/IR/
H A DDerivedTypes.h377 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); local
378 return VectorType::get(EltTy, VTy->getNumElements());
387 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); local
388 return VectorType::get(EltTy, VTy->getNumElements());
399 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); local
400 return VectorType::get(EltTy, VTy->getNumElements());
/external/clang/lib/CodeGen/
H A DCodeGenTypes.cpp489 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); local
490 ResultType = llvm::StructType::get(EltTy, EltTy, nullptr);
538 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); local
542 if (!EltTy->isSized()) {
544 EltTy = llvm::Type::getInt8Ty(getLLVMContext());
547 ResultType = llvm::ArrayType::get(EltTy, A->getSize().getZExtValue());
H A DCGCall.cpp620 QualType EltTy; member in struct:__anon1096::ConstantArrayExpansion
623 ConstantArrayExpansion(QualType EltTy, uint64_t NumElts) argument
624 : TypeExpansion(TEK_ConstantArray), EltTy(EltTy), NumElts(NumElts) {}
644 QualType EltTy; member in struct:__anon1096::ComplexExpansion
646 ComplexExpansion(QualType EltTy) : TypeExpansion(TEK_Complex), EltTy(EltTy) {} argument
721 return CAExp->NumElts * getExpansionSize(CAExp->EltTy, Context);
743 getExpandedTypes(CAExp->EltTy, T
751 llvm::Type *EltTy = ConvertType(CExp->EltTy); local
[all...]
H A DCGExprComplex.cpp366 llvm::Type *EltTy = local
368 llvm::Value *U = llvm::UndefValue::get(EltTy);
1027 llvm::Type *EltTy = local
1029 llvm::Value *U = llvm::UndefValue::get(EltTy);
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp923 Type *EltTy = VTy->getElementType();
924 if (SV->getType() != EltTy)
925 SV = Builder.CreateBitCast(SV, EltTy);
926 uint64_t EltSize = DL.getTypeAllocSizeInBits(EltTy);
1760 /// return true with NumElts and EltTy set to the number of elements and the
1763 Type *&EltTy) {
1766 EltTy = (NumElts == 0 ? nullptr : AT->getElementType());
1771 EltTy = (NumElts == 0 ? nullptr : ST->getContainedType(0));
1773 if (ST->getContainedType(n) != EltTy)
1847 Type *EltTy; local
1762 isHomogeneousAggregate(Type *T, unsigned &NumElts, Type *&EltTy) argument
2252 Type *EltTy = cast<SequentialType>(OtherTy)->getElementType(); local
2265 Type *EltTy = cast<PointerType>(EltPtr->getType())->getElementType(); local
[all...]
/external/llvm/lib/CodeGen/
H A DAnalysis.cpp61 Type *EltTy = ATy->getElementType(); local
64 unsigned EltLinearOffset = ComputeLinearIndex(EltTy, nullptr, nullptr, 0);
70 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex);
103 Type *EltTy = ATy->getElementType(); local
104 uint64_t EltSize = DL.getTypeAllocSize(EltTy);
106 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, Offsets,
H A DTargetLoweringBase.cpp1039 MVT EltTy = VT.getVectorElementType(); local
1052 while (NumElts > 1 && !TLI->isTypeLegal(MVT::getVectorVT(EltTy, NumElts))) {
1059 MVT NewVT = MVT::getVectorVT(EltTy, NumElts);
1061 NewVT = EltTy;
1408 EVT EltTy = VT.getVectorElementType(); local
1422 EVT::getVectorVT(Context, EltTy, NumElts))) {
1429 EVT NewVT = EVT::getVectorVT(Context, EltTy, NumElts);
1431 NewVT = EltTy;
/external/llvm/include/llvm/CodeGen/
H A DValueTypes.h83 MVT EltTy = getSimpleVT().getVectorElementType();
84 unsigned BitWidth = EltTy.getSizeInBits();
/external/llvm/lib/IR/
H A DType.cpp731 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { argument
732 assert(EltTy && "Can't get a pointer to <null> type!");
733 assert(isValidElementType(EltTy) && "Invalid type for pointer element!");
735 LLVMContextImpl *CImpl = EltTy->getContext().pImpl;
738 PointerType *&Entry = AddressSpace == 0 ? CImpl->PointerTypes[EltTy]
739 : CImpl->ASPointerTypes[std::make_pair(EltTy, AddressSpace)];
742 Entry = new (CImpl->TypeAllocator) PointerType(EltTy, AddressSpace);
H A DFunction.cpp808 Type *EltTy = DecodeFixedType(Infos, Tys, Context); local
811 return VectorType::get(EltTy, VTy->getNumElements());
824 Type *EltTy = VTy->getVectorElementType(); local
825 return VectorType::get(PointerType::getUnqual(EltTy),
H A DAutoUpgrade.cpp480 Type *EltTy = VecTy->getVectorElementType(); local
483 EltTy->getPointerTo());
484 Value *Load = Builder.CreateLoad(EltTy, Cast);
/external/llvm/lib/TableGen/
H A DTGParser.cpp1354 RecTy *EltTy = nullptr; local
1361 if (EltTy) {
1362 EltTy = resolveTypes(EltTy, TArg->getType());
1363 if (!EltTy) {
1368 EltTy = TArg->getType();
1373 if (EltTy) {
1375 if (!EltTy->typeIsConvertibleTo(GivenEltTy)) {
1380 EltTy = GivenEltTy;
1383 if (!EltTy) {
1638 ParseValueList(Record *CurRec, Record *ArgsRec, RecTy *EltTy) argument
[all...]
H A DTGParser.h175 RecTy *EltTy = nullptr);
H A DRecord.cpp470 RecTy *EltTy) {
472 ID.AddPointer(EltTy);
478 ListInit *ListInit::get(ArrayRef<Init *> Range, RecTy *EltTy) { argument
483 ProfileListInit(ID, Range, EltTy);
489 ListInit *I = new ListInit(Range, EltTy);
496 RecTy *EltTy = cast<ListRecTy>(getType())->getElementType(); local
498 ProfileListInit(ID, Values, EltTy);
468 ProfileListInit(FoldingSetNodeID &ID, ArrayRef<Init *> Range, RecTy *EltTy) argument
/external/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp363 Type *EltTy = V->getType()->getPointerElementType(); local
364 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS);
/external/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp297 for (const auto *EltTy : STy->elements()) {
298 if (!EltTy->isSingleValueType()) {
319 for (const auto *EltTy : STy->elements()) {
320 if (EltTy == PtrArg->getType()) {
/external/llvm/lib/Linker/
H A DIRMover.cpp850 Type *EltTy = cast<ArrayType>(TypeMap.get(SrcGV->getType()->getElementType())) local
857 if (cast<StructType>(EltTy)->getNumElements() == 3)
865 auto &ST = *cast<StructType>(EltTy);
867 EltTy = StructType::get(SrcGV->getContext(), Tys, false);
881 if (EltTy != DstTy->getElementType()) {
935 ArrayType *NewType = ArrayType::get(EltTy, NewSize);
961 ConstantStruct::get(cast<StructType>(EltTy), E1, E2, Null, nullptr);
/external/clang/lib/AST/
H A DExprConstant.cpp267 void addComplexUnchecked(QualType EltTy, bool Imag) { argument
274 MostDerivedType = EltTy;
1065 void addComplex(EvalInfo &Info, const Expr *E, QualType EltTy, bool Imag) { argument
1067 Designator.addComplexUnchecked(EltTy, Imag);
1444 QualType EltTy = Type->castAsArrayTypeUnsafe()->getElementType(); local
1446 if (!CheckConstantExpression(Info, DiagLoc, EltTy,
1452 return CheckConstantExpression(Info, DiagLoc, EltTy,
1668 QualType EltTy = VecTy->castAs<VectorType>()->getElementType(); local
1669 unsigned EltSize = Info.Ctx.getTypeSize(EltTy);
1986 /// \param EltTy
1988 HandleLValueArrayAdjustment(EvalInfo &Info, const Expr *E, LValue &LVal, QualType EltTy, int64_t Adjustment) argument
2006 HandleLValueComplexElement(EvalInfo &Info, const Expr *E, LValue &LVal, QualType EltTy, bool Imag) argument
5734 QualType EltTy = VT->getElementType(); local
5780 QualType EltTy = VT->getElementType(); local
[all...]
/external/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4803 MVT EltTy = VT.getVectorElementType().getSimpleVT(); local
4804 MVT WideTy = MVT::getVectorVT(EltTy, 2 * NarrowSize);
4823 MVT EltTy = VT.getVectorElementType().getSimpleVT(); local
4824 MVT NarrowTy = MVT::getVectorVT(EltTy, WideSize / 2);
5361 EVT EltTy = VT.getVectorElementType(); local
5363 if (EltTy == MVT::i8)
5365 else if (EltTy == MVT::i16 || EltTy == MVT::f16)
5367 else if (EltTy == MVT::i32 || EltTy
5961 EVT EltTy= VT.getVectorElementType(); local
6269 EVT EltTy = VT.getVectorElementType(); local
7100 Type *EltTy = VecTy->getVectorElementType(); local
[all...]
/external/clang/include/clang/AST/
H A DASTContext.h1120 QualType getVariableArrayType(QualType EltTy, Expr *NumElts,
1130 QualType getDependentSizedArrayType(QualType EltTy, Expr *NumElts,
1137 QualType getIncompleteArrayType(QualType EltTy,
1143 QualType getConstantArrayType(QualType EltTy, const llvm::APInt &ArySize,
/external/clang/lib/Sema/
H A DSemaDecl.cpp13017 QualType EltTy = Context.getBaseElementType(T); local
13018 if (!EltTy->isDependentType()) {
13019 if (RequireCompleteType(Loc, EltTy, diag::err_field_incomplete)) {
13025 EltTy->isIncompleteType(&Def);
13125 if (const RecordType *RT = EltTy->getAs<RecordType>()) {
13141 if (EltTy->isReferenceType()) {
13145 << NewFD->getDeclName() << EltTy;
13181 QualType EltTy = Context.getBaseElementType(FD->getType());
13182 if (const RecordType *RT = EltTy->getAs<RecordType>()) {
13858 QualType EltTy; local
[all...]
/external/llvm/include/llvm/TableGen/
H A DRecord.h591 explicit ListInit(ArrayRef<Init *> Range, RecTy *EltTy) argument
592 : TypedInit(IK_ListInit, ListRecTy::get(EltTy)),
602 static ListInit *get(ArrayRef<Init *> Range, RecTy *EltTy);

Completed in 1272 milliseconds

123