Home
last modified time | relevance | path

Searched refs:ArrayTy (Results 1 – 25 of 44) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DArrayList.h105 using ArrayTy = std::array<T, ItemsGroupSize>; member
108 ArrayTy Items;
123 typename ArrayTy::iterator begin() { return Items.begin(); } in begin()
124 typename ArrayTy::iterator end() { return Items.begin() + getItemsCount(); } in end()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCastSizeChecker.cpp68 if (const ConstantArrayType *ArrayTy = in evenFlexibleArraySize() local
71 if (ArrayTy->getSize() == 1 && TypeSize > FlexSize) in evenFlexibleArraySize()
73 else if (!ArrayTy->isZeroSize()) in evenFlexibleArraySize()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackDocument.h44 typedef std::vector<DocNode> ArrayTy; typedef
61 ArrayTy *Array;
265 ArrayTy::iterator begin() { return Array->begin(); } in begin()
266 ArrayTy::iterator end() { return Array->end(); } in end()
283 std::vector<std::unique_ptr<DocNode::ArrayTy>> Arrays;
400 Arrays.push_back(std::make_unique<DocNode::ArrayTy>()); in getArrayNode()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILFlattenArrays.cpp79 static std::pair<unsigned, Type *> getElementCountAndType(Type *ArrayTy);
108 DXILFlattenArraysVisitor::getElementCountAndType(Type *ArrayTy) { in getElementCountAndType() argument
110 Type *CurrArrayTy = ArrayTy; in getElementCountAndType()
376 auto *ArrayTy = dyn_cast<ArrayType>(Init->getType()); in collectElements() local
377 if (!ArrayTy) { in collectElements()
381 unsigned ArrSize = ArrayTy->getNumElements(); in collectElements()
384 Elements.push_back(Constant::getNullValue(ArrayTy->getElementType())); in collectElements()
H A DDXILDataScalarization.cpp37 if (auto *ArrayTy = dyn_cast<ArrayType>(T)) { in equivalentArrayTypeFromVector() local
39 equivalentArrayTypeFromVector(ArrayTy->getElementType()); in equivalentArrayTypeFromVector()
40 return ArrayType::get(NewElementType, ArrayTy->getNumElements()); in equivalentArrayTypeFromVector()
374 if (auto *ArrayTy = dyn_cast<ArrayType>(OrigType)) { in transformInitializer() local
379 for (unsigned I = 0; I < ArrayTy->getNumElements(); ++I) { in transformInitializer()
382 ArrayInit->getOperand(I), ArrayTy->getElementType(), in transformInitializer()
H A DDXILOpLowering.cpp417 Type *ArrayTy = ArrayType::get(ElTy, N); in replaceResRetUses() local
418 Value *Alloca = IRB.CreateAlloca(ArrayTy); in replaceResRetUses()
424 ArrayTy, Alloca, {Zero, ConstantInt::get(Int32Ty, I)}); in replaceResRetUses()
429 Value *GEP = IRB.CreateInBoundsGEP(ArrayTy, Alloca, in replaceResRetUses()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMP.cpp99 using ArrayTy = ArrayRef<Directive>; in getLeafOrCompositeConstructs() typedef
100 using IteratorTy = ArrayTy::iterator; in getLeafOrCompositeConstructs()
111 getCompoundConstruct(ArrayTy(Range.begin(), Range.end())); in getLeafOrCompositeConstructs()
H A DOMPIRBuilder.cpp2654 ArrayType *ArrayTy = ArrayType::get(Builder.getInt32Ty(), WarpSize); in emitInterWarpCopyFunction() local
2657 M, ArrayTy, /*isConstant=*/false, GlobalVariable::WeakAnyLinkage, in emitInterWarpCopyFunction()
2658 UndefValue::get(ArrayTy), TransferMediumName, in emitInterWarpCopyFunction()
2770 ArrayTy, TransferMedium, {Builder.getInt64(0), WarpID}); in emitInterWarpCopyFunction()
2810 ArrayTy, TransferMedium, {Builder.getInt64(0), GPUThreadID}); in emitInterWarpCopyFunction()
7341 Type *ArrayTy = getOffloadingArrayType(V); in createTaskWithPrivatesTy() local
7342 assert(ArrayTy && "ArrayType cannot be nullptr"); in createTaskWithPrivatesTy()
7343 StructFieldTypes.push_back(ArrayTy); in createTaskWithPrivatesTy()
8211 ArrayType *ArrayTy = ArrayType::get(DimTy, NonContigInfo.Dims[I]); in emitNonContiguousDescriptor() local
8213 Builder.CreateAlloca(ArrayTy, /* ArraySize = */ nullptr, "dims"); in emitNonContiguousDescriptor()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DHLSLBufferLayoutBuilder.cpp198 auto *ArrayTy = CGM.getContext().getAsConstantArrayType(Ty); in layoutField() local
199 ArrayCount *= ArrayTy->getSExtSize(); in layoutField()
200 Ty = ArrayTy->getElementType(); in layoutField()
H A DCodeGenTBAA.cpp136 if (auto *ArrayTy = QTy->getAsArrayTypeUnsafe()) in TypeHasMayAlias() local
137 if (TypeHasMayAlias(ArrayTy->getElementType())) in TypeHasMayAlias()
H A DCGExpr.cpp179 auto *ArrayTy = cast<llvm::ArrayType>(Result.getElementType()); in CreateMemTemp() local
180 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in CreateMemTemp()
181 ArrayTy->getNumElements()); in CreateMemTemp()
2140 auto *ArrayTy = dyn_cast<llvm::ArrayType>(Addr.getElementType()); in MaybeConvertMatrixAddress() local
2141 if (ArrayTy && IsVector) { in MaybeConvertMatrixAddress()
2142 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in MaybeConvertMatrixAddress()
2143 ArrayTy->getNumElements()); in MaybeConvertMatrixAddress()
2149 auto *ArrayTy = llvm::ArrayType::get( in MaybeConvertMatrixAddress() local
2153 return Addr.withElementType(ArrayTy); in MaybeConvertMatrixAddress()
4415 QualType ArrayTy, bool Accessed, bool FlexibleArray) { in EmitCountedByBoundsChecking() argument
[all …]
H A DCGExprConstant.cpp2534 const ArrayType *ArrayTy = CGM.getContext().getAsArrayType(DestType); in tryEmitPrivate() local
2542 ArrayTy->getElementType()); in tryEmitPrivate()
2557 Value.getArrayInitializedElt(I), ArrayTy->getElementType()); in tryEmitPrivate()
H A DCGDecl.cpp1093 if (auto *ArrayTy = dyn_cast<llvm::ArrayType>(OrigTy)) { in constWithPadding() local
1095 uint64_t Size = ArrayTy->getNumElements(); in constWithPadding()
1098 llvm::Type *ElemTy = ArrayTy->getElementType(); in constWithPadding()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDelinearization.cpp505 auto *ArrayTy = dyn_cast<ArrayType>(Ty); in getIndexExpressionsFromGEP() local
506 if (!ArrayTy) { in getIndexExpressionsFromGEP()
514 Sizes.push_back(ArrayTy->getNumElements()); in getIndexExpressionsFromGEP()
516 Ty = ArrayTy->getElementType(); in getIndexExpressionsFromGEP()
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeConvenience.h261 template <typename BufferTy, typename ArrayTy>
263 unsigned code, const ArrayTy &array) { in emit()
291 template <typename T, typename ArrayTy>
292 static void read(ArrayRef<T> buffer, ArrayTy &array) { in read()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h276 } else if (auto *ArrayTy = dyn_cast<ArrayType>(Ty)) {
278 Ty = ArrayTy->getElementType();
279 } while ((ArrayTy = dyn_cast<ArrayType>(Ty)));
H A DConstants.h723 template <typename ArrayTy>
724 static Constant *get(LLVMContext &Context, ArrayTy &Elts) {
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackDocument.cpp255 DocNode::ArrayTy::iterator ArrayIt; in writeToBlob()
276 {Node, Node.getMap().begin(), DocNode::ArrayTy::iterator(), true}); in writeToBlob()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp749 const auto *ArrayTy = in VisitMemRegionVal() local
758 if (ArrayTy) { in VisitMemRegionVal()
760 QualType ElemTy = ArrayTy->getElementType(); in VisitMemRegionVal()
815 if (ArrayTy) { in VisitMemRegionVal()
820 QualType ElemTy = ArrayTy->getElementType(); in VisitMemRegionVal()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DRISCV.cpp464 if (auto *ArrayTy = dyn_cast<llvm::ArrayType>(FirstEltTy)) { in detectVLSCCEligibleStruct() local
468 FirstEltTy = ArrayTy->getArrayElementType(); in detectVLSCCEligibleStruct()
469 NumElts = ArrayTy->getNumElements(); in detectVLSCCEligibleStruct()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseInit.cpp398 QualType ArrayTy = Context.getConstantArrayType( in createEmbedExpr() local
401 false, ArrayTy, StartLoc); in createEmbedExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp800 if (auto *ArrayTy = dyn_cast<ArrayType>(AllocaTy)) { in tryPromoteAllocaToVector() local
804 NumElems *= ArrayTy->getNumElements(); in tryPromoteAllocaToVector()
805 ElemTy = ArrayTy->getElementType(); in tryPromoteAllocaToVector()
806 } while ((ArrayTy = dyn_cast<ArrayType>(ElemTy))); in tryPromoteAllocaToVector()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp747 ArrayType *ArrayTy = ArrayType::get(Ty, NumElements); in CreateFunctionLocalArrayInSection() local
749 *CurModule, ArrayTy, false, GlobalVariable::PrivateLinkage, in CreateFunctionLocalArrayInSection()
750 Constant::getNullValue(ArrayTy), "__sancov_gen_"); in CreateFunctionLocalArrayInSection()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DUtility.cpp310 Error generateKernelInfo(msgpack::ArrayDocNode::ArrayTy::iterator It) { in generateKernelInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DConstant.h610 template <typename ArrayTy>
611 static Constant *get(Context &Ctx, ArrayTy &Elts) { in get()

12