MLIR 24.0.0git
mlir::LLVM::ModuleTranslation::Extension Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Extension()

ModuleTranslation::Extension::~Extension ( )
virtualdefault

Member Function Documentation

◆ finalize()

virtual LogicalResult mlir::LLVM::ModuleTranslation::Extension::finalize ( )
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().


The documentation for this class was generated from the following files: