My Project
|
#include <SPIRVLowering.h>
Public Member Functions | |
Type | convertType (Type type) override |
Converts the given standard type to SPIR-V correspondence. More... | |
![]() | |
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< SignatureConversion > | convertBlockSignature (Block *block) |
virtual Operation * | materializeConversion (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... | |
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.
Converts the given standard type
to SPIR-V correspondence.
Reimplemented from mlir::TypeConverter.
|
static |
Gets the SPIR-V correspondence for the standard index type.