Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCastSizeChecker.cpp66 if (const ConstantArrayType *ArrayTy = in evenFlexibleArraySize() local
69 if (ArrayTy->getSize() == 1 && TypeSize > FlexSize) in evenFlexibleArraySize()
71 else if (!ArrayTy->isZeroSize()) in evenFlexibleArraySize()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackDocument.h43 typedef std::vector<DocNode> ArrayTy; typedef
60 ArrayTy *Array;
264 ArrayTy::iterator begin() { return Array->begin(); } in begin()
265 ArrayTy::iterator end() { return Array->end(); } in end()
282 std::vector<std::unique_ptr<DocNode::ArrayTy>> Arrays;
399 Arrays.push_back(std::make_unique<DocNode::ArrayTy>()); in getArrayNode()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMP.cpp97 using ArrayTy = ArrayRef<Directive>; in getLeafOrCompositeConstructs() typedef
98 using IteratorTy = ArrayTy::iterator; in getLeafOrCompositeConstructs()
109 getCompoundConstruct(ArrayTy(Range.begin(), Range.end())); in getLeafOrCompositeConstructs()
H A DOMPIRBuilder.cpp2519 ArrayType *ArrayTy = ArrayType::get(Builder.getInt32Ty(), WarpSize); in emitInterWarpCopyFunction() local
2522 M, ArrayTy, /*isConstant=*/false, GlobalVariable::WeakAnyLinkage, in emitInterWarpCopyFunction()
2523 UndefValue::get(ArrayTy), TransferMediumName, in emitInterWarpCopyFunction()
2632 ArrayTy, TransferMedium, {Builder.getInt64(0), WarpID}); in emitInterWarpCopyFunction()
2669 ArrayTy, TransferMedium, {Builder.getInt64(0), GPUThreadID}); in emitInterWarpCopyFunction()
7364 ArrayType *ArrayTy = ArrayType::get(DimTy, NonContigInfo.Dims[I]); in emitNonContiguousDescriptor() local
7366 Builder.CreateAlloca(ArrayTy, /* ArraySize = */ nullptr, "dims"); in emitNonContiguousDescriptor()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDelinearization.cpp506 auto *ArrayTy = dyn_cast<ArrayType>(Ty); in getIndexExpressionsFromGEP() local
507 if (!ArrayTy) { in getIndexExpressionsFromGEP()
515 Sizes.push_back(ArrayTy->getNumElements()); in getIndexExpressionsFromGEP()
517 Ty = ArrayTy->getElementType(); in getIndexExpressionsFromGEP()
H A DValueTracking.cpp6285 ArrayType *ArrayTy = nullptr; in getConstantDataArrayInfo() local
6309 ArrayTy = ArrayInit->getType(); in getConstantDataArrayInfo()
6326 ArrayTy = dyn_cast<ArrayType>(Init->getType()); in getConstantDataArrayInfo()
6329 uint64_t NumElts = ArrayTy->getArrayNumElements(); in getConstantDataArrayInfo()
/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/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/Parse/
H A DParseInit.cpp446 QualType ArrayTy = Context.getConstantArrayType( in createEmbedExpr() local
449 false, ArrayTy, StartLoc); in createEmbedExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp737 if (auto *ArrayTy = dyn_cast<ArrayType>(AllocaTy)) { in tryPromoteAllocaToVector() local
738 if (VectorType::isValidElementType(ArrayTy->getElementType()) && in tryPromoteAllocaToVector()
739 ArrayTy->getNumElements() > 0) in tryPromoteAllocaToVector()
740 VectorTy = FixedVectorType::get(ArrayTy->getElementType(), in tryPromoteAllocaToVector()
741 ArrayTy->getNumElements()); in tryPromoteAllocaToVector()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp704 ArrayType *ArrayTy = ArrayType::get(Ty, NumElements); in CreateFunctionLocalArrayInSection() local
706 *CurModule, ArrayTy, false, GlobalVariable::PrivateLinkage, in CreateFunctionLocalArrayInSection()
707 Constant::getNullValue(ArrayTy), "__sancov_gen_"); in CreateFunctionLocalArrayInSection()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h714 template <typename ArrayTy>
715 static Constant *get(LLVMContext &Context, ArrayTy &Elts) {
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp160 auto *ArrayTy = cast<llvm::ArrayType>(Result.getElementType()); in CreateMemTemp() local
161 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in CreateMemTemp()
162 ArrayTy->getNumElements()); in CreateMemTemp()
2070 auto *ArrayTy = dyn_cast<llvm::ArrayType>(Addr.getElementType()); in MaybeConvertMatrixAddress() local
2071 if (ArrayTy && IsVector) { in MaybeConvertMatrixAddress()
2072 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in MaybeConvertMatrixAddress()
2073 ArrayTy->getNumElements()); in MaybeConvertMatrixAddress()
2079 auto *ArrayTy = llvm::ArrayType::get( in MaybeConvertMatrixAddress() local
2083 return Addr.withElementType(ArrayTy); in MaybeConvertMatrixAddress()
4489 QualType ArrayTy = BaseTy->isPointerType() in EmitArraySectionExpr() local
[all …]
H A DCGExprConstant.cpp2417 const ArrayType *ArrayTy = CGM.getContext().getAsArrayType(DestType); in tryEmitPrivate() local
2425 ArrayTy->getElementType()); in tryEmitPrivate()
2440 Value.getArrayInitializedElt(I), ArrayTy->getElementType()); in tryEmitPrivate()
H A DCGDecl.cpp1101 if (auto *ArrayTy = dyn_cast<llvm::ArrayType>(OrigTy)) { in constWithPadding() local
1103 uint64_t Size = ArrayTy->getNumElements(); in constWithPadding()
1106 llvm::Type *ElemTy = ArrayTy->getElementType(); in constWithPadding()
H A DCGOpenMPRuntime.cpp666 const ArrayType *ArrayTy = Type->getAsArrayTypeUnsafe(); in EmitOMPAggregateInit() local
667 llvm::Value *NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, DestAddr); in EmitOMPAggregateInit()
4738 const ArrayType *ArrayTy = Type->getAsArrayTypeUnsafe(); in EmitOMPAggregateReduction() local
4739 llvm::Value *NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, LHSAddr); in EmitOMPAggregateReduction()
11163 QualType ArrayTy = C.getConstantArrayType(KmpDimTy, Size, nullptr, in emitDoacrossInit() local
11166 Address DimsAddr = CGF.CreateMemTemp(ArrayTy, "dims"); in emitDoacrossInit()
11167 CGF.EmitNullInitialization(DimsAddr, ArrayTy); in emitDoacrossInit()
11215 QualType ArrayTy = CGM.getContext().getConstantArrayType( in EmitDoacrossOrdered() local
11217 Address CntAddr = CGF.CreateMemTemp(ArrayTy, ".cnt.addr"); in EmitDoacrossOrdered()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenACC.cpp1535 const auto *ArrayTy = Context.getAsConstantArrayType(OriginalBaseTy); in ActOnArraySectionExpr() local
1536 BaseSize = ArrayTy->getSize(); in ActOnArraySectionExpr()
H A DSemaStmt.cpp2781 QualType ArrayTy = PVD->getOriginalType(); in BuildCXXForRangeStmt() local
2783 if (PointerTy->isPointerType() && ArrayTy->isArrayType()) { in BuildCXXForRangeStmt()
2785 << RangeLoc << PVD << ArrayTy << PointerTy; in BuildCXXForRangeStmt()
H A DSemaChecking.cpp13086 const ConstantArrayType *ArrayTy = in CheckArrayAccess() local
13093 ArrayTy == nullptr ? nullptr : ArrayTy->getElementType().getTypePtr(); in CheckArrayAccess()
13190 llvm::APInt size = ArrayTy->getSize(); in CheckArrayAccess()
13247 PDiag(DiagID) << toString(index, 10, true) << ArrayTy->desugar() in CheckArrayAccess()
H A DSemaDeclCXX.cpp14637 const ConstantArrayType *ArrayTy = S.Context.getAsConstantArrayType(T); in buildSingleCopyAssignRecursively() local
14638 if (!ArrayTy) { in buildSingleCopyAssignRecursively()
14693 buildSingleCopyAssignRecursively(S, Loc, ArrayTy->getElementType(), in buildSingleCopyAssignRecursively()
14702 = ArrayTy->getSize().zextOrTrunc(S.Context.getTypeSize(SizeType)); in buildSingleCopyAssignRecursively()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h1592 unsigned LLVMGetArrayLength(LLVMTypeRef ArrayTy);
1601 uint64_t LLVMGetArrayLength2(LLVMTypeRef ArrayTy);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp904 unsigned LLVMGetArrayLength(LLVMTypeRef ArrayTy) { in LLVMGetArrayLength() argument
905 return unwrap<ArrayType>(ArrayTy)->getNumElements(); in LLVMGetArrayLength()
908 uint64_t LLVMGetArrayLength2(LLVMTypeRef ArrayTy) { in LLVMGetArrayLength2() argument
909 return unwrap<ArrayType>(ArrayTy)->getNumElements(); in LLVMGetArrayLength2()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp1671 auto *ArrayTy = ArrayType::get(VT->getElementType(), VT->getNumElements()); in getNonAliasingPointer() local
1673 Builder.CreateAlloca(ArrayTy, Load->getPointerAddressSpace()); in getNonAliasingPointer()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp6366 ArrayType *ArrayTy = ArrayType::get(ValueType, TableSize); in SwitchLookupTable() local
6367 Constant *Initializer = ConstantArray::get(ArrayTy, TableContents); in SwitchLookupTable()
6369 Array = new GlobalVariable(M, ArrayTy, /*isConstant=*/true, in SwitchLookupTable()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.cpp1967 QualType ArrayTy = A.getConstantArrayType(CharTy, Size, nullptr, in VisitSYCLUniqueStableNameExpr() local
1972 /*Pascal=*/false, ArrayTy, E->getLocation()); in VisitSYCLUniqueStableNameExpr()

12