/external/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 25 template <typename EltTy> 28 typedef llvm::SmallVector<EltTy, 4> VecTy; 31 llvm::PointerUnion<EltTy, VecTy*> Val; 53 if (Val.template is<EltTy>()) { 62 if (RHS.Val.template is<EltTy>()) { 72 RHS.Val = (EltTy)nullptr; in TinyPtrVector() 86 if (RHS.Val.template is<EltTy>()) { 95 RHS.Val = (EltTy)nullptr; 100 operator ArrayRef<EltTy>() const { 102 return ArrayRef<EltTy>(); [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | ModuleUtils.cpp | 31 StructType *EltTy; in appendToGlobalArray() local 36 EltTy = cast<StructType>(ATy->getElementType()); in appendToGlobalArray() 46 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray() 55 if (EltTy->getNumElements() >= 3) in appendToGlobalArray() 58 ConstantStruct::get(EltTy, makeArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray() 63 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToGlobalArray()
|
/external/llvm/lib/Target/Mips/ |
D | MipsSEISelDAGToDAG.cpp | 453 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local 459 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon() 462 Imm = CurDAG->getTargetConstant(ImmValue, EltTy); in selectVSplatCommon() 528 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local 534 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2() 538 Imm = CurDAG->getTargetConstant(Log2, EltTy); in selectVSplatUimmPow2() 559 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local 565 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatMaskL() 571 Imm = CurDAG->getTargetConstant(ImmValue.countPopulation(), EltTy); in selectVSplatMaskL() 592 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskR() local [all …]
|
/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 377 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/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 917 Type *EltTy = VTy->getElementType(); in ConvertScalar_InsertValue() local 918 if (SV->getType() != EltTy) in ConvertScalar_InsertValue() 919 SV = Builder.CreateBitCast(SV, EltTy); in ConvertScalar_InsertValue() 920 uint64_t EltSize = DL.getTypeAllocSizeInBits(EltTy); in ConvertScalar_InsertValue() 1746 Type *&EltTy) { in isHomogeneousAggregate() argument 1749 EltTy = (NumElts == 0 ? nullptr : AT->getElementType()); in isHomogeneousAggregate() 1754 EltTy = (NumElts == 0 ? nullptr : ST->getContainedType(0)); in isHomogeneousAggregate() 1756 if (ST->getContainedType(n) != EltTy) in isHomogeneousAggregate() 1828 Type *EltTy; in TypeHasComponent() local 1833 EltTy = ST->getContainedType(EltIdx); in TypeHasComponent() [all …]
|
/external/clang/lib/CodeGen/ |
D | CodeGenTypes.cpp | 401 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); in ConvertType() local 402 ResultType = llvm::StructType::get(EltTy, EltTy, NULL); in ConvertType() 450 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); in ConvertType() local 454 if (!EltTy->isSized()) { in ConvertType() 456 EltTy = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType() 459 ResultType = llvm::ArrayType::get(EltTy, A->getSize().getZExtValue()); in ConvertType()
|
D | CGCall.cpp | 590 llvm::Type *EltTy = ConvertType(CT->getElementType()); in GetExpandedTypes() local 591 expandedTypes.push_back(EltTy); in GetExpandedTypes() 592 expandedTypes.push_back(EltTy); in GetExpandedTypes() 605 QualType EltTy = AT->getElementType(); in ExpandTypeFromArgs() local 608 LValue LV = MakeAddrLValue(EltAddr, EltTy); in ExpandTypeFromArgs() 609 AI = ExpandTypeFromArgs(EltTy, LV, AI); in ExpandTypeFromArgs() 643 QualType EltTy = CT->getElementType(); in ExpandTypeFromArgs() local 645 EmitStoreThroughLValue(RValue::get(AI++), MakeAddrLValue(RealAddr, EltTy)); in ExpandTypeFromArgs() 647 EmitStoreThroughLValue(RValue::get(AI++), MakeAddrLValue(ImagAddr, EltTy)); in ExpandTypeFromArgs() 2528 QualType EltTy = AT->getElementType(); in ExpandTypeToArgs() local [all …]
|
D | CGExprComplex.cpp | 358 llvm::Type *EltTy = in VisitExpr() local 360 llvm::Value *U = llvm::UndefValue::get(EltTy); in VisitExpr() 821 llvm::Type *EltTy = in VisitVAArgExpr() local 823 llvm::Value *U = llvm::UndefValue::get(EltTy); in VisitVAArgExpr()
|
D | TargetInfo.cpp | 1933 llvm::Type *EltTy = VT->getElementType(); in GetByteVectorType() local 1936 (EltTy->isFloatTy() || EltTy->isDoubleTy() || in GetByteVectorType() 1937 EltTy->isIntegerTy(8) || EltTy->isIntegerTy(16) || in GetByteVectorType() 1938 EltTy->isIntegerTy(32) || EltTy->isIntegerTy(64) || in GetByteVectorType() 1939 EltTy->isIntegerTy(128))) in GetByteVectorType() 2050 llvm::Type *EltTy = ATy->getElementType(); in ContainsFloatAtOffset() local 2051 unsigned EltSize = TD.getTypeAllocSize(EltTy); in ContainsFloatAtOffset() 2053 return ContainsFloatAtOffset(EltTy, IROffset, TD); in ContainsFloatAtOffset() 2139 llvm::Type *EltTy = ATy->getElementType(); in GetINTEGERTypeAtOffset() local 2140 unsigned EltSize = getDataLayout().getTypeAllocSize(EltTy); in GetINTEGERTypeAtOffset() [all …]
|
D | CGDebugInfo.cpp | 675 llvm::DIType EltTy, DescTy; in CreateType() local 688 EltTy = DBuilder.createStructType(Unit, "__block_descriptor", in CreateType() 695 DescTy = DBuilder.createPointerType(EltTy, Size); in CreateType() 718 EltTy = DBuilder.createStructType(Unit, "__block_literal_generic", in CreateType() 722 BlockLiteralGeneric = DBuilder.createPointerType(EltTy, Size); in CreateType() 1851 QualType EltTy(Ty, 0); in CreateType() local 1852 while ((Ty = dyn_cast<ArrayType>(EltTy))) { in CreateType() 1866 EltTy = Ty->getElementType(); in CreateType() 1872 DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
|
/external/llvm/lib/CodeGen/ |
D | Analysis.cpp | 56 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() local 59 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex() 60 CurIndex = ComputeLinearIndex(EltTy, nullptr, nullptr, CurIndex); in ComputeLinearIndex() 92 Type *EltTy = ATy->getElementType(); in ComputeValueVTs() local 93 uint64_t EltSize = TLI.getDataLayout()->getTypeAllocSize(EltTy); in ComputeValueVTs() 95 ComputeValueVTs(TLI, EltTy, ValueVTs, Offsets, in ComputeValueVTs()
|
D | TargetLoweringBase.cpp | 873 MVT EltTy = VT.getVectorElementType(); in getVectorTypeBreakdownMVT() local 886 while (NumElts > 1 && !TLI->isTypeLegal(MVT::getVectorVT(EltTy, NumElts))) { in getVectorTypeBreakdownMVT() 893 MVT NewVT = MVT::getVectorVT(EltTy, NumElts); in getVectorTypeBreakdownMVT() 895 NewVT = EltTy; in getVectorTypeBreakdownMVT() 1225 EVT EltTy = VT.getVectorElementType(); in getVectorTypeBreakdown() local 1239 EVT::getVectorVT(Context, EltTy, NumElts))) { in getVectorTypeBreakdown() 1246 EVT NewVT = EVT::getVectorVT(Context, EltTy, NumElts); in getVectorTypeBreakdown() 1248 NewVT = EltTy; in getVectorTypeBreakdown()
|
/external/llvm/lib/IR/ |
D | Type.cpp | 727 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get() argument 728 assert(EltTy && "Can't get a pointer to <null> type!"); in get() 729 assert(isValidElementType(EltTy) && "Invalid type for pointer element!"); in get() 731 LLVMContextImpl *CImpl = EltTy->getContext().pImpl; in get() 734 PointerType *&Entry = AddressSpace == 0 ? CImpl->PointerTypes[EltTy] in get() 735 : CImpl->ASPointerTypes[std::make_pair(EltTy, AddressSpace)]; in get() 738 Entry = new (CImpl->TypeAllocator) PointerType(EltTy, AddressSpace); in get()
|
D | AutoUpgrade.cpp | 344 Type *EltTy = VecTy->getVectorElementType(); in UpgradeIntrinsicCall() local 347 EltTy->getPointerTo()); in UpgradeIntrinsicCall()
|
/external/llvm/lib/TableGen/ |
D | TGParser.cpp | 1350 RecTy *EltTy = nullptr; in ParseSimpleValue() local 1359 if (EltTy) { in ParseSimpleValue() 1360 EltTy = resolveTypes(EltTy, TArg->getType()); in ParseSimpleValue() 1361 if (!EltTy) { in ParseSimpleValue() 1366 EltTy = TArg->getType(); in ParseSimpleValue() 1371 if (EltTy) { in ParseSimpleValue() 1373 if (!EltTy->typeIsConvertibleTo(GivenEltTy)) { in ParseSimpleValue() 1378 EltTy = GivenEltTy; in ParseSimpleValue() 1381 if (!EltTy) { in ParseSimpleValue() 1390 if (!EltTy->typeIsConvertibleTo(GivenListTy->getElementType())) { in ParseSimpleValue() [all …]
|
D | TGParser.h | 177 RecTy *EltTy = nullptr);
|
D | Record.cpp | 612 RecTy *EltTy) { in ProfileListInit() argument 614 ID.AddPointer(EltTy); in ProfileListInit() 623 ListInit *ListInit::get(ArrayRef<Init *> Range, RecTy *EltTy) { in get() argument 629 ProfileListInit(ID, Range, EltTy); in get() 635 ListInit *I = new ListInit(Range, EltTy); in get() 644 RecTy *EltTy = ListType->getElementType(); in Profile() local 646 ProfileListInit(ID, Values, EltTy); in Profile()
|
/external/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 84 MVT EltTy = getSimpleVT().getVectorElementType(); in changeVectorElementTypeToInteger() local 85 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger()
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUPromoteAlloca.cpp | 332 Type *EltTy = V->getType()->getPointerElementType(); in visitAlloca() local 333 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in visitAlloca()
|
/external/clang/lib/AST/ |
D | ExprConstant.cpp | 249 void addComplexUnchecked(QualType EltTy, bool Imag) { in addComplexUnchecked() 256 MostDerivedType = EltTy; in addComplexUnchecked() 986 void addComplex(EvalInfo &Info, const Expr *E, QualType EltTy, bool Imag) { in addComplex() 988 Designator.addComplexUnchecked(EltTy, Imag); in addComplex() 1359 QualType EltTy = Type->castAsArrayTypeUnsafe()->getElementType(); in CheckConstantExpression() local 1361 if (!CheckConstantExpression(Info, DiagLoc, EltTy, in CheckConstantExpression() 1367 return CheckConstantExpression(Info, DiagLoc, EltTy, in CheckConstantExpression() 1571 QualType EltTy = VecTy->castAs<VectorType>()->getElementType(); in EvalAndBitcastToAPInt() local 1572 unsigned EltSize = Info.Ctx.getTypeSize(EltTy); in EvalAndBitcastToAPInt() 1888 LValue &LVal, QualType EltTy, in HandleLValueArrayAdjustment() argument [all …]
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 11846 QualType EltTy = Context.getBaseElementType(T); in CheckFieldDecl() local 11847 if (!EltTy->isDependentType()) { in CheckFieldDecl() 11848 if (RequireCompleteType(Loc, EltTy, diag::err_field_incomplete)) { in CheckFieldDecl() 11854 EltTy->isIncompleteType(&Def); in CheckFieldDecl() 11949 if (const RecordType *RT = EltTy->getAs<RecordType>()) { in CheckFieldDecl() 11965 if (EltTy->isReferenceType()) { in CheckFieldDecl() 11969 << NewFD->getDeclName() << EltTy; in CheckFieldDecl() 12005 QualType EltTy = Context.getBaseElementType(FD->getType()); in CheckNontrivialField() local 12006 if (const RecordType *RT = EltTy->getAs<RecordType>()) { in CheckNontrivialField() 12687 QualType EltTy; in CheckEnumConstant() local [all …]
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 1283 Type *EltTy = ATy->getElementType(); in ParseConstants() local 1285 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy)); in ParseConstants() 1288 Type *EltTy = VTy->getElementType(); in ParseConstants() local 1290 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy)); in ParseConstants() 1311 Type *EltTy = cast<SequentialType>(CurTy)->getElementType(); in ParseConstants() local 1314 if (EltTy->isIntegerTy(8)) { in ParseConstants() 1320 } else if (EltTy->isIntegerTy(16)) { in ParseConstants() 1326 } else if (EltTy->isIntegerTy(32)) { in ParseConstants() 1332 } else if (EltTy->isIntegerTy(64)) { in ParseConstants() 1338 } else if (EltTy->isFloatTy()) { in ParseConstants() [all …]
|
/external/clang/include/clang/AST/ |
D | ASTContext.h | 996 QualType getVariableArrayType(QualType EltTy, Expr *NumElts, 1006 QualType getDependentSizedArrayType(QualType EltTy, Expr *NumElts, 1013 QualType getIncompleteArrayType(QualType EltTy, 1019 QualType getConstantArrayType(QualType EltTy, const llvm::APInt &ArySize,
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 2102 Type *EltTy = nullptr; in ParseArrayVectorType() local 2103 if (ParseType(EltTy)) return true; in ParseArrayVectorType() 2114 if (!VectorType::isValidElementType(EltTy)) in ParseArrayVectorType() 2116 Result = VectorType::get(EltTy, unsigned(Size)); in ParseArrayVectorType() 2118 if (!ArrayType::isValidElementType(EltTy)) in ParseArrayVectorType() 2120 Result = ArrayType::get(EltTy, Size); in ParseArrayVectorType() 3962 Type *EltTy = nullptr; in ParseVA_Arg() local 3966 ParseType(EltTy, TypeLoc)) in ParseVA_Arg() 3969 if (!EltTy->isFirstClassType()) in ParseVA_Arg() 3972 Inst = new VAArgInst(Op, EltTy); in ParseVA_Arg()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 750 auto EltTy = SelectorType->getElementType(); in visitCallInst() local 753 EltTy->isFloatTy() in visitCallInst() 755 : (EltTy->isDoubleTy() ? 64 : EltTy->getIntegerBitWidth()); in visitCallInst()
|