MLIR
20.0.0git
|
Base class for dialect interfaces providing translation to LLVM IR. More...
#include "mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h"
Public Member Functions | |
ConvertToLLVMPatternInterface (Dialect *dialect) | |
virtual void | loadDependentDialects (MLIRContext *context) const |
Hook for derived dialect interface to load the dialects they target. More... | |
virtual void | populateConvertToLLVMConversionPatterns (ConversionTarget &target, LLVMTypeConverter &typeConverter, RewritePatternSet &patterns) const =0 |
Hook for derived dialect interface to provide conversion patterns and mark dialect legal for the conversion target. More... | |
Additional Inherited Members | |
Public Types inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT > | |
using | Base = DialectInterfaceBase< ConcreteType, BaseT > |
Static Public Member Functions inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT > | |
static TypeID | getInterfaceID () |
Get a unique id for the derived interface type. More... | |
Protected Member Functions inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT > | |
DialectInterfaceBase (Dialect *dialect) | |
Base class for dialect interfaces providing translation to LLVM IR.
Dialects that can be translated should provide an implementation of this interface for the supported operations. The interface may be implemented in a separate library to avoid the "main" dialect library depending on LLVM IR. The interface can be attached using the delayed registration mechanism available in DialectRegistry.
Definition at line 30 of file ToLLVMInterface.h.
|
inline |
Definition at line 33 of file ToLLVMInterface.h.
|
inlinevirtual |
Hook for derived dialect interface to load the dialects they target.
The LLVMDialect is implicitly already loaded, but this method allows to load other intermediate dialects used in the conversion, or target dialects like NVVM for example.
Definition at line 39 of file ToLLVMInterface.h.
|
pure virtual |
Hook for derived dialect interface to provide conversion patterns and mark dialect legal for the conversion target.