MLIR
20.0.0git
|
Use Translate[ToMLIR|FromMLIR]Registration as an initializer that registers a function and associates it with name. More...
#include "mlir/Tools/mlir-translate/Translation.h"
Public Member Functions | |
TranslateToMLIRRegistration (llvm::StringRef name, llvm::StringRef description, const TranslateSourceMgrToMLIRFunction &function, const DialectRegistrationFunction &dialectRegistration=[](DialectRegistry &) {}, std::optional< llvm::Align > inputAlignment=std::nullopt) | |
TranslateToMLIRRegistration (llvm::StringRef name, llvm::StringRef description, const TranslateRawSourceMgrToMLIRFunction &function, const DialectRegistrationFunction &dialectRegistration=[](DialectRegistry &) {}, std::optional< llvm::Align > inputAlignment=std::nullopt) | |
TranslateToMLIRRegistration (llvm::StringRef name, llvm::StringRef description, const TranslateStringRefToMLIRFunction &function, const DialectRegistrationFunction &dialectRegistration=[](DialectRegistry &) {}, std::optional< llvm::Align > inputAlignment=std::nullopt) | |
Use Translate[ToMLIR|FromMLIR]Registration as an initializer that registers a function and associates it with name.
This requires that a translation has not been registered to a given name. inputAlign
is an optional expected alignment for the input data.
Usage:
// At file scope. namespace mlir { void registerTRexToMLIRRegistration() { TranslateToMLIRRegistration Unused(&MySubCommand, [] { ... }); } } // namespace mlir
Definition at line 110 of file Translation.h.
mlir::TranslateToMLIRRegistration::TranslateToMLIRRegistration | ( | llvm::StringRef | name, |
llvm::StringRef | description, | ||
const TranslateSourceMgrToMLIRFunction & | function, | ||
const DialectRegistrationFunction & | dialectRegistration = [](DialectRegistry &) {} , |
||
std::optional< llvm::Align > | inputAlignment = std::nullopt |
||
) |
mlir::TranslateToMLIRRegistration::TranslateToMLIRRegistration | ( | llvm::StringRef | name, |
llvm::StringRef | description, | ||
const TranslateRawSourceMgrToMLIRFunction & | function, | ||
const DialectRegistrationFunction & | dialectRegistration = [](DialectRegistry &) {} , |
||
std::optional< llvm::Align > | inputAlignment = std::nullopt |
||
) |
mlir::TranslateToMLIRRegistration::TranslateToMLIRRegistration | ( | llvm::StringRef | name, |
llvm::StringRef | description, | ||
const TranslateStringRefToMLIRFunction & | function, | ||
const DialectRegistrationFunction & | dialectRegistration = [](DialectRegistry &) {} , |
||
std::optional< llvm::Align > | inputAlignment = std::nullopt |
||
) |