picceler
Loading...
Searching...
No Matches
picceler::MLIRGen Class Reference

MLIR code generator that converts AST nodes to MLIR constructs. This offers the initial IR generation from the AST. More...

#include <mlir_gen.h>

Public Member Functions

 MLIRGen (mlir::MLIRContext *context)
mlir::ModuleOp generate (ModuleNode *root)
 Generates MLIR code from the given AST root node.

Detailed Description

MLIR code generator that converts AST nodes to MLIR constructs. This offers the initial IR generation from the AST.

Constructor & Destructor Documentation

◆ MLIRGen()

picceler::MLIRGen::MLIRGen ( mlir::MLIRContext * context)

Member Function Documentation

◆ generate()

mlir::ModuleOp picceler::MLIRGen::generate ( ModuleNode * root)

Generates MLIR code from the given AST root node.

Parameters
rootThe root node of the AST.
Returns
The generated MLIR module operation.

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