Reference Guide  2.5.0
psyclone.parse.algorithm.ParsedCall Class Reference
Inheritance diagram for psyclone.parse.algorithm.ParsedCall:

Public Member Functions

def __init__ (self, ktype, args)
 
def ktype (self)
 
def args (self)
 
def module_name (self)
 

Detailed Description

Base class for information about a user-supplied or built-in
kernel.

:param ktype: information about a kernel or builtin. Provides \
    access to the PSyclone description metadata and the code if it \
    exists.
:type ktype: API-specific specialisation of \
    :py:class:`psyclone.parse.kernel.KernelType`
:param args: a list of Arg instances which capture the relevant \
    information about the arguments associated with the call to the \
    kernel or builtin.
:type args: list of :py:class:`psyclone.parse.algorithm.Arg`

Definition at line 942 of file algorithm.py.

Member Function Documentation

◆ args()

def psyclone.parse.algorithm.ParsedCall.args (   self)
:returns: a list of Arg instances which capture the relevant \
information about the arguments associated with the call to the \
kernel or builtin
:rtype: list of :py:class:`psyclone.parse.algorithm.Arg`

Definition at line 986 of file algorithm.py.

986  def args(self):
987  '''
988  :returns: a list of Arg instances which capture the relevant \
989  information about the arguments associated with the call to the \
990  kernel or builtin
991  :rtype: list of :py:class:`psyclone.parse.algorithm.Arg`
992 
993  '''
994  return self._args
995 

References psyclone.dynamo0p3.DynKernelArguments._args, psyclone.gocean1p0.GOKernelArguments._args, psyclone.parse.algorithm.ParsedCall._args, and psyclone.psyGen.Arguments._args.

Here is the caller graph for this function:

◆ ktype()

def psyclone.parse.algorithm.ParsedCall.ktype (   self)
:returns: information about a kernel or builtin. Provides \
    access to the PSyclone description metadata and the code if it \
    exists.
:rtype: API-specific specialisation of \
    :py:class:`psyclone.parse.kernel.KernelType`

Definition at line 974 of file algorithm.py.

974  def ktype(self):
975  '''
976  :returns: information about a kernel or builtin. Provides \
977  access to the PSyclone description metadata and the code if it \
978  exists.
979  :rtype: API-specific specialisation of \
980  :py:class:`psyclone.parse.kernel.KernelType`
981 
982  '''
983  return self._ktype
984 

References psyclone.parse.algorithm.ParsedCall._ktype, and psyclone.parse.kernel.KernelType._ktype.

◆ module_name()

def psyclone.parse.algorithm.ParsedCall.module_name (   self)
This name is assumed to be set by the subclasses.

:returns: the name of the module containing the kernel code.
:rtype: str

Definition at line 997 of file algorithm.py.

997  def module_name(self):
998  '''This name is assumed to be set by the subclasses.
999 
1000  :returns: the name of the module containing the kernel code.
1001  :rtype: str
1002 
1003  '''
1004  return self._module_name
1005 
1006 

References psyclone.dynamo0p3.DynKernelArgument._module_name, psyclone.parse.algorithm.ParsedCall._module_name, psyclone.parse.algorithm.KernelCall._module_name, psyclone.psyGen.CodedKern._module_name, psyclone.psyGen.Argument._module_name, and psyclone.psyir.nodes.psy_data_node.PSyDataNode._module_name.

Here is the caller graph for this function:

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