|
Peano
|


Public Member Functions | |
| __init__ (self, int spaces_per_tab, str internal_name) | |
| str | print_name (self, Name name, int indent_level=0) |
| str | print_function_declaration (self, Function function, int indent_level=0) |
| str | print_function_definition (self, Function function, int indent_level=0) |
| str | print_function_declaration_with_timer (self, Function function, int indent_level=0) |
| str | print_function_definition_with_timer (self, Function function, int indent_level=0) |
| str | print_function_bridge (self, Function function, int indent_level=0) |
| SSAValue | print_array_allocation (self, ArrayAllocation array_allocation, int indent_level=0) |
| print_array_deallocation (self, ArrayDeallocation array_deallocation, int indent_level=0) | |
| SSAValue | print_memory_allocation (self, MemoryAllocation memory_allocation, int indent_level=0) |
| str | print_memory_deallocation (self, MemoryDeallocation memory_deallocation, int indent_level=0) |
| print_function_call (self, FunctionCall function_call, int indent_level=0) | |
| print_for (self, For for_loop, int indent_level=0) | |
| print_construction (self, Construction construction, int indent_level=0) | |
| print_assignment (self, Assignment assignment, int indent_level=0) | |
| print_data_block_construction_from_element (self, DataBlockConstructionFromElement data_block_construction_from_element, int indent_level=0) | |
| print_data_block_construction_from_external (self, DataBlockConstructionFromExternal data_block_construction_from_external, int indent_level=0) | |
| print_data_block_construction_from_function_call (self, DataBlockConstructionFromFunctionCall data_block_construction_from_function_call, int indent_level=0) | |
| print_data_block_construction_from_operation (self, DataBlockConstructionFromOperation data_block_construction_from_operation, int indent_level=0) | |
| print_data_block_assignment (self, DataBlockAssignment data_block_assignment, int indent_level=0) | |
| str | print_data_block_unary_max (self, DataBlockUnaryMax data_block_unary_max, int indent_level=0) |
| print_comment (self, Comment comment, int indent_level=0) | |
| SSAValue | print_variable (self, Variable variable, int indent_level=0) |
| Expression Prints. | |
| SSAValue | print_integer (self, Integer integer, int indent_level=0) |
| SSAValue | print_index (self, Index index, int indent_level=0) |
| SSAValue | print_float (self, Float float_val, int indent_level=0) |
| AffineExpr | generate_affine_expression (self, Element|Variable element_node) |
| SSAValue | print_subscript (self, Subscript subscript, int indent_level=0) |
| SSAValue | print_element_binary_operation (self, ElementBinaryOperation element_binary_operation, int indent_level=0) |
| print_element_unary_operation (self, ElementUnaryOperation element_unary_operation, int indent_level=0) | |
| print_element_index (self, ElementIndex element_index, int indent_level=0) | |
| builtin.IntegerType | print_integer_type (self, TInteger integer_type, int indent_level=0) |
| Type Prints. | |
| builtin.IndexType | print_index_type (self, TIndex index_type, int indent_level=0) |
| builtin.Float64Type | print_float_type (self, TFloat float_type, int indent_level=0) |
| print_vector_type (self, TVector vector_type, int indent_level=0) | |
| builtin.MemRefType | print_array_type (self, TArray array_type, int indent_level=0) |
| Attribute | print_struct_type (self, TStruct struct_type, int indent_level=0) |
| builtin.FunctionType | print_function_type (self, TFunction function_type, int indent_level=0) |
Data Fields | |
| list | builders = [] |
| output_string_stream = io.StringIO() | |
| xdsl_printer = xdsl.printer.Printer(stream=self.output_string_stream, indent_num_spaces=spaces_per_tab) | |
| dict | symbol_map = {} |
| dict | struct_map = {} |
| int | nested_affine_level = 0 |
| dict | affine_dimension_map = {} |
| dict | affine_symbol_map = {} |
| cpp_printer = CPPPrinter(spaces_per_tab) | |
| internal_name = internal_name | |
Static Public Attributes | |
| xdsl_memref_descriptor_1d | |
| xdsl_memref_descriptor_2d | |
| xdsl_memref_descriptor_nested | |
Definition at line 34 of file MLIRPrinter.py.
| MLIRPrinter.MLIRPrinter.__init__ | ( | self, | |
| int | spaces_per_tab, | ||
| str | internal_name ) |
Definition at line 66 of file MLIRPrinter.py.
| AffineExpr MLIRPrinter.MLIRPrinter.generate_affine_expression | ( | self, | |
| Element | Variable | element_node ) |
Definition at line 508 of file MLIRPrinter.py.
References affine_dimension_map, affine_symbol_map, assert, generate_affine_expression(), exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.
Referenced by generate_affine_expression(), print_assignment(), print_element_index(), print_memory_allocation(), and print_subscript().


| SSAValue MLIRPrinter.MLIRPrinter.print_array_allocation | ( | self, | |
| ArrayAllocation | array_allocation, | ||
| int | indent_level = 0 ) |
Definition at line 190 of file MLIRPrinter.py.
References builders, exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.
| MLIRPrinter.MLIRPrinter.print_array_deallocation | ( | self, | |
| ArrayDeallocation | array_deallocation, | ||
| int | indent_level = 0 ) |
Definition at line 215 of file MLIRPrinter.py.
| builtin.MemRefType MLIRPrinter.MLIRPrinter.print_array_type | ( | self, | |
| TArray | array_type, | ||
| int | indent_level = 0 ) |
Definition at line 821 of file MLIRPrinter.py.
References assert.
| MLIRPrinter.MLIRPrinter.print_assignment | ( | self, | |
| Assignment | assignment, | ||
| int | indent_level = 0 ) |
Definition at line 350 of file MLIRPrinter.py.
References affine_dimension_map, affine_symbol_map, assert, builders, generate_affine_expression(), exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.

| MLIRPrinter.MLIRPrinter.print_comment | ( | self, | |
| Comment | comment, | ||
| int | indent_level = 0 ) |
Definition at line 477 of file MLIRPrinter.py.
| MLIRPrinter.MLIRPrinter.print_construction | ( | self, | |
| Construction | construction, | ||
| int | indent_level = 0 ) |
Definition at line 327 of file MLIRPrinter.py.
References assert, builders, MLIRPrinter.get_xdsl_type(), exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.

| MLIRPrinter.MLIRPrinter.print_data_block_assignment | ( | self, | |
| DataBlockAssignment | data_block_assignment, | ||
| int | indent_level = 0 ) |
Definition at line 471 of file MLIRPrinter.py.
| MLIRPrinter.MLIRPrinter.print_data_block_construction_from_element | ( | self, | |
| DataBlockConstructionFromElement | data_block_construction_from_element, | ||
| int | indent_level = 0 ) |
Definition at line 389 of file MLIRPrinter.py.
| MLIRPrinter.MLIRPrinter.print_data_block_construction_from_external | ( | self, | |
| DataBlockConstructionFromExternal | data_block_construction_from_external, | ||
| int | indent_level = 0 ) |
Definition at line 392 of file MLIRPrinter.py.
References assert, builders, MLIRPrinter.get_xdsl_type(), exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.

| MLIRPrinter.MLIRPrinter.print_data_block_construction_from_function_call | ( | self, | |
| DataBlockConstructionFromFunctionCall | data_block_construction_from_function_call, | ||
| int | indent_level = 0 ) |
Definition at line 461 of file MLIRPrinter.py.
References CPPPrinter.CPPPrinter.print_for(), exahype2.api.dslhype2.Printer.Printer.print_for(), print_for(), exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.

| MLIRPrinter.MLIRPrinter.print_data_block_construction_from_operation | ( | self, | |
| DataBlockConstructionFromOperation | data_block_construction_from_operation, | ||
| int | indent_level = 0 ) |
Definition at line 466 of file MLIRPrinter.py.
References exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.
| str MLIRPrinter.MLIRPrinter.print_data_block_unary_max | ( | self, | |
| DataBlockUnaryMax | data_block_unary_max, | ||
| int | indent_level = 0 ) |
Definition at line 474 of file MLIRPrinter.py.
| SSAValue MLIRPrinter.MLIRPrinter.print_element_binary_operation | ( | self, | |
| ElementBinaryOperation | element_binary_operation, | ||
| int | indent_level = 0 ) |
Definition at line 739 of file MLIRPrinter.py.
| MLIRPrinter.MLIRPrinter.print_element_index | ( | self, | |
| ElementIndex | element_index, | ||
| int | indent_level = 0 ) |
Definition at line 791 of file MLIRPrinter.py.
References affine_dimension_map, affine_symbol_map, assert, builders, generate_affine_expression(), exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.

| MLIRPrinter.MLIRPrinter.print_element_unary_operation | ( | self, | |
| ElementUnaryOperation | element_unary_operation, | ||
| int | indent_level = 0 ) |
Definition at line 778 of file MLIRPrinter.py.
| SSAValue MLIRPrinter.MLIRPrinter.print_float | ( | self, | |
| Float | float_val, | ||
| int | indent_level = 0 ) |
Definition at line 501 of file MLIRPrinter.py.
| builtin.Float64Type MLIRPrinter.MLIRPrinter.print_float_type | ( | self, | |
| TFloat | float_type, | ||
| int | indent_level = 0 ) |
Definition at line 815 of file MLIRPrinter.py.
| MLIRPrinter.MLIRPrinter.print_for | ( | self, | |
| For | for_loop, | ||
| int | indent_level = 0 ) |
Definition at line 276 of file MLIRPrinter.py.
References affine_dimension_map, assert, builders, nested_affine_level, exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.
Referenced by print_data_block_construction_from_function_call().

| str MLIRPrinter.MLIRPrinter.print_function_bridge | ( | self, | |
| Function | function, | ||
| int | indent_level = 0 ) |
Definition at line 175 of file MLIRPrinter.py.
| MLIRPrinter.MLIRPrinter.print_function_call | ( | self, | |
| FunctionCall | function_call, | ||
| int | indent_level = 0 ) |
Definition at line 267 of file MLIRPrinter.py.
| str MLIRPrinter.MLIRPrinter.print_function_declaration | ( | self, | |
| Function | function, | ||
| int | indent_level = 0 ) |
Definition at line 82 of file MLIRPrinter.py.
| str MLIRPrinter.MLIRPrinter.print_function_declaration_with_timer | ( | self, | |
| Function | function, | ||
| int | indent_level = 0 ) |
Definition at line 153 of file MLIRPrinter.py.
| str MLIRPrinter.MLIRPrinter.print_function_definition | ( | self, | |
| Function | function, | ||
| int | indent_level = 0 ) |
Definition at line 90 of file MLIRPrinter.py.
References assert, builders, internal_name, output_string_stream, exahype2.api.dslhype.SyntaxTree.Node.struct_map, exahype2.api.dslhype2.Parser.Parser.struct_map, struct_map, exahype2.api.dslhype2.Expressions.Variable.symbol_map, symbol_map, and xdsl_printer.
| str MLIRPrinter.MLIRPrinter.print_function_definition_with_timer | ( | self, | |
| Function | function, | ||
| int | indent_level = 0 ) |
Definition at line 161 of file MLIRPrinter.py.
References cpp_printer.
| builtin.FunctionType MLIRPrinter.MLIRPrinter.print_function_type | ( | self, | |
| TFunction | function_type, | ||
| int | indent_level = 0 ) |
Definition at line 843 of file MLIRPrinter.py.
| SSAValue MLIRPrinter.MLIRPrinter.print_index | ( | self, | |
| Index | index, | ||
| int | indent_level = 0 ) |
Definition at line 493 of file MLIRPrinter.py.
| builtin.IndexType MLIRPrinter.MLIRPrinter.print_index_type | ( | self, | |
| TIndex | index_type, | ||
| int | indent_level = 0 ) |
Definition at line 812 of file MLIRPrinter.py.
| SSAValue MLIRPrinter.MLIRPrinter.print_integer | ( | self, | |
| Integer | integer, | ||
| int | indent_level = 0 ) |
Definition at line 486 of file MLIRPrinter.py.
| builtin.IntegerType MLIRPrinter.MLIRPrinter.print_integer_type | ( | self, | |
| TInteger | integer_type, | ||
| int | indent_level = 0 ) |
Type Prints.
Definition at line 809 of file MLIRPrinter.py.
| SSAValue MLIRPrinter.MLIRPrinter.print_memory_allocation | ( | self, | |
| MemoryAllocation | memory_allocation, | ||
| int | indent_level = 0 ) |
Definition at line 222 of file MLIRPrinter.py.
References affine_dimension_map, affine_symbol_map, assert, builders, generate_affine_expression(), exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.

| str MLIRPrinter.MLIRPrinter.print_memory_deallocation | ( | self, | |
| MemoryDeallocation | memory_deallocation, | ||
| int | indent_level = 0 ) |
Definition at line 263 of file MLIRPrinter.py.
| str MLIRPrinter.MLIRPrinter.print_name | ( | self, | |
| Name | name, | ||
| int | indent_level = 0 ) |
Definition at line 79 of file MLIRPrinter.py.
| Attribute MLIRPrinter.MLIRPrinter.print_struct_type | ( | self, | |
| TStruct | struct_type, | ||
| int | indent_level = 0 ) |
Definition at line 840 of file MLIRPrinter.py.
| SSAValue MLIRPrinter.MLIRPrinter.print_subscript | ( | self, | |
| Subscript | subscript, | ||
| int | indent_level = 0 ) |
Definition at line 530 of file MLIRPrinter.py.
References affine_dimension_map, affine_symbol_map, assert, builders, generate_affine_expression(), exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.

| SSAValue MLIRPrinter.MLIRPrinter.print_variable | ( | self, | |
| Variable | variable, | ||
| int | indent_level = 0 ) |
Expression Prints.
Definition at line 483 of file MLIRPrinter.py.
References exahype2.api.dslhype2.Expressions.Variable.symbol_map, and symbol_map.
| MLIRPrinter.MLIRPrinter.print_vector_type | ( | self, | |
| TVector | vector_type, | ||
| int | indent_level = 0 ) |
Definition at line 818 of file MLIRPrinter.py.
| dict MLIRPrinter.MLIRPrinter.affine_dimension_map = {} |
Definition at line 73 of file MLIRPrinter.py.
Referenced by generate_affine_expression(), print_assignment(), print_element_index(), print_for(), print_memory_allocation(), and print_subscript().
| dict MLIRPrinter.MLIRPrinter.affine_symbol_map = {} |
Definition at line 74 of file MLIRPrinter.py.
Referenced by generate_affine_expression(), print_assignment(), print_element_index(), print_memory_allocation(), and print_subscript().
| list MLIRPrinter.MLIRPrinter.builders = [] |
Definition at line 67 of file MLIRPrinter.py.
Referenced by print_array_allocation(), print_assignment(), print_construction(), print_data_block_construction_from_external(), print_element_binary_operation(), print_element_index(), print_element_unary_operation(), print_float(), print_for(), print_function_call(), print_function_definition(), print_index(), print_integer(), print_memory_allocation(), and print_subscript().
| MLIRPrinter.MLIRPrinter.cpp_printer = CPPPrinter(spaces_per_tab) |
Definition at line 75 of file MLIRPrinter.py.
Referenced by print_function_definition_with_timer().
| MLIRPrinter.MLIRPrinter.internal_name = internal_name |
Definition at line 76 of file MLIRPrinter.py.
Referenced by print_function_definition().
| int MLIRPrinter.MLIRPrinter.nested_affine_level = 0 |
Definition at line 72 of file MLIRPrinter.py.
Referenced by print_for().
| MLIRPrinter.MLIRPrinter.output_string_stream = io.StringIO() |
Definition at line 68 of file MLIRPrinter.py.
Referenced by print_function_definition().
| dict MLIRPrinter.MLIRPrinter.struct_map = {} |
Definition at line 71 of file MLIRPrinter.py.
Referenced by print_function_definition().
| dict MLIRPrinter.MLIRPrinter.symbol_map = {} |
Definition at line 70 of file MLIRPrinter.py.
Referenced by generate_affine_expression(), print_array_allocation(), print_assignment(), print_construction(), print_data_block_construction_from_external(), print_data_block_construction_from_function_call(), print_data_block_construction_from_operation(), print_element_index(), print_for(), print_function_definition(), print_memory_allocation(), print_subscript(), and print_variable().
|
static |
Definition at line 35 of file MLIRPrinter.py.
|
static |
Definition at line 45 of file MLIRPrinter.py.
|
static |
Definition at line 55 of file MLIRPrinter.py.
| MLIRPrinter.MLIRPrinter.xdsl_printer = xdsl.printer.Printer(stream=self.output_string_stream, indent_num_spaces=spaces_per_tab) |
Definition at line 69 of file MLIRPrinter.py.
Referenced by print_function_definition().