Reference Guide  2.5.0
psyclone.psyGen.InlinedKern Class Reference
Inheritance diagram for psyclone.psyGen.InlinedKern:
Collaboration diagram for psyclone.psyGen.InlinedKern:

Public Member Functions

def __init__ (self, psyir_nodes, parent=None)
 
def local_vars (self)
 
def node_str (self, colour=True)
 
- Public Member Functions inherited from psyclone.psyGen.Kern
def __init__ (self, parent, call, name, ArgumentsClass, check=True)
 
def args (self)
 
def reference_accesses (self, var_accesses)
 
def is_reduction (self)
 
def reduction_arg (self)
 
def reprod_reduction (self)
 
def local_reduction_name (self)
 
def zero_reduction_variable (self, parent, position=None)
 
def reduction_sum_loop (self, parent)
 
def arg_descriptors (self)
 
def arg_descriptors (self, obj)
 
def arguments (self)
 
def name (self)
 
def name (self, value)
 
def is_coloured (self)
 
def iterates_over (self)
 
def gen_code (self, parent)
 

Public Attributes

 children
 

Detailed Description

A class representing a kernel that is inlined.
It has one child which stores the Schedule for the child nodes.

:param psyir_nodes: the list of PSyIR nodes that represent the body
                    of this kernel.
:type psyir_nodes: list of :py:class:`psyclone.psyir.nodes.Node`
:param parent: the parent of this node in the PSyIR.
:type parent: sub-class of :py:class:`psyclone.psyir.nodes.Node`

Definition at line 1793 of file psyGen.py.

Member Function Documentation

◆ local_vars()

def psyclone.psyGen.InlinedKern.local_vars (   self)
:returns: list of the variable (names) that are local to this kernel \
          (and must therefore be e.g. threadprivate if doing OpenMP)
:rtype: list of str

Reimplemented from psyclone.psyGen.Kern.

Definition at line 1829 of file psyGen.py.

1829  def local_vars(self):
1830  '''
1831  :returns: list of the variable (names) that are local to this kernel \
1832  (and must therefore be e.g. threadprivate if doing OpenMP)
1833  :rtype: list of str
1834  '''
1835 

◆ node_str()

def psyclone.psyGen.InlinedKern.node_str (   self,
  colour = True 
)
 Returns the name of this node with (optional) control codes
to generate coloured output in a terminal that supports it.

:param bool colour: whether or not to include colour control codes.

:returns: description of this node, possibly coloured.
:rtype: str

Reimplemented from psyclone.psyGen.Kern.

Definition at line 1836 of file psyGen.py.

1836  def node_str(self, colour=True):
1837  ''' Returns the name of this node with (optional) control codes
1838  to generate coloured output in a terminal that supports it.
1839 
1840  :param bool colour: whether or not to include colour control codes.
1841 
1842  :returns: description of this node, possibly coloured.
1843  :rtype: str
1844  '''
1845  return self.coloured_name(colour) + "[]"
1846 
1847 
Here is the caller graph for this function:

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