Home
last modified time | relevance | path

Searched refs:RuntimeArrayType (Results 1 – 14 of 14) sorted by relevance

/llvm-project/mlir/lib/Dialect/SPIRV/Utils/
H A DLayoutUtils.cpp56 isa<spirv::RuntimeArrayType>(structType.getElementType(i)))); in decorateType()
94 if (auto arrayType = dyn_cast<spirv::RuntimeArrayType>(type)) { in decorateType()
141 Type VulkanLayoutUtils::decorateType(spirv::RuntimeArrayType arrayType, in decorateType()
147 return spirv::RuntimeArrayType::get(memberType, elementSize); in decorateType()
/llvm-project/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp98 spirv::MatrixType, spirv::RuntimeArrayType, in classof()
110 .Case<ArrayType, CooperativeMatrixType, RuntimeArrayType, VectorType>( in getElementType()
132 if (llvm::isa<RuntimeArrayType>(*this)) { in getNumElements()
140 return !llvm::isa<CooperativeMatrixType, RuntimeArrayType>(*this); in getNumElements()
147 .Case<ArrayType, CooperativeMatrixType, MatrixType, RuntimeArrayType, in hasCompileTimeKnownNumElements()
161 .Case<ArrayType, CooperativeMatrixType, MatrixType, RuntimeArrayType, in getExtensions()
440 // RuntimeArrayType in getExtensions()
463 RuntimeArrayType RuntimeArrayType::get(Type elementType) {
467 RuntimeArrayType RuntimeArrayTyp in construct()
[all...]
H A DSPIRVDialect.cpp416 return RuntimeArrayType::get(elementType, stride); in parsePointerType()
776 static void print(RuntimeArrayType type, DialectAsmPrinter &os) { in parseType()
859 .Case<ArrayType, CooperativeMatrixType, PointerType, RuntimeArrayType, in print()
/llvm-project/mlir/include/mlir/Dialect/SPIRV/Utils/
H A DLayoutUtils.h25 class RuntimeArrayType; variable
70 static Type decorateType(spirv::RuntimeArrayType arrayType, Size &alignment);
/llvm-project/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVTypes.h221 class RuntimeArrayType
222 : public Type::TypeBase<RuntimeArrayType, SPIRVType,
229 static RuntimeArrayType get(Type elementType);
232 static RuntimeArrayType get(Type elementType, unsigned stride);
H A DSPIRVBase.td4177 def SPIRV_IsRTArrayType : CPred<"::llvm::isa<::mlir::spirv::RuntimeArrayType>($_self)">;
/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/
H A DSPIRVConversion.cpp508 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride); in convertSubByteMemrefType()
545 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride); in convertMemrefType()
627 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride);
H A DUnifyAliasedResourcePass.cpp77 dyn_cast<spirv::RuntimeArrayType>(structType.getElementType(0)); in getRuntimeArrayElementType()
/llvm-project/mlir/lib/Target/SPIRV/Serialization/
H A DSerializer.cpp394 LogicalResult Serializer::processTypeDecoration<spirv::RuntimeArrayType>( in processTypeImpl()
395 Location loc, spirv::RuntimeArrayType type, uint32_t resultID) { in processTypeImpl()
627 if (auto runtimeArrayType = dyn_cast<spirv::RuntimeArrayType>(type)) { in prepareBasicType()
/llvm-project/mlir/lib/Conversion/MemRefToSPIRV/
H A DMemRefToSPIRV.cpp551 dstType = cast<spirv::RuntimeArrayType>(structElemType).getElementType(); in matchAndRewrite()
698 cast<spirv::RuntimeArrayType>(structElemType).getElementType()); in matchAndRewrite()
/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/
H A DSPIRVToLLVM.cpp285 static std::optional<Type> convertRuntimeArrayType(spirv::RuntimeArrayType type, in mapToOpenCLAddressSpace()
1801 typeConverter.addConversion([&](spirv::RuntimeArrayType type) {
/llvm-project/mlir/test/Dialect/SPIRV/IR/
H A Dtypes.mlir126 // RuntimeArrayType
/llvm-project/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializer.cpp1078 typeMap[operands[0]] = spirv::RuntimeArrayType::get( in processStructType()
/llvm-project/mlir/docs/Dialects/
H A DSPIR-V.md354 This corresponds to SPIR-V [runtime array type][RuntimeArrayType]. Its syntax is
1385 [RuntimeArrayType]: https://www.khronos.org/registry/spir-v/specs/unified1/SPIRV.html#OpTypeRuntimeArray