Peano
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1# This file is part of the ExaHyPE2 project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
3
4#from .Parser import Parser
5from .AbstractSyntaxTree import *
6from .Expressions import *
7from .Types import *
8from .Parser import Parser
9from .printers.CPPPrinter import CPPPrinter
10from .printers.OMPTargetPrinter import OMPTargetPrinter
11from .kernels import translate_dslhype_function, generate_namespace, generate_mlir_function_call_bridges
12
13
14def __getattr__(name):
15 """!
16 Lazy import of the MLIR printer, so xdsl is only required if it is used.
17 """
18 if name == "MLIRPrinter":
19 from .printers.MLIRPrinter import MLIRPrinter
20
21 return MLIRPrinter
22 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
__getattr__(name)
Lazy import of the MLIR printer, so xdsl is only required if it is used.
Definition __init__.py:14