Home
last modified time | relevance | path

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

12345678910>>...13

/llvm-project/llvm/unittests/Target/DirectX/
H A DCBufferDataLayoutTests.cpp52 ArrayType *T16A3 = ArrayType::get(T16, 3); in checkLegacyLayout()
53 ArrayType *T32A3 = ArrayType::get(T32, 3); in checkLegacyLayout()
54 ArrayType *T64A3 = ArrayType::get(T64, 3); in checkLegacyLayout()
60 ArrayType *T16V3A3 = ArrayType::get(T16V3, 3); in checkLegacyLayout()
61 ArrayType *T32V3A3 = ArrayType::get(T32V3, 3); in checkLegacyLayout()
62 ArrayType *T64V3A3 = ArrayType::get(T64V3, 3); in checkLegacyLayout()
68 ArrayType *T16V3A3A3 = ArrayType::get(T16V3A3, 3); in checkLegacyLayout()
69 ArrayType *T32V3A3A3 = ArrayType::get(T32V3A3, 3); in checkLegacyLayout()
70 ArrayType *T64V3A3A3 = ArrayType::get(T64V3A3, 3); in checkLegacyLayout()
124 ArrayType *StructArray0 = ArrayType::get(StructMix1, 3); in checkLegacyLayout()
[all …]
/llvm-project/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/clang/lib/CodeGen/
H A DCGVTT.cpp45 llvm::ArrayType *ArrayType = llvm::ArrayType::get( in EmitVTTDefinition() local
102 llvm::Constant *Init = llvm::ConstantArray::get(ArrayType, VTTComponents); in EmitVTTDefinition()
132 llvm::ArrayType *ArrayType = llvm::ArrayType::get( in GetAddrOfVTT()
137 Name, ArrayType, llvm::GlobalValue::ExternalLinkage, Align); in GetAddrOfVTT()
131 llvm::ArrayType *ArrayType = llvm::ArrayType::get( GetAddrOfVTT() local
/llvm-project/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp24 StatTy = ArrayType::get(PointerType::getUnqual(M->getContext()), 2); in SanitizerStatReport()
31 ArrayType *SanitizerStatReport::makeModuleStatsArrayTy() { in makeModuleStatsArrayTy()
32 return ArrayType::get(StatTy, Inits.size()); in makeModuleStatsArrayTy()
47 ArrayType *StatTy = ArrayType::get(PtrTy, 2); in create()
H A DModuleUtils.cpp64 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToGlobalArray()
108 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToUsedList()
150 ArrayType *ATy = ArrayType::get(ArrayEltTy, Init.size()); in removeFromUsedList()
174 Type *ArrayEltTy = cast<ArrayType>(GV->getValueType())->getElementType(); in setKCFIType()
183 ArrayType *ATy = ArrayType::get(ArrayEltTy, NewInit.size()); in declareSanitizerInitFunction()
417 ArrayType *FuncPtrTableT in lowerGlobalIFuncUsersAsGlobalCtor()
[all...]
/llvm-project/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp63 static ArrayType *createLoweredType(Type *OriginalType) {
64 return ArrayType::get(OriginalType, MaxThreads); in createLoweredType()
68 createLoweredInitializer(ArrayType *NewType, Constant *OriginalInitializer) {
127 ArrayType *AT = dyn_cast<ArrayType>(Ty); in isZeroLengthArray()
142 ArrayType *NewType = createLoweredType(GV->getValueType()); in lowerGlobal()
/llvm-project/mlir/lib/Dialect/EmitC/IR/
H A DEmitC.cpp66 if (auto arrayType = llvm::dyn_cast<emitc::ArrayType>(type)) { in isSupportedEmitCType()
68 return !llvm::isa<emitc::ArrayType>(elemType) && in isSupportedEmitCType()
82 if (llvm::isa<emitc::ArrayType>(elemType)) { in isSupportedEmitCType()
89 return !llvm::isa<emitc::ArrayType>(type) && isSupportedEmitCType(type); in isSupportedEmitCType()
292 if (llvm::any_of(getResultTypes(), llvm::IsaPred<ArrayType>)) { in verify()
564 if (getNumResults() == 1 && isa<ArrayType>(getResultTypes()[0])) in verify()
853 if (auto arrayType = llvm::dyn_cast<emitc::ArrayType>(getValue().getType())) { in verify()
933 // ArrayType in parse()
936 Type emitc::ArrayType::parse(AsmParser &parser) { in parse()
955 return parser.getChecked<ArrayType>(dimension in verify()
[all...]
/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCtorDtorLowering.cpp80 ArrayType *PtrArrayTy = ArrayType::get(PtrTy, 0); in createInitOrFiniCalls()
H A DAMDGPULowerModuleLDSPass.cpp321 ArrayType *KernelOffsetsType = ArrayType::get(I32, Variables.size()); in getAddressesOfVariablesInKernel()
348 ArrayType *KernelOffsetsType = in buildLookupTable()
349 ArrayType::get(Type::getInt32Ty(Ctx), NumberVariables); in buildLookupTable()
351 ArrayType *AllKernelsOffsetsType = in buildLookupTable()
352 ArrayType::get(KernelOffsetsType, NumberKernels); in buildLookupTable()
851 auto *emptyCharArray = ArrayType::get(Type::getInt8Ty(Ctx), 0); in buildRepresentativeDynamicLDSInstance()
891 auto *emptyCharArray = ArrayType::get(Type::getInt8Ty(Ctx), 0); in lowerDynamicLDSVariables()
901 ArrayType *t = ArrayType in lowerDynamicLDSVariables()
[all...]
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DAvoidCArraysCheck.cpp76 const auto *ArrayType = Result.Nodes.getNodeAs<TypeLoc>("typeloc"); in check()
79 const bool IsVLA = ArrayType->getTypePtr()->isVariableArrayType(); in check()
84 } else if (ArrayType->getTypePtr()->isIncompleteArrayType() && IsInParam) {
96 diag(ArrayType->getBeginLoc(),
74 const auto *ArrayType = Result.Nodes.getNodeAs<TypeLoc>("typeloc"); check() local
/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrOrderFile.cpp49 ArrayType *BufferTy;
50 ArrayType *MapTy;
64 ArrayType::get(Type::getInt64Ty(Ctx), INSTR_ORDER_FILE_BUFFER_SIZE); in createOrderFileData()
66 MapTy = ArrayType::get(Type::getInt8Ty(Ctx), NumFunctions); in createOrderFileData()
/llvm-project/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp28 // ArrayType
52 ArrayType ArrayType::get(Type elementType, unsigned elementCount) { in get()
53 assert(elementCount && "ArrayType needs at least one element"); in get()
58 ArrayType ArrayType::get(Type elementType, unsigned elementCount, in get()
60 assert(elementCount && "ArrayType needs at least one element"); in get()
64 unsigned ArrayType::getNumElements() const { return getImpl()->elementCount; } in getNumElements()
66 Type ArrayType::getElementType() const { return getImpl()->elementType; } in getElementType()
68 unsigned ArrayType
[all...]
/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSanitizerStats.h45 ArrayType *StatTy;
49 ArrayType *makeModuleStatsArrayTy();
/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h395 class ArrayType : public Type { in classof()
401 ArrayType(Type *ElType, uint64_t NumEl);
404 ArrayType(const ArrayType &) = delete;
405 ArrayType &operator=(const ArrayType &) = delete;
410 /// This static method is the primary way to construct an ArrayType
411 static ArrayType *get(Type *ElementType, uint64_t NumElements);
423 return cast<ArrayType>(this)->getNumElements();
/llvm-project/mlir/include/mlir/Dialect/SPIRV/Utils/
H A DLayoutUtils.h24 class ArrayType; variable
68 static Type decorateType(spirv::ArrayType arrayType, Size &size,
/llvm-project/llvm/lib/IR/
H A DType.cpp63 if (const auto *ATy = dyn_cast<ArrayType>(this)) in isScalableTy()
77 if (const auto *ATy = dyn_cast<ArrayType>(this)) in getFltSemantics()
93 if (const auto *ATy = dyn_cast<ArrayType>(this)) in getFloatingPointTy()
186 if (auto *ATy = dyn_cast<ArrayType>(this)) { in getPrimitiveSizeInBits()
255 if (auto *ATy = dyn_cast<ArrayType>(this)) in getInt64Ty()
736 // ArrayType Implementation in get()
739 ArrayType::ArrayType(Type *ElType, uint64_t NumEl) in get()
746 ArrayType *ArrayType in get()
640 ArrayType::ArrayType(Type *ElType, uint64_t NumEl) ArrayType() function in ArrayType
[all...]
/llvm-project/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/mlir/lib/Dialect/SPIRV/Utils/
H A DLayoutUtils.cpp90 if (auto arrayType = dyn_cast<spirv::ArrayType>(type)) in decorateType()
124 Type VulkanLayoutUtils::decorateType(spirv::ArrayType arrayType, in decorateType()
138 return spirv::ArrayType::get(memberType, numElements, elementSize); in decorateType()
/llvm-project/mlir/lib/Conversion/MemRefToEmitC/
H A DMemRefToEmitC.cpp132 dyn_cast<TypedValue<emitc::ArrayType>>(operands.getMemref()); in matchAndRewrite()
152 dyn_cast<TypedValue<emitc::ArrayType>>(operands.getMemref());
179 return emitc::ArrayType::get(memRefType.getShape(), in populateMemRefToEmitCTypeConversion()
/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp25 while (const ArrayType *vt = dyn_cast<ArrayType>(t)) { in FindVA()
/llvm-project/llvm/lib/CodeGen/
H A DAnalysis.cpp53 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeLinearIndex()
106 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeValueVTs()
159 if (ArrayType *ATy = dyn_cast<ArrayType>(&Ty)) { in computeValueLLTs()
422 if (ArrayType *AT = dyn_cast<ArrayType>(T)) in indexReallyValid()
/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp
/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp192 } else if (auto *DArrTy = dyn_cast<ArrayType>(DstTy)) { in areTypesIsomorphic()
193 if (DArrTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements()) in areTypesIsomorphic()
293 return *Entry = ArrayType::get(ElementTypes[0], in get()
294 cast<ArrayType>(Ty)->getNumElements()); in get()
790 ArrayType *DAT = cast<ArrayType>(DGV->getValueType()); in computeTypeMapping()
791 ArrayType *SAT = cast<ArrayType>(SGV.getValueType()); in computeTypeMapping()
867 unsigned NumElements = cast<ArrayType>(C->getType())->getNumElements(); in computeTypeMapping()
913 Type *EltTy = cast<ArrayType>(TypeMa in linkAppendingVarProto()
[all...]
/llvm-project/mlir/lib/Target/LLVMIR/Dialect/OpenACC/
H A DOpenACCToLLVMIRTranslation.cpp92 auto *arrI8PtrTy = llvm::ArrayType::get(i8PtrTy, totalNbOperand); in processOperands()
94 auto *arrI64Ty = llvm::ArrayType::get(i64Ty, totalNbOperand); in processOperands()
362 llvm::ArrayType::get(llvm::Type::getInt64Ty(ctx), totalNbOperand), in convertDataOp()
368 llvm::ArrayType::get(llvm::PointerType::getUnqual(ctx), totalNbOperand), in convertDataOp()
459 llvm::ArrayType::get(llvm::Type::getInt64Ty(ctx), totalNbOperand), in convertStandaloneDataOp()
465 llvm::ArrayType::get(llvm::PointerType::getUnqual(ctx), totalNbOperand), in convertStandaloneDataOp()
/llvm-project/llvm/lib/Target/DirectX/
H A DCBufferDataLayout.cpp63 if (isa<StructType>(EltTy) || isa<ArrayType>(EltTy)) in applyRowAlign()
76 } else if (auto *AT = dyn_cast<ArrayType>(Ty)) { in getTypeAllocSize()

12345678910>>...13