|
MLIR 24.0.0git
|
Base class for state that lives as long as the module translation. More...
#include "mlir/Target/LLVMIR/ModuleTranslation.h"
Public Member Functions | |
| virtual | ~Extension () |
| virtual LogicalResult | finalize () |
| Called once after all operations have been translated and before the LLVM module is verified. | |
Base class for state that lives as long as the module translation.
Dialect translations use extensions to keep state shared across the translation of several operations (e.g. IR builders or handle mappings) without the core translation depending on those dialects. Derived classes must provide an explicit TypeID.
Definition at line 353 of file ModuleTranslation.h.
|
virtualdefault |
|
inlinevirtual |
Called once after all operations have been translated and before the LLVM module is verified.
Extensions are finalized in creation order.
Definition at line 359 of file ModuleTranslation.h.
References success().