| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Bitcode/ |
| H A D | BitcodeConvenience.h | 149 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 1437 Type *ElementTy = Ty; in getNaturalGEPWithType() local 1439 if (ElementTy->isPointerTy()) in getNaturalGEPWithType() 1442 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType() 1443 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType() 1445 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType() 1446 ElementTy = VectorTy->getElementType(); in getNaturalGEPWithType() 1448 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType() 1451 ElementTy = *STy->element_begin(); in getNaturalGEPWithType() 1457 } while (ElementTy != TargetTy); in getNaturalGEPWithType() 1458 if (ElementTy != TargetTy) in getNaturalGEPWithType() [all …]
|
| H A D | LowerMatrixIntrinsics.cpp | 786 Align getAlignForIndex(unsigned Idx, Value *Stride, Type *ElementTy, in getAlignForIndex() argument 788 Align InitialAlign = DL.getValueOrABITypeAlignment(A, ElementTy); in getAlignForIndex() 792 TypeSize ElementSizeInBits = DL.getTypeSizeInBits(ElementTy); in getAlignForIndex()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| H A D | DynamicExtent.cpp | 46 QualType ElementTy) { in getDynamicElementCount() argument 50 SVal ElementSize = getElementExtent(ElementTy, SVB); in getDynamicElementCount()
|
| H A D | RegionStore.cpp | 402 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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ExprInspectionChecker.cpp | 306 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
| H A D | Constants.h | 689 template <typename ElementTy> 690 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) { 692 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(), 693 Type::getScalarTy<ElementTy>(Context)); 710 Type *ElementTy) { 711 Type *Ty = ArrayType::get(ElementTy, NumElements); 782 Type *ElementTy) { 783 Type *Ty = VectorType::get(ElementTy, ElementCount::getFixed(NumElements));
|
| /netbsd-src/external/apache2/llvm/dist/llvm/bindings/ocaml/llvm/ |
| H A D | llvm_ocaml.c | 569 LLVMTypeRef llvm_array_type(LLVMTypeRef ElementTy, value Count) { in llvm_array_type() argument 570 return LLVMArrayType(ElementTy, Int_val(Count)); in llvm_array_type() 574 LLVMTypeRef llvm_pointer_type(LLVMTypeRef ElementTy) { in llvm_pointer_type() argument 575 return LLVMPointerType(ElementTy, 0); in llvm_pointer_type() 579 LLVMTypeRef llvm_qualified_pointer_type(LLVMTypeRef ElementTy, in llvm_qualified_pointer_type() argument 581 return LLVMPointerType(ElementTy, Int_val(AddressSpace)); in llvm_qualified_pointer_type() 585 LLVMTypeRef llvm_vector_type(LLVMTypeRef ElementTy, value Count) { in llvm_vector_type() argument 586 return LLVMVectorType(ElementTy, Int_val(Count)); in llvm_vector_type() 933 LLVMValueRef llvm_const_array(LLVMTypeRef ElementTy, value ElementVals) { in llvm_const_array() argument 934 return LLVMConstArray(ElementTy, (LLVMValueRef *)Op_val(ElementVals), in llvm_const_array()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | MicrosoftMangle.cpp | 2861 QualType ElementTy(T, 0); in mangleArrayType() local 2864 if (ElementTy->isConstantArrayType()) { in mangleArrayType() 2866 getASTContext().getAsConstantArrayType(ElementTy); in mangleArrayType() 2868 ElementTy = CAT->getElementType(); in mangleArrayType() 2869 } else if (ElementTy->isIncompleteArrayType()) { in mangleArrayType() 2871 getASTContext().getAsIncompleteArrayType(ElementTy); in mangleArrayType() 2873 ElementTy = IAT->getElementType(); in mangleArrayType() 2874 } else if (ElementTy->isVariableArrayType()) { in mangleArrayType() 2876 getASTContext().getAsVariableArrayType(ElementTy); in mangleArrayType() 2878 ElementTy = VAT->getElementType(); in mangleArrayType() [all …]
|
| H A D | ASTContext.cpp | 4050 QualType ASTContext::getConstantMatrixType(QualType ElementTy, unsigned NumRows, in getConstantMatrixType() argument 4053 ConstantMatrixType::Profile(ID, ElementTy, NumRows, NumColumns, in getConstantMatrixType() 4056 assert(MatrixType::isValidElementType(ElementTy) && in getConstantMatrixType() 4066 if (!ElementTy.isCanonical()) { in getConstantMatrixType() 4068 getConstantMatrixType(getCanonicalType(ElementTy), NumRows, NumColumns); in getConstantMatrixType() 4076 ConstantMatrixType(ElementTy, NumRows, NumColumns, Canonical); in getConstantMatrixType() 4082 QualType ASTContext::getDependentSizedMatrixType(QualType ElementTy, in getDependentSizedMatrixType() argument 4086 QualType CanonElementTy = getCanonicalType(ElementTy); in getDependentSizedMatrixType() 4110 if (Canon->getElementType() == ElementTy && Canon->getRowExpr() == RowExpr && in getDependentSizedMatrixType() 4116 DependentSizedMatrixType(*this, ElementTy, QualType(Canon, 0), RowExpr, in getDependentSizedMatrixType()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGRecordLayoutBuilder.cpp | 973 llvm::Type *ElementTy = ST->getTypeAtIndex(RL->getLLVMFieldNo(FD)); in ComputeRecordLayout() local 994 getDataLayout().getTypeAllocSizeInBits(ElementTy) || in ComputeRecordLayout() 996 getDataLayout().getTypeAllocSizeInBits(ElementTy)) && in ComputeRecordLayout()
|
| H A D | CGExprCXX.cpp | 982 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() argument 1077 ElementTy = ConvertTypeForMem(AllocType); in EmitNewArrayInitializer() 1078 CurPtr = Builder.CreateElementBitCast(CurPtr, ElementTy); in EmitNewArrayInitializer() 1279 Builder.CreateConstInBoundsGEP1_32(ElementTy, CurPtr.getPointer(), 1, in EmitNewArrayInitializer() 1292 QualType ElementType, llvm::Type *ElementTy, in EmitNewInitializer() argument 1297 CGF.EmitNewArrayInitializer(E, ElementType, ElementTy, NewPtr, NumElements, in EmitNewInitializer()
|
| H A D | CGExprConstant.cpp | 2318 QualType ElementTy = CAT->getElementType(); in EmitNullConstant() local 2321 ConstantEmitter::emitNullForMemory(*this, ElementTy); in EmitNullConstant()
|
| H A D | CGDebugInfo.cpp | 2861 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType() local 2884 return DBuilder.createVectorType(Size, Align, ElementTy, SubscriptArray); in CreateType() 2892 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType() local 2911 return DBuilder.createArrayType(Size, Align, ElementTy, SubscriptArray); in CreateType()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | Store.h | 153 virtual SVal ArrayToPointer(Loc Array, QualType ElementTy) = 0;
|
| H A D | ProgramState.h | 550 SVal ArrayToPointer(Loc Array, QualType ElementTy) { in ArrayToPointer() argument 551 return StoreMgr->ArrayToPointer(Array, ElementTy); in ArrayToPointer()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CallLowering.cpp | 162 Type *ElementTy = cast<PointerType>(Arg.Ty)->getElementType(); in setArgFlags() local 165 Flags.setByValSize(DL.getTypeAllocSize(Ty ? Ty : ElementTy)); in setArgFlags() 176 MemAlign = Align(getTLI()->getByValTypeAlignment(ElementTy, DL)); in setArgFlags()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | VectorUtils.cpp | 965 Type *ElementTy = getLoadStoreType(&I); in collectConstStrideAccesses() local 978 uint64_t Size = DL.getTypeAllocSize(ElementTy); in collectConstStrideAccesses()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FastISel.cpp | 1079 Type *ElementTy = Arg.IndirectType; in lowerCallTo() local 1080 assert(ElementTy && "Indirect type not set in ArgListEntry"); in lowerCallTo() 1082 unsigned FrameSize = DL.getTypeAllocSize(ElementTy); in lowerCallTo() 1087 MemAlign = Align(TLI.getByValTypeAlignment(ElementTy, DL)); in lowerCallTo()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/TableGen/ |
| H A D | Record.h | 182 RecTy *ElementTy; variable 184 explicit ListRecTy(RecTy *T) : RecTy(ListRecTyKind), ElementTy(T) {} in ListRecTy() 192 RecTy *getElementType() const { return ElementTy; } in getElementType()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
| H A D | Constants.cpp | 1187 template <typename SequentialTy, typename ElementTy> 1191 SmallVector<ElementTy, 16> Elts; in getIntSequenceIfElementsMatch() 1200 template <typename SequentialTy, typename ElementTy> 1204 SmallVector<ElementTy, 16> Elts; in getFPSequenceIfElementsMatch()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | SemaType.cpp | 2651 QualType Sema::BuildMatrixType(QualType ElementTy, Expr *NumRows, Expr *NumCols, in BuildMatrixType() argument 2657 if (!ElementTy->isDependentType() && in BuildMatrixType() 2658 !MatrixType::isValidElementType(ElementTy)) { in BuildMatrixType() 2659 Diag(AttrLoc, diag::err_attribute_invalid_matrix_type) << ElementTy; in BuildMatrixType() 2665 return Context.getDependentSizedMatrixType(ElementTy, NumRows, NumCols, in BuildMatrixType() 2723 return Context.getConstantMatrixType(ElementTy, MatrixRows, MatrixColumns); in BuildMatrixType()
|
| H A D | SemaChecking.cpp | 16151 QualType ElementTy; in SemaBuiltinMatrixColumnMajorLoad() local 16157 ElementTy = PtrTy->getPointeeType().getUnqualifiedType(); in SemaBuiltinMatrixColumnMajorLoad() 16159 if (!ConstantMatrixType::isValidElementType(ElementTy)) { in SemaBuiltinMatrixColumnMajorLoad() 16230 Context.getConstantMatrixType(ElementTy, *MaybeRows, *MaybeColumns)); in SemaBuiltinMatrixColumnMajorLoad() 16283 QualType ElementTy = PtrTy->getPointeeType(); in SemaBuiltinMatrixColumnMajorStore() local 16284 if (ElementTy.isConstQualified()) { in SemaBuiltinMatrixColumnMajorStore() 16288 ElementTy = ElementTy.getUnqualifiedType().getCanonicalType(); in SemaBuiltinMatrixColumnMajorStore() 16290 !Context.hasSameType(ElementTy, MatrixTy->getElementType())) { in SemaBuiltinMatrixColumnMajorStore() 16293 << ElementTy << MatrixTy->getElementType(); in SemaBuiltinMatrixColumnMajorStore()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/ |
| H A D | Record.cpp | 122 return "list<" + ElementTy->getAsString() + ">"; in getAsString() 127 return ElementTy->typeIsConvertibleTo(ListTy->getElementType()); in typeIsConvertibleTo()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemorySanitizer.cpp | 4848 Type *ElementTy = A->getType()->getArrayElementType(); in visitCallBase() local 4849 if (!ElementTy->isPPC_FP128Ty()) in visitCallBase() 4850 ArgAlign = DL.getTypeAllocSize(ElementTy); in visitCallBase()
|