Home
last modified time | relevance | path

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

12

/NextBSD/contrib/llvm/include/llvm/ADT/
HDTinyPtrVector.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()
111 operator ArrayRef<EltTy>() const {
[all …]
/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDModuleUtils.cpp32 StructType *EltTy; in appendToGlobalArray() local
37 EltTy = cast<StructType>(ATy->getElementType()); in appendToGlobalArray()
47 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray()
56 if (EltTy->getNumElements() >= 3) in appendToGlobalArray()
59 ConstantStruct::get(EltTy, makeArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray()
64 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToGlobalArray()
/NextBSD/contrib/llvm/lib/Target/Mips/
HDMipsSEISelDAGToDAG.cpp524 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local
529 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatCommon()
530 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon()
534 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy); in selectVSplatCommon()
600 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local
605 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2()
606 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2()
610 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2()
631 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local
636 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatMaskL()
[all …]
/NextBSD/contrib/llvm/include/llvm/IR/
HDDerivedTypes.h381 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local
382 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
391 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() local
392 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()
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDScalarReplAggregates.cpp922 Type *EltTy = VTy->getElementType(); in ConvertScalar_InsertValue() local
923 if (SV->getType() != EltTy) in ConvertScalar_InsertValue()
924 SV = Builder.CreateBitCast(SV, EltTy); in ConvertScalar_InsertValue()
925 uint64_t EltSize = DL.getTypeAllocSizeInBits(EltTy); in ConvertScalar_InsertValue()
1762 Type *&EltTy) { in isHomogeneousAggregate() argument
1765 EltTy = (NumElts == 0 ? nullptr : AT->getElementType()); in isHomogeneousAggregate()
1770 EltTy = (NumElts == 0 ? nullptr : ST->getContainedType(0)); in isHomogeneousAggregate()
1772 if (ST->getContainedType(n) != EltTy) in isHomogeneousAggregate()
1846 Type *EltTy; in TypeHasComponent() local
1851 EltTy = ST->getContainedType(EltIdx); in TypeHasComponent()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCodeGenTypes.cpp410 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); in ConvertType() local
411 ResultType = llvm::StructType::get(EltTy, EltTy, nullptr); in ConvertType()
459 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); in ConvertType() local
463 if (!EltTy->isSized()) { in ConvertType()
465 EltTy = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType()
468 ResultType = llvm::ArrayType::get(EltTy, A->getSize().getZExtValue()); in ConvertType()
HDCGCall.cpp589 QualType EltTy; member
592 ConstantArrayExpansion(QualType EltTy, uint64_t NumElts) in ConstantArrayExpansion()
593 : TypeExpansion(TEK_ConstantArray), EltTy(EltTy), NumElts(NumElts) {} in ConstantArrayExpansion()
613 QualType EltTy; member
615 ComplexExpansion(QualType EltTy) : TypeExpansion(TEK_Complex), EltTy(EltTy) {} in ComplexExpansion()
690 return CAExp->NumElts * getExpansionSize(CAExp->EltTy, Context); in getExpansionSize()
712 getExpandedTypes(CAExp->EltTy, TI); in getExpandedTypes()
720 llvm::Type *EltTy = ConvertType(CExp->EltTy); in getExpandedTypes() local
721 *TI++ = EltTy; in getExpandedTypes()
722 *TI++ = EltTy; in getExpandedTypes()
[all …]
HDCGExprComplex.cpp366 llvm::Type *EltTy = in VisitExpr() local
368 llvm::Value *U = llvm::UndefValue::get(EltTy); in VisitExpr()
1019 llvm::Type *EltTy = in VisitVAArgExpr() local
1021 llvm::Value *U = llvm::UndefValue::get(EltTy); in VisitVAArgExpr()
/NextBSD/contrib/llvm/lib/CodeGen/
HDAnalysis.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()
HDTargetLoweringBase.cpp1056 MVT EltTy = VT.getVectorElementType(); in getVectorTypeBreakdownMVT() local
1069 while (NumElts > 1 && !TLI->isTypeLegal(MVT::getVectorVT(EltTy, NumElts))) { in getVectorTypeBreakdownMVT()
1076 MVT NewVT = MVT::getVectorVT(EltTy, NumElts); in getVectorTypeBreakdownMVT()
1078 NewVT = EltTy; in getVectorTypeBreakdownMVT()
1431 EVT EltTy = VT.getVectorElementType(); in getVectorTypeBreakdown() local
1445 EVT::getVectorVT(Context, EltTy, NumElts))) { in getVectorTypeBreakdown()
1452 EVT NewVT = EVT::getVectorVT(Context, EltTy, NumElts); in getVectorTypeBreakdown()
1454 NewVT = EltTy; in getVectorTypeBreakdown()
/NextBSD/contrib/llvm/lib/IR/
HDType.cpp738 PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { in get() argument
739 assert(EltTy && "Can't get a pointer to <null> type!"); in get()
740 assert(isValidElementType(EltTy) && "Invalid type for pointer element!"); in get()
742 LLVMContextImpl *CImpl = EltTy->getContext().pImpl; in get()
745 PointerType *&Entry = AddressSpace == 0 ? CImpl->PointerTypes[EltTy] in get()
746 : CImpl->ASPointerTypes[std::make_pair(EltTy, AddressSpace)]; in get()
749 Entry = new (CImpl->TypeAllocator) PointerType(EltTy, AddressSpace); in get()
HDFunction.cpp796 Type *EltTy = DecodeFixedType(Infos, Tys, Context); in DecodeFixedType() local
799 return VectorType::get(EltTy, VTy->getNumElements()); in DecodeFixedType()
812 Type *EltTy = VTy->getVectorElementType(); in DecodeFixedType() local
813 return VectorType::get(PointerType::getUnqual(EltTy), in DecodeFixedType()
HDAutoUpgrade.cpp431 Type *EltTy = VecTy->getVectorElementType(); in UpgradeIntrinsicCall() local
434 EltTy->getPointerTo()); in UpgradeIntrinsicCall()
435 Value *Load = Builder.CreateLoad(EltTy, Cast); in UpgradeIntrinsicCall()
/NextBSD/contrib/llvm/lib/TableGen/
HDTGParser.cpp1354 RecTy *EltTy = nullptr; in ParseSimpleValue() local
1361 if (EltTy) { in ParseSimpleValue()
1362 EltTy = resolveTypes(EltTy, TArg->getType()); in ParseSimpleValue()
1363 if (!EltTy) { in ParseSimpleValue()
1368 EltTy = TArg->getType(); in ParseSimpleValue()
1373 if (EltTy) { in ParseSimpleValue()
1375 if (!EltTy->typeIsConvertibleTo(GivenEltTy)) { in ParseSimpleValue()
1380 EltTy = GivenEltTy; in ParseSimpleValue()
1383 if (!EltTy) { in ParseSimpleValue()
1392 if (!EltTy->typeIsConvertibleTo(GivenListTy->getElementType())) { in ParseSimpleValue()
[all …]
HDRecord.cpp470 RecTy *EltTy) { in ProfileListInit() argument
472 ID.AddPointer(EltTy); in ProfileListInit()
478 ListInit *ListInit::get(ArrayRef<Init *> Range, RecTy *EltTy) { in get() argument
483 ProfileListInit(ID, Range, EltTy); in get()
489 ListInit *I = new ListInit(Range, EltTy); in get()
496 RecTy *EltTy = cast<ListRecTy>(getType())->getElementType(); in Profile() local
498 ProfileListInit(ID, Values, EltTy); in Profile()
HDTGParser.h179 RecTy *EltTy = nullptr);
/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDValueTypes.h83 MVT EltTy = getSimpleVT().getVectorElementType(); in changeVectorElementTypeToInteger() local
84 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger()
/NextBSD/contrib/llvm/lib/Target/AMDGPU/
HDAMDGPUPromoteAlloca.cpp360 Type *EltTy = V->getType()->getPointerElementType(); in visitAlloca() local
361 PointerType *NewTy = PointerType::get(EltTy, AMDGPUAS::LOCAL_ADDRESS); in visitAlloca()
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDExprConstant.cpp250 void addComplexUnchecked(QualType EltTy, bool Imag) { in addComplexUnchecked()
257 MostDerivedType = EltTy; in addComplexUnchecked()
987 void addComplex(EvalInfo &Info, const Expr *E, QualType EltTy, bool Imag) { in addComplex()
989 Designator.addComplexUnchecked(EltTy, Imag); in addComplex()
1365 QualType EltTy = Type->castAsArrayTypeUnsafe()->getElementType(); in CheckConstantExpression() local
1367 if (!CheckConstantExpression(Info, DiagLoc, EltTy, in CheckConstantExpression()
1373 return CheckConstantExpression(Info, DiagLoc, EltTy, in CheckConstantExpression()
1588 QualType EltTy = VecTy->castAs<VectorType>()->getElementType(); in EvalAndBitcastToAPInt() local
1589 unsigned EltSize = Info.Ctx.getTypeSize(EltTy); in EvalAndBitcastToAPInt()
1905 LValue &LVal, QualType EltTy, in HandleLValueArrayAdjustment() argument
[all …]
HDASTContext.cpp2504 QualType ASTContext::getConstantArrayType(QualType EltTy, in getConstantArrayType() argument
2508 assert((EltTy->isDependentType() || in getConstantArrayType()
2509 EltTy->isIncompleteType() || EltTy->isConstantSizeType()) && in getConstantArrayType()
2516 ArySize.zextOrTrunc(Target->getPointerWidth(getTargetAddressSpace(EltTy))); in getConstantArrayType()
2519 ConstantArrayType::Profile(ID, EltTy, ArySize, ASM, IndexTypeQuals); in getConstantArrayType()
2529 if (!EltTy.isCanonical() || EltTy.hasLocalQualifiers()) { in getConstantArrayType()
2530 SplitQualType canonSplit = getCanonicalType(EltTy).split(); in getConstantArrayType()
2542 ConstantArrayType(EltTy, Canon, ArySize, ASM, IndexTypeQuals); in getConstantArrayType()
2682 QualType ASTContext::getVariableArrayType(QualType EltTy, in getVariableArrayType() argument
2692 if (!EltTy.isCanonical() || EltTy.hasLocalQualifiers()) { in getVariableArrayType()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaDecl.cpp12671 QualType EltTy = Context.getBaseElementType(T); in CheckFieldDecl() local
12672 if (!EltTy->isDependentType()) { in CheckFieldDecl()
12673 if (RequireCompleteType(Loc, EltTy, diag::err_field_incomplete)) { in CheckFieldDecl()
12679 EltTy->isIncompleteType(&Def); in CheckFieldDecl()
12779 if (const RecordType *RT = EltTy->getAs<RecordType>()) { in CheckFieldDecl()
12795 if (EltTy->isReferenceType()) { in CheckFieldDecl()
12799 << NewFD->getDeclName() << EltTy; in CheckFieldDecl()
12835 QualType EltTy = Context.getBaseElementType(FD->getType()); in CheckNontrivialField() local
12836 if (const RecordType *RT = EltTy->getAs<RecordType>()) { in CheckNontrivialField()
13514 QualType EltTy; in CheckEnumConstant() local
[all …]
/NextBSD/contrib/llvm/lib/Bitcode/Reader/
HDBitcodeReader.cpp2257 Type *EltTy = ATy->getElementType(); in parseConstants() local
2259 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy)); in parseConstants()
2262 Type *EltTy = VTy->getElementType(); in parseConstants() local
2264 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy)); in parseConstants()
2285 Type *EltTy = cast<SequentialType>(CurTy)->getElementType(); in parseConstants() local
2288 if (EltTy->isIntegerTy(8)) { in parseConstants()
2294 } else if (EltTy->isIntegerTy(16)) { in parseConstants()
2300 } else if (EltTy->isIntegerTy(32)) { in parseConstants()
2306 } else if (EltTy->isIntegerTy(64)) { in parseConstants()
2312 } else if (EltTy->isFloatTy()) { in parseConstants()
[all …]
/NextBSD/contrib/llvm/lib/Target/AArch64/
HDAArch64ISelLowering.cpp4492 MVT EltTy = VT.getVectorElementType().getSimpleVT(); in WidenVector() local
4493 MVT WideTy = MVT::getVectorVT(EltTy, 2 * NarrowSize); in WidenVector()
4512 MVT EltTy = VT.getVectorElementType().getSimpleVT(); in NarrowVector() local
4513 MVT NarrowTy = MVT::getVectorVT(EltTy, WideSize / 2); in NarrowVector()
5050 EVT EltTy = VT.getVectorElementType(); in GeneratePerfectShuffle() local
5052 if (EltTy == MVT::i8) in GeneratePerfectShuffle()
5054 else if (EltTy == MVT::i16 || EltTy == MVT::f16) in GeneratePerfectShuffle()
5056 else if (EltTy == MVT::i32 || EltTy == MVT::f32) in GeneratePerfectShuffle()
5058 else if (EltTy == MVT::i64 || EltTy == MVT::f64) in GeneratePerfectShuffle()
5650 EVT EltTy= VT.getVectorElementType(); in NormalizeBuildVector() local
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDASTContext.h1048 QualType getVariableArrayType(QualType EltTy, Expr *NumElts,
1058 QualType getDependentSizedArrayType(QualType EltTy, Expr *NumElts,
1065 QualType getIncompleteArrayType(QualType EltTy,
1071 QualType getConstantArrayType(QualType EltTy, const llvm::APInt &ArySize,
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineCalls.cpp901 auto EltTy = SelectorType->getElementType(); in visitCallInst() local
904 EltTy->isFloatTy() in visitCallInst()
906 : (EltTy->isDoubleTy() ? 64 : EltTy->getIntegerBitWidth()); in visitCallInst()

12