13 #ifndef MLIR_DIALECT_SPIRV_SPIRVLOWERING_H 14 #define MLIR_DIALECT_SPIRV_SPIRVLOWERING_H 28 using TypeConverter::TypeConverter;
38 template <
typename SourceOp>
44 typeConverter(typeConverter) {}
51 enum class BuiltIn : uint32_t;
61 ArrayRef<InterfaceVarABIAttr> argABIInfo);
65 #endif // MLIR_DIALECT_SPIRV_SPIRVLOWERING_H Definition: InferTypeOpInterface.cpp:20
Base class to define a conversion pattern to lower SourceOp into SPIR-V.
Definition: SPIRVLowering.h:39
Definition: DialectConversion.h:222
Definition: LogicalResult.h:18
LogicalResult setABIAttrs(FuncOp funcOp, EntryPointABIAttr entryPointInfo, ArrayRef< InterfaceVarABIAttr > argABIInfo)
Definition: PatternMatch.h:29
SPIRVTypeConverter & typeConverter
Definition: SPIRVLowering.h:47
Definition: DialectConversion.h:39
Definition: MLIRContext.h:34
Type convertType(Type type) override
Converts the given standard type to SPIR-V correspondence.
Definition: SPIRVLowering.cpp:124
enum BuiltIn uint32_t Value getBuiltinVariableValue(Operation *op, BuiltIn builtin, OpBuilder &builder)
SPIRVOpLowering(MLIRContext *context, SPIRVTypeConverter &typeConverter, PatternBenefit benefit=1)
Definition: SPIRVLowering.h:41
Definition: SPIRVLowering.h:26
static Type getIndexType(MLIRContext *context)
Gets the SPIR-V correspondence for the standard index type.
Definition: SPIRVLowering.cpp:25