Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackDocument.h43 typedef std::vector<DocNode> ArrayTy; typedef
60 ArrayTy *Array;
258 ArrayTy::iterator begin() { return Array->begin(); } in begin()
259 ArrayTy::iterator end() { return Array->end(); } in end()
276 std::vector<std::unique_ptr<DocNode::ArrayTy>> Arrays;
382 Arrays.push_back(std::unique_ptr<DocNode::ArrayTy>(new DocNode::ArrayTy)); in getArrayNode()
/freebsd-13.1/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->getSize() != 0) in evenFlexibleArraySize()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeConvenience.h260 template <typename BufferTy, typename ArrayTy>
262 unsigned code, const ArrayTy &array) { in emit()
290 template <typename T, typename ArrayTy>
291 static void read(ArrayRef<T> buffer, ArrayTy &array) { in read()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp320 static FixedVectorType *arrayTypeToVecType(ArrayType *ArrayTy) { in arrayTypeToVecType() argument
321 return FixedVectorType::get(ArrayTy->getElementType(), in arrayTypeToVecType()
322 ArrayTy->getNumElements()); in arrayTypeToVecType()
417 if (auto *ArrayTy = dyn_cast<ArrayType>(AllocaTy)) { in tryPromoteAllocaToVector() local
418 if (VectorType::isValidElementType(ArrayTy->getElementType()) && in tryPromoteAllocaToVector()
419 ArrayTy->getNumElements() > 0) in tryPromoteAllocaToVector()
420 VectorTy = arrayTypeToVecType(ArrayTy); in tryPromoteAllocaToVector()
/freebsd-13.1/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackDocument.cpp242 DocNode::ArrayTy::iterator ArrayIt;
263 {Node, Node.getMap().begin(), DocNode::ArrayTy::iterator(), true}); in writeToBlob()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp745 const auto *ArrayTy = in evalCastSubKind() local
754 if (ArrayTy) { in evalCastSubKind()
756 QualType ElemTy = ArrayTy->getElementType(); in evalCastSubKind()
804 if (ArrayTy) { in evalCastSubKind()
809 QualType ElemTy = ArrayTy->getElementType(); in evalCastSubKind()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp681 ArrayType *ArrayTy = ArrayType::get(Ty, NumElements); in CreateFunctionLocalArrayInSection() local
683 *CurModule, ArrayTy, false, GlobalVariable::PrivateLinkage, in CreateFunctionLocalArrayInSection()
684 Constant::getNullValue(ArrayTy), "__sancov_gen_"); in CreateFunctionLocalArrayInSection()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp159 auto *ArrayTy = cast<llvm::ArrayType>(Result.getType()->getElementType()); in CreateMemTemp() local
160 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in CreateMemTemp()
161 ArrayTy->getNumElements()); in CreateMemTemp()
1793 auto *ArrayTy = dyn_cast<llvm::ArrayType>( in MaybeConvertMatrixAddress() local
1795 if (ArrayTy && IsVector) { in MaybeConvertMatrixAddress()
1796 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in MaybeConvertMatrixAddress()
1804 auto *ArrayTy = llvm::ArrayType::get( in MaybeConvertMatrixAddress() local
1808 return Address(CGF.Builder.CreateElementBitCast(Addr, ArrayTy)); in MaybeConvertMatrixAddress()
3992 QualType ArrayTy = BaseTy->isPointerType() in EmitOMPArraySectionExpr() local
3995 if (auto *VAT = C.getAsVariableArrayType(ArrayTy)) { in EmitOMPArraySectionExpr()
[all …]
H A DCGExprConstant.cpp2121 const ArrayType *ArrayTy = CGM.getContext().getAsArrayType(DestType); in tryEmitPrivate() local
2129 ArrayTy->getElementType()); in tryEmitPrivate()
2144 Value.getArrayInitializedElt(I), ArrayTy->getElementType()); in tryEmitPrivate()
H A DCGDecl.cpp1071 if (auto *ArrayTy = dyn_cast<llvm::ArrayType>(OrigTy)) { in constWithPadding() local
1073 uint64_t Size = ArrayTy->getNumElements(); in constWithPadding()
1076 llvm::Type *ElemTy = ArrayTy->getElementType(); in constWithPadding()
H A DCGOpenMPRuntime.cpp688 const ArrayType *ArrayTy = Type->getAsArrayTypeUnsafe(); in EmitOMPAggregateInit() local
689 llvm::Value *NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, DestAddr); in EmitOMPAggregateInit()
5344 const ArrayType *ArrayTy = Type->getAsArrayTypeUnsafe(); in EmitOMPAggregateReduction() local
5345 llvm::Value *NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, LHSAddr); in EmitOMPAggregateReduction()
9406 QualType ArrayTy = in emitNonContiguousDescriptor() local
9408 Address DimsAddr = CGF.CreateMemTemp(ArrayTy, "dims"); in emitNonContiguousDescriptor()
12012 QualType ArrayTy = in emitDoacrossInit() local
12015 Address DimsAddr = CGF.CreateMemTemp(ArrayTy, "dims"); in emitDoacrossInit()
12016 CGF.EmitNullInitialization(DimsAddr, ArrayTy); in emitDoacrossInit()
12062 QualType ArrayTy = CGM.getContext().getConstantArrayType( in emitDoacrossOrdered() local
[all …]
H A DCGStmtOpenMP.cpp698 const ArrayType *ArrayTy = OriginalType->getAsArrayTypeUnsafe(); in EmitOMPAggregateAssign() local
699 llvm::Value *NumElements = emitArrayLength(ArrayTy, ElementTy, DestAddr); in EmitOMPAggregateAssign()
H A DCodeGenFunction.h2843 const ArrayType *ArrayTy,
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h699 template <typename ArrayTy>
700 static Constant *get(LLVMContext &Context, ArrayTy &Elts) {
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp4147 ArrayType *ArrayTy; in getConstantDataArrayInfo() local
4150 if ( (ArrayTy = dyn_cast<ArrayType>(GVTy)) ) { in getConstantDataArrayInfo()
4170 ArrayTy = Array->getType(); in getConstantDataArrayInfo()
4172 if (!ArrayTy->getElementType()->isIntegerTy(ElementSize)) in getConstantDataArrayInfo()
4175 uint64_t NumElts = ArrayTy->getArrayNumElements(); in getConstantDataArrayInfo()
H A DScalarEvolution.cpp12623 auto *ArrayTy = dyn_cast<ArrayType>(Ty); in getIndexExpressionsFromGEP() local
12624 if (!ArrayTy) { in getIndexExpressionsFromGEP()
12632 Sizes.push_back(ArrayTy->getNumElements()); in getIndexExpressionsFromGEP()
12634 Ty = ArrayTy->getElementType(); in getIndexExpressionsFromGEP()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp2875 QualType ArrayTy = PVD->getOriginalType(); in BuildCXXForRangeStmt() local
2877 if (PointerTy->isPointerType() && ArrayTy->isArrayType()) { in BuildCXXForRangeStmt()
2879 << RangeLoc << PVD << ArrayTy << PointerTy; in BuildCXXForRangeStmt()
H A DSemaDeclCXX.cpp14014 const ConstantArrayType *ArrayTy = S.Context.getAsConstantArrayType(T); in buildSingleCopyAssignRecursively() local
14015 if (!ArrayTy) { in buildSingleCopyAssignRecursively()
14070 buildSingleCopyAssignRecursively(S, Loc, ArrayTy->getElementType(), in buildSingleCopyAssignRecursively()
14079 = ArrayTy->getSize().zextOrTrunc(S.Context.getTypeSize(SizeType)); in buildSingleCopyAssignRecursively()
H A DSemaChecking.cpp14804 const ConstantArrayType *ArrayTy = in CheckArrayAccess() local
14808 ArrayTy == nullptr ? nullptr : ArrayTy->getElementType().getTypePtr(); in CheckArrayAccess()
14908 llvm::APInt size = ArrayTy->getSize(); in CheckArrayAccess()
H A DSemaExpr.cpp10309 } else if (const auto *ArrayTy = S.Context.getAsArrayType(LHSTy)) { in DiagnoseDivisionSizeofPointerOrArray() local
10310 QualType ArrayElemTy = ArrayTy->getElementType(); in DiagnoseDivisionSizeofPointerOrArray()
10311 if (ArrayElemTy != S.Context.getBaseElementType(ArrayTy) || in DiagnoseDivisionSizeofPointerOrArray()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp5542 ArrayType *ArrayTy = ArrayType::get(ValueType, TableSize); in SwitchLookupTable() local
5543 Constant *Initializer = ConstantArray::get(ArrayTy, TableContents); in SwitchLookupTable()
5545 Array = new GlobalVariable(M, ArrayTy, /*isConstant=*/true, in SwitchLookupTable()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h1431 unsigned LLVMGetArrayLength(LLVMTypeRef ArrayTy);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1443 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType() local
1444 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp809 unsigned LLVMGetArrayLength(LLVMTypeRef ArrayTy) { in LLVMGetArrayLength() argument
810 return unwrap<ArrayType>(ArrayTy)->getNumElements(); in LLVMGetArrayLength()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp8683 QualType ArrayTy = Info.Ctx.getConstantArrayType(CharTy, Size, nullptr, in VisitSYCLUniqueStableNameExpr() local
8688 /*Pascal*/ false, ArrayTy, E->getLocation()); in VisitSYCLUniqueStableNameExpr()
8691 Result.addArray(Info, E, cast<ConstantArrayType>(ArrayTy)); in VisitSYCLUniqueStableNameExpr()

12