|
MLIR 22.0.0git
|
Interface collection for translation to LLVM IR, dispatches to a concrete interface implementation based on the dialect to which the given op belongs. More...
#include "mlir/Target/LLVMIR/LLVMTranslationInterface.h"
Public Member Functions | |
| virtual LogicalResult | convertOperation (Operation *op, llvm::IRBuilderBase &builder, LLVM::ModuleTranslation &moduleTranslation) const |
| Translates the given operation to LLVM IR using the interface implemented by the op's dialect. | |
| virtual LogicalResult | amendOperation (Operation *op, ArrayRef< llvm::Instruction * > instructions, NamedAttribute attribute, LLVM::ModuleTranslation &moduleTranslation) const |
| Acts on the given operation using the interface implemented by the dialect of one of the operation's dialect attributes. | |
| virtual LogicalResult | convertParameterAttr (LLVM::LLVMFuncOp function, int argIdx, NamedAttribute attribute, LLVM::ModuleTranslation &moduleTranslation) const |
| Acts on the given function operation using the interface implemented by the dialect of one of the function parameter attributes. | |
| Public Member Functions inherited from mlir::DialectInterfaceCollection< LLVMTranslationDialectInterface > | |
| DialectInterfaceCollection (MLIRContext *ctx) | |
| Collect the registered dialect interfaces within the provided context. | |
| const LLVMTranslationDialectInterface * | getInterfaceFor (Object *obj) const |
| Get the interface for a given object, or null if one is not registered. | |
| iterator | begin () const |
| iterator | end () const |
| Public Member Functions inherited from mlir::detail::DialectInterfaceCollectionBase | |
| DialectInterfaceCollectionBase (MLIRContext *ctx, TypeID interfaceKind, StringRef interfaceName) | |
| virtual | ~DialectInterfaceCollectionBase () |
Additional Inherited Members | |
| Public Types inherited from mlir::DialectInterfaceCollection< LLVMTranslationDialectInterface > | |
| using | Base |
| using | iterator |
| Iterator access to the held interfaces. | |
| Protected Member Functions inherited from mlir::detail::DialectInterfaceCollectionBase | |
| const DialectInterface * | getInterfaceFor (Operation *op) const |
| Get the interface for the dialect of given operation, or null if one is not registered. | |
| const DialectInterface * | getInterfaceFor (Dialect *dialect) const |
| Get the interface for the given dialect. | |
| template<typename InterfaceT> | |
| iterator< InterfaceT > | interface_begin () const |
| Iterator access to the held interfaces. | |
| template<typename InterfaceT> | |
| iterator< InterfaceT > | interface_end () const |
Interface collection for translation to LLVM IR, dispatches to a concrete interface implementation based on the dialect to which the given op belongs.
Definition at line 76 of file LLVMTranslationInterface.h.
|
inlinevirtual |
Acts on the given operation using the interface implemented by the dialect of one of the operation's dialect attributes.
Definition at line 94 of file LLVMTranslationInterface.h.
References mlir::DialectInterfaceCollection< LLVMTranslationDialectInterface >::getInterfaceFor(), mlir::NamedAttribute::getNameDialect(), and success().
|
inlinevirtual |
Translates the given operation to LLVM IR using the interface implemented by the op's dialect.
Definition at line 84 of file LLVMTranslationInterface.h.
References mlir::DialectInterfaceCollection< LLVMTranslationDialectInterface >::getInterfaceFor().
|
inlinevirtual |
Acts on the given function operation using the interface implemented by the dialect of one of the function parameter attributes.
Definition at line 108 of file LLVMTranslationInterface.h.
References mlir::DialectInterfaceCollection< LLVMTranslationDialectInterface >::getInterfaceFor(), mlir::NamedAttribute::getName(), mlir::NamedAttribute::getNameDialect(), and success().