IRON 1.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
iron.program.Program Class Reference

Public Member Functions

 __init__ (self, Device device, Runtime rt)
 
 resolve_program (self, Placer|None placer=None)
 

Protected Member Functions

 _print_verify (self, ctx)
 

Protected Attributes

 _device
 
 _rt
 

Constructor & Destructor Documentation

◆ __init__()

iron.program.Program.__init__ (   self,
Device  device,
Runtime  rt 
)
A Program represents all design information needed to run the design on a device.

ctx.module.operation.verify() is called within this function to verify the correctness
of the MLIR module.

Args:
    device (Device): The device used to generate the final MLIR for the design.
    rt (Runtime): The runtime object for the design.

Member Function Documentation

◆ _print_verify()

iron.program.Program._print_verify (   self,
  ctx 
)
protected

◆ resolve_program()

iron.program.Program.resolve_program (   self,
Placer | None   placer = None 
)
This method resolves the program components in order to generate MLIR.

Args:
    placer (Placer | None, optional): The placer that will assign placement to unplaced components.
        If a placer is not given, all components must be fully placed. Defaults to None.

Returns:
    module (Module): The module containing the MLIR context information.

Member Data Documentation

◆ _device

iron.program.Program._device
protected

◆ _rt

iron.program.Program._rt
protected

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