My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::SPIRVTypeConverter Class Referencefinal

#include <SPIRVLowering.h>

Inheritance diagram for mlir::SPIRVTypeConverter:
Inheritance graph
[legend]
Collaboration diagram for mlir::SPIRVTypeConverter:
Collaboration graph
[legend]

Public Member Functions

Type convertType (Type type) override
 Converts the given standard type to SPIR-V correspondence. More...
 
- Public Member Functions inherited from mlir::TypeConverter
virtual ~TypeConverter ()=default
 
virtual LogicalResult convertType (Type t, SmallVectorImpl< Type > &results)
 This hooks allows for converting a type. More...
 
LogicalResult convertTypes (ArrayRef< Type > types, SmallVectorImpl< Type > &results)
 
bool isLegal (Type type)
 
bool isSignatureLegal (FunctionType funcType)
 
virtual LogicalResult convertSignatureArg (unsigned inputNo, Type type, SignatureConversion &result)
 This hook allows for converting a specific argument of a signature. More...
 
Optional< SignatureConversionconvertBlockSignature (Block *block)
 
virtual OperationmaterializeConversion (PatternRewriter &rewriter, Type resultType, ArrayRef< Value > inputs, Location loc)
 

Static Public Member Functions

static Type getIndexType (MLIRContext *context)
 Gets the SPIR-V correspondence for the standard index type. More...
 

Detailed Description

Type conversion from standard types to SPIR-V types for shader interface.

For composite types, this converter additionally performs type wrapping to satisfy shader interface requirements: shader interface types must be pointers to structs.

Member Function Documentation

◆ convertType()

Type SPIRVTypeConverter::convertType ( Type  type)
overridevirtual

Converts the given standard type to SPIR-V correspondence.

Reimplemented from mlir::TypeConverter.

◆ getIndexType()

Type SPIRVTypeConverter::getIndexType ( MLIRContext context)
static

Gets the SPIR-V correspondence for the standard index type.


The documentation for this class was generated from the following files: