Skip to content

stages

MLIRLowerer

Bases: Stage

Source code in src/finch/codegen/mlir_codegen/stages.py
15
16
17
18
19
20
21
class MLIRLowerer(Stage):
    @abstractmethod
    def lower(self, prgm: asm.Module, *, mode: CompilerMode | None = None) -> MLIRCode:
        """
        Lower the given assembly program to textual MLIR.

        """

lower(prgm, *, mode=None) abstractmethod

Lower the given assembly program to textual MLIR.

Source code in src/finch/codegen/mlir_codegen/stages.py
16
17
18
19
20
21
@abstractmethod
def lower(self, prgm: asm.Module, *, mode: CompilerMode | None = None) -> MLIRCode:
    """
    Lower the given assembly program to textual MLIR.

    """