MLIR
15.0.0git
|
#include "mlir-c/Registration.h"
#include "mlir/CAPI/IR.h"
#include "mlir/InitAllDialects.h"
#include "mlir/InitAllPasses.h"
#include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h"
Go to the source code of this file.
Functions | |
void | mlirRegisterAllDialects (MlirContext context) |
Registers all dialects known to core MLIR with the provided Context. More... | |
void | mlirRegisterAllLLVMTranslations (MlirContext context) |
Register all translations to LLVM IR for dialects that can support it. More... | |
void | mlirRegisterAllPasses () |
Register all compiler passes of MLIR. More... | |
void mlirRegisterAllDialects | ( | MlirContext | context | ) |
Registers all dialects known to core MLIR with the provided Context.
This is needed before creating IR for these Dialects. TODO: Remove this function once the real registration API is finished.
Definition at line 16 of file Registration.cpp.
References mlir::registerAllDialects(), and unwrap().
Referenced by mlir::python::PyMlirContext::createNewContextForInit().
void mlirRegisterAllLLVMTranslations | ( | MlirContext | context | ) |
Register all translations to LLVM IR for dialects that can support it.
Definition at line 22 of file Registration.cpp.
References mlir::registerLLVMDialectTranslation(), and unwrap().
void mlirRegisterAllPasses | ( | ) |
Register all compiler passes of MLIR.
Definition at line 26 of file Registration.cpp.
References mlir::registerAllPasses().
Referenced by PYBIND11_MODULE().