/llvm-project/mlir/lib/Dialect/SPIRV/Utils/ |
H A D | LayoutUtils.cpp | 56 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 D | SPIRVTypes.cpp | 98 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 D | SPIRVDialect.cpp | 416 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 D | LayoutUtils.h | 25 class RuntimeArrayType; variable 70 static Type decorateType(spirv::RuntimeArrayType arrayType, Size &alignment);
|
/llvm-project/mlir/include/mlir/Dialect/SPIRV/IR/ |
H A D | SPIRVTypes.h | 221 class RuntimeArrayType 222 : public Type::TypeBase<RuntimeArrayType, SPIRVType, 229 static RuntimeArrayType get(Type elementType); 232 static RuntimeArrayType get(Type elementType, unsigned stride);
|
H A D | SPIRVBase.td | 4177 def SPIRV_IsRTArrayType : CPred<"::llvm::isa<::mlir::spirv::RuntimeArrayType>($_self)">;
|
/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/ |
H A D | SPIRVConversion.cpp | 508 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 D | UnifyAliasedResourcePass.cpp | 77 dyn_cast<spirv::RuntimeArrayType>(structType.getElementType(0)); in getRuntimeArrayElementType()
|
/llvm-project/mlir/lib/Target/SPIRV/Serialization/ |
H A D | Serializer.cpp | 394 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 D | MemRefToSPIRV.cpp | 551 dstType = cast<spirv::RuntimeArrayType>(structElemType).getElementType(); in matchAndRewrite() 698 cast<spirv::RuntimeArrayType>(structElemType).getElementType()); in matchAndRewrite()
|
/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/ |
H A D | SPIRVToLLVM.cpp | 285 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 D | types.mlir | 126 // RuntimeArrayType
|
/llvm-project/mlir/lib/Target/SPIRV/Deserialization/ |
H A D | Deserializer.cpp | 1078 typeMap[operands[0]] = spirv::RuntimeArrayType::get( in processStructType()
|
/llvm-project/mlir/docs/Dialects/ |
H A D | SPIR-V.md | 354 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
|