Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, alg_calls, psy) |
def | gen_code (self, parent) |
Public Member Functions inherited from psyclone.psyGen.Invokes | |
def | __init__ (self, alg_calls, invoke_cls, psy) |
def | __str__ (self) |
def | psy (self) |
def | names (self) |
def | get (self, invoke_name) |
Additional Inherited Members | |
Public Attributes inherited from psyclone.psyGen.Invokes | |
invoke_map | |
invoke_list | |
The GOcean specific invokes class. This passes the GOcean specific invoke class to the base class so it creates the one we require. :param alg_calls: The Invoke calls discovered in the Algorithm layer. :type alg_calls: OrderedDict of :py:class:`psyclone.parse.InvokeCall` \ objects. :param psy: the PSy object containing this GOInvokes object. :type psy: :py:class:`psyclone.gocean1p0.GOPSy`
Definition at line 127 of file gocean1p0.py.
def psyclone.gocean1p0.GOInvokes.gen_code | ( | self, | |
parent | |||
) |
GOcean redefines the Invokes.gen_code() to start using the PSyIR backend when possible. In cases where the backend can not be used yet (e.g. OpenCL and PSyDataNodes) the parent class will be called. This is a temporary workaround to avoid modifying the generator file while other APIs still use the f2pygen module for code generation. Once the PSyIR backend has generated an output, this is added into a f2pygen PSyIRGen block in the f2pygen AST for each Invoke in the PSy layer. :param parent: the parent node in the f2pygen AST to which to add \ content. :type parent: `psyclone.f2pygen.ModuleGen`
Reimplemented from psyclone.psyGen.Invokes.
Definition at line 169 of file gocean1p0.py.
References psyclone.nemo.NemoInvokes.invoke_list, and psyclone.psyGen.Invokes.invoke_list.