Home
last modified time | relevance | path

Searched refs:ArrayType (Results 1 – 25 of 274) sorted by relevance

1234567891011

/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DDebugSymbolRVASubsection.h28 using ArrayType = FixedStreamArray<support::ulittle32_t>;
36 ArrayType::Iterator begin() const { return RVAs.begin(); } in begin()
37 ArrayType::Iterator end() const { return RVAs.end(); } in end()
42 ArrayType RVAs;
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGVTT.cpp45 llvm::ArrayType *ArrayType = in EmitVTTDefinition() local
46 llvm::ArrayType::get(CGM.Int8PtrTy, Builder.getVTTComponents().size()); in EmitVTTDefinition()
90 llvm::Constant *Init = llvm::ConstantArray::get(ArrayType, VTTComponents); in EmitVTTDefinition()
115 llvm::ArrayType *ArrayType = in GetAddrOfVTT() local
116 llvm::ArrayType::get(CGM.Int8PtrTy, Builder.getVTTComponents().size()); in GetAddrOfVTT()
120 Name, ArrayType, llvm::GlobalValue::ExternalLinkage, Align); in GetAddrOfVTT()
H A DCGExprConstant.cpp63 Ty = llvm::ArrayType::get(Ty, PadSize.getQuantity()); in getPadding()
326 if (isa<llvm::ArrayType>(CA->getType()) || in split()
393 EmitArrayConstant(CodeGenModule &CGM, llvm::ArrayType *DesiredType,
411 if (llvm::ArrayType *ATy = dyn_cast<llvm::ArrayType>(DesiredTy)) { in buildFrom()
974 llvm::ArrayType::get(CommonElementType, NonzeroLength), in EmitArrayConstant()
984 FillerType = llvm::ArrayType::get(FillerType, TrailingZeroes); in EmitArrayConstant()
1094 Ty = llvm::ArrayType::get(Ty, NumPadBytes); in VisitCastExpr()
1263 llvm::ArrayType *Desired = in EmitArrayInitialization()
2191 llvm::ArrayType *Desired = in tryEmitPrivate()
2352 llvm::ArrayType *ATy = in EmitNullConstant()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp24 StatTy = ArrayType::get(Type::getInt8PtrTy(M->getContext()), 2); in SanitizerStatReport()
31 ArrayType *SanitizerStatReport::makeModuleStatsArrayTy() { in makeModuleStatsArrayTy()
32 return ArrayType::get(StatTy, Inits.size()); in makeModuleStatsArrayTy()
46 ArrayType *StatTy = ArrayType::get(Int8PtrTy, 2); in create()
H A DModuleUtils.cpp56 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToGlobalArray()
99 ArrayType *ATy = ArrayType::get(Int8PtrTy, Init.size()); in appendToUsedList()
H A DCtorUtils.cpp37 ArrayType *ATy = in removeGlobalCtors()
38 ArrayType::get(OldCA->getType()->getElementType(), CAList.size()); in removeGlobalCtors()
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp64 static ArrayType *createLoweredType(Type *OriginalType) { in createLoweredType()
65 return ArrayType::get(OriginalType, MaxThreads); in createLoweredType()
69 createLoweredInitializer(ArrayType *NewType, Constant *OriginalInitializer) { in createLoweredInitializer()
125 ArrayType *AT = dyn_cast<ArrayType>(Ty); in isZeroLengthArray()
140 ArrayType *NewType = createLoweredType(GV->getValueType()); in lowerGlobal()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DAvoidCArraysCheck.cpp58 const auto *ArrayType = Result.Nodes.getNodeAs<TypeLoc>("typeloc"); in check() local
60 diag(ArrayType->getBeginLoc(), in check()
63 << ArrayType->getTypePtr()->isVariableArrayType(); in check()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp48 ArrayType ArrayType::get(Type elementType, unsigned elementCount) { in get()
54 ArrayType ArrayType::get(Type elementType, unsigned elementCount, in get()
60 unsigned ArrayType::getNumElements() const { return getImpl()->elementCount; } in getNumElements()
62 Type ArrayType::getElementType() const { return getImpl()->elementType; } in getElementType()
64 unsigned ArrayType::getArrayStride() const { return getImpl()->stride; } in getArrayStride()
66 void ArrayType::getExtensions(SPIRVType::ExtensionArrayRefVector &extensions, in getExtensions()
71 void ArrayType::getCapabilities( in getCapabilities()
77 Optional<int64_t> ArrayType::getSizeInBytes() { in getSizeInBytes()
123 if (auto arrayType = dyn_cast<ArrayType>()) in getNumElements()
181 if (auto arrayType = dyn_cast<ArrayType>()) in getSizeInBytes()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DInstrOrderFile.cpp53 ArrayType *BufferTy;
54 ArrayType *MapTy;
68 ArrayType::get(Type::getInt64Ty(Ctx), INSTR_ORDER_FILE_BUFFER_SIZE); in createOrderFileData()
70 MapTy = ArrayType::get(Type::getInt8Ty(Ctx), NumFunctions); in createOrderFileData()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DSanitizerStats.h45 ArrayType *StatTy;
49 ArrayType *makeModuleStatsArrayTy();
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/Utils/
H A DLayoutUtils.h24 class ArrayType; variable
68 static Type decorateType(spirv::ArrayType arrayType, Size &size,
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDerivedTypes.h357 class ArrayType : public Type {
363 ArrayType(Type *ElType, uint64_t NumEl);
366 ArrayType(const ArrayType &) = delete;
367 ArrayType &operator=(const ArrayType &) = delete;
373 static ArrayType *get(Type *ElementType, uint64_t NumElements);
385 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DDebugInfoTest.cpp222 DICompositeType *ArrayType = DIB.createArrayType(0, 0, nullptr, Subscripts, in TEST() local
226 EXPECT_TRUE(isa_and_nonnull<DICompositeType>(ArrayType)); in TEST()
227 EXPECT_EQ(ArrayType->getRawDataLocation(), DataLocation); in TEST()
228 EXPECT_EQ(ArrayType->getRawAssociated(), Associated); in TEST()
229 EXPECT_EQ(ArrayType->getRawAllocated(), Allocated); in TEST()
230 EXPECT_EQ(ArrayType->getRawRank(), Rank); in TEST()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTypeNodes.td62 def ArrayType : TypeNode<Type, 1>;
63 def ConstantArrayType : TypeNode<ArrayType>;
64 def IncompleteArrayType : TypeNode<ArrayType>;
65 def VariableArrayType : TypeNode<ArrayType>;
66 def DependentSizedArrayType : TypeNode<ArrayType>, AlwaysDependent;
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/
H A DLayoutUtils.cpp90 if (auto arrayType = type.dyn_cast<spirv::ArrayType>()) in decorateType()
120 Type VulkanLayoutUtils::decorateType(spirv::ArrayType arrayType, in decorateType()
134 return spirv::ArrayType::get(memberType, numElements, elementSize); in decorateType()
/llvm-project-15.0.7/clang/lib/AST/
H A DStmtIterator.cpp26 while (const ArrayType *vt = dyn_cast<ArrayType>(t)) { in FindVA()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DAnalysis.cpp53 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeLinearIndex()
102 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeValueVTs()
147 if (ArrayType *ATy = dyn_cast<ArrayType>(&Ty)) { in computeValueLLTs()
409 if (ArrayType *AT = dyn_cast<ArrayType>(T)) in indexReallyValid()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DProgram.cpp142 QualType Ty = ASTCtx.getIncompleteArrayType(ElemTy, ArrayType::Normal, 0); in getOrCreateDummy()
321 if (auto ArrayType = Ty->getAsArrayTypeUnsafe()) { in createDescriptor() local
322 QualType ElemTy = ArrayType->getElementType(); in createDescriptor()
324 if (auto CAT = dyn_cast<ConstantArrayType>(ArrayType)) { in createDescriptor()
351 if (isa<IncompleteArrayType>(ArrayType)) { in createDescriptor()
/llvm-project-15.0.7/llvm/lib/IR/
H A DType.cpp148 if (auto *ATy = dyn_cast<ArrayType>(this)) { in isEmptyTy()
209 if (auto *ATy = dyn_cast<ArrayType>(this)) in isSizedDerivedType()
631 ArrayType::ArrayType(Type *ElType, uint64_t NumEl) in ArrayType() function in ArrayType
638 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) { in get()
642 ArrayType *&Entry = in get()
646 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements); in get()
650 bool ArrayType::isValidElementType(Type *ElemTy) { in isValidElementType()
/llvm-project-15.0.7/clang/tools/clang-linker-wrapper/
H A DOffloadWrapper.cpp169 ConstantAggregateZero::get(ArrayType::get(getEntryTy(M), 0u)); in createBinDesc()
205 ArrayType::get(getDeviceImageTy(M), ImagesInits.size()), ImagesInits); in createBinDesc()
334 ConstantAggregateZero::get(ArrayType::get(getEntryTy(M), 0u)); in createFatbinDesc()
393 new GlobalVariable(M, ArrayType::get(getEntryTy(M), 0), in createRegisterGlobalsFunction()
400 new GlobalVariable(M, ArrayType::get(getEntryTy(M), 0), in createRegisterGlobalsFunction()
499 ArrayType::get(getEntryTy(M), 0), EntriesE, in createRegisterGlobalsFunction()
504 ArrayType::get(getEntryTy(M), 0), EntriesB, in createRegisterGlobalsFunction()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVTypes.h127 class ArrayType : public Type::TypeBase<ArrayType, CompositeType,
132 static ArrayType get(Type elementType, unsigned elementCount);
135 static ArrayType get(Type elementType, unsigned elementCount,
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/OpenACC/
H A DOpenACCToLLVMIRTranslation.cpp135 auto *arrI8PtrTy = llvm::ArrayType::get(i8PtrTy, totalNbOperand); in processOperands()
137 auto *arrI64Ty = llvm::ArrayType::get(i64Ty, totalNbOperand); in processOperands()
365 llvm::ArrayType::get(llvm::Type::getInt64Ty(ctx), totalNbOperand), in convertDataOp()
371 llvm::ArrayType::get(llvm::Type::getInt8PtrTy(ctx), totalNbOperand), in convertDataOp()
463 llvm::ArrayType::get(llvm::Type::getInt64Ty(ctx), totalNbOperand), in convertStandaloneDataOp()
469 llvm::ArrayType::get(llvm::Type::getInt8PtrTy(ctx), totalNbOperand), in convertStandaloneDataOp()
/llvm-project-15.0.7/llvm/lib/Linker/
H A DIRMover.cpp184 } else if (auto *DArrTy = dyn_cast<ArrayType>(DstTy)) { in areTypesIsomorphic()
185 if (DArrTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements()) in areTypesIsomorphic()
305 return *Entry = ArrayType::get(ElementTypes[0], in get()
306 cast<ArrayType>(Ty)->getNumElements()); in get()
786 ArrayType *DAT = cast<ArrayType>(DGV->getValueType()); in computeTypeMapping()
787 ArrayType *SAT = cast<ArrayType>(SGV.getValueType()); in computeTypeMapping()
863 unsigned NumElements = cast<ArrayType>(C->getType())->getNumElements(); in getArrayElements()
905 Type *EltTy = cast<ArrayType>(TypeMap.get(SrcGV->getValueType())) in linkAppendingVarProto()
931 ArrayType *DstTy = cast<ArrayType>(DstGV->getValueType()); in linkAppendingVarProto()
953 ArrayType *NewType = ArrayType::get(EltTy, NewSize); in linkAppendingVarProto()
/llvm-project-15.0.7/llvm/unittests/Linker/
H A DLinkModulesTest.cpp40 AT = ArrayType::get(Type::getInt8PtrTy(Ctx), 3); in SetUp()
66 ArrayType *AT;
112 ArrayType *AT = ArrayType::get(Type::getInt8PtrTy(Ctx), 3); in TEST_F()

1234567891011