Peano
Loading...
Searching...
No Matches
CPPPrinter.CPPPrinter Class Reference
Inheritance diagram for CPPPrinter.CPPPrinter:
Collaboration diagram for CPPPrinter.CPPPrinter:

Public Member Functions

 __init__ (self, int spaces_per_tab)
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)
 print_array_allocation (self, ArrayAllocation array_allocation, int indent_level=0)
 print_array_deallocation (self, ArrayDeallocation array_deallocation, int indent_level=0)
str 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)
str print_for (self, For for_loop, int indent_level=0)
str print_construction (self, Construction construction, int indent_level=0)
str print_assignment (self, Assignment assignment, int indent_level=0)
str print_data_block_construction_from_element (self, DataBlockConstructionFromElement data_block_construction_from_element, int indent_level=0)
str 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)
str 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)
str print_variable (self, Variable variable, int indent_level=0)
 Expression Prints.
str print_integer (self, Integer integer, int indent_level=0)
str print_index (self, Index index, int indent_level=0)
str print_float (self, Float float_val, int indent_level=0)
str print_subscript (self, Subscript subscript, int indent_level=0)
str 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)
str print_integer_type (self, TInteger integer_type, int indent_level=0)
 Type Prints.
str print_index_type (self, TIndex index_type, int indent_level=0)
str print_float_type (self, TFloat float_type, int indent_level=0)
 print_vector_type (self, TVector vector_type, int indent_level=0)
str print_array_type (self, TArray array_type, int indent_level=0)
str print_struct_type (self, TStruct struct_type, int indent_level=0)
str print_function_type (self, TFunction function_type, int indent_level=0)

Detailed Description

Definition at line 5 of file CPPPrinter.py.

Constructor & Destructor Documentation

◆ __init__()

CPPPrinter.CPPPrinter.__init__ ( self,
int spaces_per_tab )

Definition at line 6 of file CPPPrinter.py.

Member Function Documentation

◆ print_array_allocation()

CPPPrinter.CPPPrinter.print_array_allocation ( self,
ArrayAllocation array_allocation,
int indent_level = 0 )

Definition at line 57 of file CPPPrinter.py.

◆ print_array_deallocation()

CPPPrinter.CPPPrinter.print_array_deallocation ( self,
ArrayDeallocation array_deallocation,
int indent_level = 0 )

Definition at line 64 of file CPPPrinter.py.

◆ print_array_type()

str CPPPrinter.CPPPrinter.print_array_type ( self,
TArray array_type,
int indent_level = 0 )

Definition at line 223 of file CPPPrinter.py.

◆ print_assignment()

str CPPPrinter.CPPPrinter.print_assignment ( self,
Assignment assignment,
int indent_level = 0 )

Definition at line 111 of file CPPPrinter.py.

◆ print_comment()

CPPPrinter.CPPPrinter.print_comment ( self,
Comment comment,
int indent_level = 0 )

Definition at line 142 of file CPPPrinter.py.

◆ print_construction()

str CPPPrinter.CPPPrinter.print_construction ( self,
Construction construction,
int indent_level = 0 )

Definition at line 104 of file CPPPrinter.py.

◆ print_data_block_assignment()

str CPPPrinter.CPPPrinter.print_data_block_assignment ( self,
DataBlockAssignment data_block_assignment,
int indent_level = 0 )

Reimplemented in OMPTargetPrinter.OMPTargetPrinter.

Definition at line 136 of file CPPPrinter.py.

◆ print_data_block_construction_from_element()

str CPPPrinter.CPPPrinter.print_data_block_construction_from_element ( self,
DataBlockConstructionFromElement data_block_construction_from_element,
int indent_level = 0 )

Definition at line 117 of file CPPPrinter.py.

◆ print_data_block_construction_from_external()

str CPPPrinter.CPPPrinter.print_data_block_construction_from_external ( self,
DataBlockConstructionFromExternal data_block_construction_from_external,
int indent_level = 0 )

Definition at line 120 of file CPPPrinter.py.

References assert.

◆ print_data_block_construction_from_function_call()

CPPPrinter.CPPPrinter.print_data_block_construction_from_function_call ( self,
DataBlockConstructionFromFunctionCall data_block_construction_from_function_call,
int indent_level = 0 )

Reimplemented in OMPTargetPrinter.OMPTargetPrinter.

Definition at line 128 of file CPPPrinter.py.

◆ print_data_block_construction_from_operation()

CPPPrinter.CPPPrinter.print_data_block_construction_from_operation ( self,
DataBlockConstructionFromOperation data_block_construction_from_operation,
int indent_level = 0 )

Definition at line 132 of file CPPPrinter.py.

◆ print_data_block_unary_max()

str CPPPrinter.CPPPrinter.print_data_block_unary_max ( self,
DataBlockUnaryMax data_block_unary_max,
int indent_level = 0 )

Reimplemented in OMPTargetPrinter.OMPTargetPrinter.

Definition at line 139 of file CPPPrinter.py.

◆ print_element_binary_operation()

str CPPPrinter.CPPPrinter.print_element_binary_operation ( self,
ElementBinaryOperation element_binary_operation,
int indent_level = 0 )

Definition at line 184 of file CPPPrinter.py.

◆ print_element_index()

CPPPrinter.CPPPrinter.print_element_index ( self,
ElementIndex element_index,
int indent_level = 0 )

Definition at line 203 of file CPPPrinter.py.

◆ print_element_unary_operation()

CPPPrinter.CPPPrinter.print_element_unary_operation ( self,
ElementUnaryOperation element_unary_operation,
int indent_level = 0 )

Definition at line 200 of file CPPPrinter.py.

◆ print_float()

str CPPPrinter.CPPPrinter.print_float ( self,
Float float_val,
int indent_level = 0 )

Definition at line 165 of file CPPPrinter.py.

References assert.

◆ print_float_type()

str CPPPrinter.CPPPrinter.print_float_type ( self,
TFloat float_type,
int indent_level = 0 )

Definition at line 217 of file CPPPrinter.py.

◆ print_for()

str CPPPrinter.CPPPrinter.print_for ( self,
For for_loop,
int indent_level = 0 )

Definition at line 93 of file CPPPrinter.py.

Referenced by MLIRPrinter.MLIRPrinter.print_data_block_construction_from_function_call().

Here is the caller graph for this function:

◆ print_function_call()

CPPPrinter.CPPPrinter.print_function_call ( self,
FunctionCall function_call,
int indent_level = 0 )

Definition at line 86 of file CPPPrinter.py.

◆ print_function_declaration()

str CPPPrinter.CPPPrinter.print_function_declaration ( self,
Function function,
int indent_level = 0 )

Definition at line 12 of file CPPPrinter.py.

◆ print_function_declaration_with_timer()

str CPPPrinter.CPPPrinter.print_function_declaration_with_timer ( self,
Function function,
int indent_level = 0 )

Definition at line 33 of file CPPPrinter.py.

◆ print_function_definition()

str CPPPrinter.CPPPrinter.print_function_definition ( self,
Function function,
int indent_level = 0 )

Definition at line 21 of file CPPPrinter.py.

◆ print_function_definition_with_timer()

str CPPPrinter.CPPPrinter.print_function_definition_with_timer ( self,
Function function,
int indent_level = 0 )

Definition at line 42 of file CPPPrinter.py.

◆ print_function_type()

str CPPPrinter.CPPPrinter.print_function_type ( self,
TFunction function_type,
int indent_level = 0 )

Definition at line 233 of file CPPPrinter.py.

◆ print_index()

str CPPPrinter.CPPPrinter.print_index ( self,
Index index,
int indent_level = 0 )

Definition at line 158 of file CPPPrinter.py.

References assert.

◆ print_index_type()

str CPPPrinter.CPPPrinter.print_index_type ( self,
TIndex index_type,
int indent_level = 0 )

Definition at line 214 of file CPPPrinter.py.

◆ print_integer()

str CPPPrinter.CPPPrinter.print_integer ( self,
Integer integer,
int indent_level = 0 )

Definition at line 151 of file CPPPrinter.py.

References assert.

◆ print_integer_type()

str CPPPrinter.CPPPrinter.print_integer_type ( self,
TInteger integer_type,
int indent_level = 0 )

Type Prints.

Definition at line 211 of file CPPPrinter.py.

◆ print_memory_allocation()

str CPPPrinter.CPPPrinter.print_memory_allocation ( self,
MemoryAllocation memory_allocation,
int indent_level = 0 )

Reimplemented in OMPTargetPrinter.OMPTargetPrinter.

Definition at line 71 of file CPPPrinter.py.

◆ print_memory_deallocation()

str CPPPrinter.CPPPrinter.print_memory_deallocation ( self,
MemoryDeallocation memory_deallocation,
int indent_level = 0 )

Reimplemented in OMPTargetPrinter.OMPTargetPrinter.

Definition at line 82 of file CPPPrinter.py.

◆ print_name()

str CPPPrinter.CPPPrinter.print_name ( self,
Name name,
int indent_level = 0 )

Definition at line 9 of file CPPPrinter.py.

◆ print_struct_type()

str CPPPrinter.CPPPrinter.print_struct_type ( self,
TStruct struct_type,
int indent_level = 0 )

Definition at line 230 of file CPPPrinter.py.

◆ print_subscript()

str CPPPrinter.CPPPrinter.print_subscript ( self,
Subscript subscript,
int indent_level = 0 )

Definition at line 172 of file CPPPrinter.py.

◆ print_variable()

str CPPPrinter.CPPPrinter.print_variable ( self,
Variable variable,
int indent_level = 0 )

Expression Prints.

Definition at line 148 of file CPPPrinter.py.

◆ print_vector_type()

CPPPrinter.CPPPrinter.print_vector_type ( self,
TVector vector_type,
int indent_level = 0 )

Definition at line 220 of file CPPPrinter.py.


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