CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
esiaccel.codegen.CppGenerator Class Reference
Inheritance diagram for esiaccel.codegen.CppGenerator:
Inheritance graph
[legend]
Collaboration diagram for esiaccel.codegen.CppGenerator:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, AcceleratorConnection conn)
 
str get_consts_str (self, ModuleInfo module_info)
 
 write_modules (self, Path output_dir, str system_name)
 
 generate (self, Path output_dir, str system_name)
 

Public Attributes

 type_planner
 
 type_emitter
 
- Public Attributes inherited from esiaccel.codegen.Generator
 manifest
 

Static Public Attributes

str language = "C++"
 
- Static Public Attributes inherited from esiaccel.codegen.Generator
Optional language = None
 

Detailed Description

Generate C++ headers from an ESI manifest.

Definition at line 39 of file codegen.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.codegen.CppGenerator.__init__ (   self,
AcceleratorConnection  conn 
)

Member Function Documentation

◆ generate()

esiaccel.codegen.CppGenerator.generate (   self,
Path  output_dir,
str  system_name 
)

◆ get_consts_str()

str esiaccel.codegen.CppGenerator.get_consts_str (   self,
ModuleInfo  module_info 
)
Get the C++ code for a constant in a module.

Definition at line 49 of file codegen.py.

◆ write_modules()

esiaccel.codegen.CppGenerator.write_modules (   self,
Path  output_dir,
str  system_name 
)
Write the C++ header. One for each module in the manifest.

Definition at line 58 of file codegen.py.

References esiaccel.accelerator.AcceleratorConnection.manifest(), and esiaccel.codegen.Generator.manifest.

Referenced by esiaccel.codegen.CppGenerator.generate().

Member Data Documentation

◆ language

str esiaccel.codegen.CppGenerator.language = "C++"
static

Definition at line 42 of file codegen.py.

◆ type_emitter

esiaccel.codegen.CppGenerator.type_emitter

Definition at line 47 of file codegen.py.

Referenced by esiaccel.codegen.CppGenerator.generate().

◆ type_planner

esiaccel.codegen.CppGenerator.type_planner

Definition at line 46 of file codegen.py.


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