Home
last modified time | relevance | path

Searched refs:ElementTy (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Bitcode/
DBitcodeConvenience.h149 template <typename ElementTy> class BCArray : public detail::BCField<true> {
150 static_assert(!ElementTy::IsCompound, "arrays can only contain scalar types");
155 ElementTy::emitOp(abbrev); in emitOp()
185 template <typename ElementTy, typename... Fields> class BCRecordCoding {
190 static_assert(!ElementTy::IsCompound, in emit()
192 ElementTy::assertValid(element); in emit()
202 element = ElementTy::convert(buffer.front()); in read()
222 template <typename ElementTy> class BCRecordCoding<ElementTy> {
227 static_assert(!ElementTy::IsCompound, in emit()
229 ElementTy::assertValid(data); in emit()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
DSROA.cpp1438 Type *ElementTy = Ty; in getNaturalGEPWithType() local
1440 if (ElementTy->isPointerTy()) in getNaturalGEPWithType()
1443 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType()
1444 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType()
1446 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType()
1447 ElementTy = VectorTy->getElementType(); in getNaturalGEPWithType()
1449 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType()
1452 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1458 } while (ElementTy != TargetTy); in getNaturalGEPWithType()
1459 if (ElementTy != TargetTy) in getNaturalGEPWithType()
[all …]
DLowerMatrixIntrinsics.cpp959 Align getAlignForIndex(unsigned Idx, Value *Stride, Type *ElementTy, in getAlignForIndex() argument
961 Align InitialAlign = DL.getValueOrABITypeAlignment(A, ElementTy); in getAlignForIndex()
965 TypeSize ElementSizeInBits = DL.getTypeSizeInBits(ElementTy); in getAlignForIndex()
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
DDynamicExtent.cpp46 QualType ElementTy) { in getDynamicElementCount() argument
50 SVal ElementSize = getElementExtent(ElementTy, SVB); in getDynamicElementCount()
DRegionStore.cpp402 SVal ArrayToPointer(Loc Array, QualType ElementTy) override;
1184 QualType ElementTy = AT->getElementType(); in VisitCluster() local
1185 uint64_t ElemSize = Ctx.getTypeSize(ElementTy); in VisitCluster()
2194 QualType ElementTy = AT->getElementType(); in bindArray() local
2228 const ElementRegion *ER = MRMgr.getElementRegion(ElementTy, Idx, R, Ctx); in bindArray()
2230 if (ElementTy->isStructureOrClassType()) in bindArray()
2232 else if (ElementTy->isArrayType()) in bindArray()
2242 NewB = setImplicitDefaultValue(NewB, R, ElementTy); in bindArray()
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DExprInspectionChecker.cpp306 QualType ElementTy; in analyzerDumpElementCount() local
308 ElementTy = TVR->getValueType(); in analyzerDumpElementCount()
310 ElementTy = in analyzerDumpElementCount()
314 assert(!ElementTy->isPointerType()); in analyzerDumpElementCount()
317 getDynamicElementCount(C.getState(), MR, C.getSValBuilder(), ElementTy); in analyzerDumpElementCount()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
DConstants.h690 template <typename ElementTy>
691 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) {
693 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(),
694 Type::getScalarTy<ElementTy>(Context));
711 Type *ElementTy) {
712 Type *Ty = ArrayType::get(ElementTy, NumElements);
783 Type *ElementTy) {
784 Type *Ty = VectorType::get(ElementTy, ElementCount::getFixed(NumElements));
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DMicrosoftMangle.cpp2864 QualType ElementTy(T, 0); in mangleArrayType() local
2867 if (ElementTy->isConstantArrayType()) { in mangleArrayType()
2869 getASTContext().getAsConstantArrayType(ElementTy); in mangleArrayType()
2871 ElementTy = CAT->getElementType(); in mangleArrayType()
2872 } else if (ElementTy->isIncompleteArrayType()) { in mangleArrayType()
2874 getASTContext().getAsIncompleteArrayType(ElementTy); in mangleArrayType()
2876 ElementTy = IAT->getElementType(); in mangleArrayType()
2877 } else if (ElementTy->isVariableArrayType()) { in mangleArrayType()
2879 getASTContext().getAsVariableArrayType(ElementTy); in mangleArrayType()
2881 ElementTy = VAT->getElementType(); in mangleArrayType()
[all …]
DASTContext.cpp4065 QualType ASTContext::getConstantMatrixType(QualType ElementTy, unsigned NumRows, in getConstantMatrixType() argument
4068 ConstantMatrixType::Profile(ID, ElementTy, NumRows, NumColumns, in getConstantMatrixType()
4071 assert(MatrixType::isValidElementType(ElementTy) && in getConstantMatrixType()
4081 if (!ElementTy.isCanonical()) { in getConstantMatrixType()
4083 getConstantMatrixType(getCanonicalType(ElementTy), NumRows, NumColumns); in getConstantMatrixType()
4091 ConstantMatrixType(ElementTy, NumRows, NumColumns, Canonical); in getConstantMatrixType()
4097 QualType ASTContext::getDependentSizedMatrixType(QualType ElementTy, in getDependentSizedMatrixType() argument
4101 QualType CanonElementTy = getCanonicalType(ElementTy); in getDependentSizedMatrixType()
4125 if (Canon->getElementType() == ElementTy && Canon->getRowExpr() == RowExpr && in getDependentSizedMatrixType()
4131 DependentSizedMatrixType(*this, ElementTy, QualType(Canon, 0), RowExpr, in getDependentSizedMatrixType()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DStore.h153 virtual SVal ArrayToPointer(Loc Array, QualType ElementTy) = 0;
DProgramState.h550 SVal ArrayToPointer(Loc Array, QualType ElementTy) { in ArrayToPointer() argument
551 return StoreMgr->ArrayToPointer(Array, ElementTy); in ArrayToPointer()
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp973 llvm::Type *ElementTy = ST->getTypeAtIndex(RL->getLLVMFieldNo(FD)); in ComputeRecordLayout() local
994 getDataLayout().getTypeAllocSizeInBits(ElementTy) || in ComputeRecordLayout()
996 getDataLayout().getTypeAllocSizeInBits(ElementTy)) && in ComputeRecordLayout()
DCGExprCXX.cpp985 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() argument
1080 ElementTy = ConvertTypeForMem(AllocType); in EmitNewArrayInitializer()
1081 CurPtr = Builder.CreateElementBitCast(CurPtr, ElementTy); in EmitNewArrayInitializer()
1282 Builder.CreateConstInBoundsGEP1_32(ElementTy, CurPtr.getPointer(), 1, in EmitNewArrayInitializer()
1295 QualType ElementType, llvm::Type *ElementTy, in EmitNewInitializer() argument
1300 CGF.EmitNewArrayInitializer(E, ElementType, ElementTy, NewPtr, NumElements, in EmitNewInitializer()
DCGExprConstant.cpp2318 QualType ElementTy = CAT->getElementType(); in EmitNullConstant() local
2321 ConstantEmitter::emitNullForMemory(*this, ElementTy); in EmitNullConstant()
DCGDebugInfo.cpp2842 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType() local
2865 return DBuilder.createVectorType(Size, Align, ElementTy, SubscriptArray); in CreateType()
2873 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType() local
2892 return DBuilder.createArrayType(Size, Align, ElementTy, SubscriptArray); in CreateType()
DCGOpenMPRuntime.cpp685 QualType ElementTy; in EmitOMPAggregateInit() local
689 llvm::Value *NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, DestAddr); in EmitOMPAggregateInit()
714 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy); in EmitOMPAggregateInit()
738 SrcElementCurrent, ElementTy); in EmitOMPAggregateInit()
740 CGF.EmitAnyExprToMem(Init, DestElementCurrent, ElementTy.getQualifiers(), in EmitOMPAggregateInit()
5339 QualType ElementTy; in EmitOMPAggregateReduction() local
5345 llvm::Value *NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, LHSAddr); in EmitOMPAggregateReduction()
5363 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy); in EmitOMPAggregateReduction()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
DCallLowering.cpp168 Type *ElementTy = PtrTy->getElementType(); in setArgFlags() local
171 Flags.setByValSize(DL.getTypeAllocSize(Ty ? Ty : ElementTy)); in setArgFlags()
182 MemAlign = Align(getTLI()->getByValTypeAlignment(ElementTy, DL)); in setArgFlags()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
DVectorUtils.cpp974 Type *ElementTy = getLoadStoreType(&I); in collectConstStrideAccesses() local
987 uint64_t Size = DL.getTypeAllocSize(ElementTy); in collectConstStrideAccesses()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/TableGen/
DRecord.h182 RecTy *ElementTy; variable
184 explicit ListRecTy(RecTy *T) : RecTy(ListRecTyKind), ElementTy(T) {} in ListRecTy()
192 RecTy *getElementType() const { return ElementTy; } in getElementType()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
DConstants.cpp1189 template <typename SequentialTy, typename ElementTy>
1193 SmallVector<ElementTy, 16> Elts; in getIntSequenceIfElementsMatch()
1202 template <typename SequentialTy, typename ElementTy>
1206 SmallVector<ElementTy, 16> Elts; in getFPSequenceIfElementsMatch()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DSemaType.cpp2675 QualType Sema::BuildMatrixType(QualType ElementTy, Expr *NumRows, Expr *NumCols, in BuildMatrixType() argument
2681 if (!ElementTy->isDependentType() && in BuildMatrixType()
2682 !MatrixType::isValidElementType(ElementTy)) { in BuildMatrixType()
2683 Diag(AttrLoc, diag::err_attribute_invalid_matrix_type) << ElementTy; in BuildMatrixType()
2689 return Context.getDependentSizedMatrixType(ElementTy, NumRows, NumCols, in BuildMatrixType()
2747 return Context.getConstantMatrixType(ElementTy, MatrixRows, MatrixColumns); in BuildMatrixType()
DSemaChecking.cpp16492 QualType ElementTy; in SemaBuiltinMatrixColumnMajorLoad() local
16498 ElementTy = PtrTy->getPointeeType().getUnqualifiedType(); in SemaBuiltinMatrixColumnMajorLoad()
16500 if (!ConstantMatrixType::isValidElementType(ElementTy)) { in SemaBuiltinMatrixColumnMajorLoad()
16571 Context.getConstantMatrixType(ElementTy, *MaybeRows, *MaybeColumns)); in SemaBuiltinMatrixColumnMajorLoad()
16624 QualType ElementTy = PtrTy->getPointeeType(); in SemaBuiltinMatrixColumnMajorStore() local
16625 if (ElementTy.isConstQualified()) { in SemaBuiltinMatrixColumnMajorStore()
16629 ElementTy = ElementTy.getUnqualifiedType().getCanonicalType(); in SemaBuiltinMatrixColumnMajorStore()
16631 !Context.hasSameType(ElementTy, MatrixTy->getElementType())) { in SemaBuiltinMatrixColumnMajorStore()
16634 << ElementTy << MatrixTy->getElementType(); in SemaBuiltinMatrixColumnMajorStore()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/TableGen/
DRecord.cpp122 return "list<" + ElementTy->getAsString() + ">"; in getAsString()
127 return ElementTy->typeIsConvertibleTo(ListTy->getElementType()); in typeIsConvertibleTo()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp4870 Type *ElementTy = A->getType()->getArrayElementType(); in visitCallBase() local
4871 if (!ElementTy->isPPC_FP128Ty()) in visitCallBase()
4872 ArgAlign = DL.getTypeAllocSize(ElementTy); in visitCallBase()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm-c/
DCore.h2077 LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy,

12