#include <ModuleTranslation.h>
◆ ModuleTranslation()
mlir::LLVM::ModuleTranslation::ModuleTranslation |
( |
Operation * |
module | ) |
|
|
inlineexplicitprotected |
◆ ~ModuleTranslation()
virtual mlir::LLVM::ModuleTranslation::~ModuleTranslation |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ convertOperation()
Given a single MLIR operation, create the corresponding LLVM IR operation using the builder
. LLVM IR Builder does not have a generic interface so this has to be a long chain of if
s calling different functions with a different number of arguments.
◆ getModuleBody()
static Block& mlir::LLVM::ModuleTranslation::getModuleBody |
( |
Operation * |
m | ) |
|
|
inlinestatic |
A helper method to get the single Block in an operation honoring LLVM's module requirements.
◆ lookupValues()
A helper to look up remapped operands in the value remapping table.
A helper to look up remapped operands in the value remapping table.`.
◆ prepareLLVMModule()
std::unique_ptr< llvm::Module > ModuleTranslation::prepareLLVMModule |
( |
Operation * |
m | ) |
|
|
staticprotected |
◆ translateModule()
template<typename T = ModuleTranslation>
static std::unique_ptr<llvm::Module> mlir::LLVM::ModuleTranslation::translateModule |
( |
Operation * |
m | ) |
|
|
inlinestatic |
◆ blockMapping
DenseMap<Block *, llvm::BasicBlock *> mlir::LLVM::ModuleTranslation::blockMapping |
|
protected |
◆ functionMapping
llvm::StringMap<llvm::Function *> mlir::LLVM::ModuleTranslation::functionMapping |
|
protected |
◆ valueMapping
DenseMap<Value, llvm::Value *> mlir::LLVM::ModuleTranslation::valueMapping |
|
protected |
The documentation for this class was generated from the following files: