Reference Guide  2.5.0
psyclone.psyir.nodes.acc_directives.ACCDataDirective Class Reference
Inheritance diagram for psyclone.psyir.nodes.acc_directives.ACCDataDirective:
Collaboration diagram for psyclone.psyir.nodes.acc_directives.ACCDataDirective:

Public Member Functions

def gen_code (self, _)
 
def begin_string (self)
 
def end_string (self)
 
- Public Member Functions inherited from psyclone.psyir.nodes.acc_directives.ACCRegionDirective
def validate_global_constraints (self)
 
def signatures (self)
 
- Public Member Functions inherited from psyclone.psyir.nodes.directive.RegionDirective
def __init__ (self, ast=None, children=None, parent=None)
 
def dir_body (self)
 
def clauses (self)
 
def gen_post_region_code (self, parent)
 
- Public Member Functions inherited from psyclone.psyir.nodes.directive.Directive
def create_data_movement_deep_copy_refs (self)
 
- Public Member Functions inherited from psyclone.psyir.nodes.node.Node
def __init__ (self, ast=None, children=None, parent=None, annotations=None)
 
def __eq__ (self, other)
 
def coloured_name (self, colour=True)
 
def node_str (self, colour=True)
 
def __str__ (self)
 
def ast (self)
 
def ast_end (self)
 
def ast (self, ast)
 
def ast_end (self, ast_end)
 
def annotations (self)
 
def dag (self, file_name='dag', file_format='svg')
 
def dag_gen (self, graph)
 
def dag_name (self)
 
def args (self)
 
def backward_dependence (self)
 
def forward_dependence (self)
 
def is_valid_location (self, new_node, position="before")
 
def depth (self)
 
def view (self, depth=0, colour=True, indent=" ", _index=None)
 
def addchild (self, child, index=None)
 
def children (self)
 
def children (self, my_children)
 
def parent (self)
 
def siblings (self)
 
def has_constructor_parent (self)
 
def position (self)
 
def abs_position (self)
 
def root (self)
 
def sameParent (self, node_2)
 
def walk (self, my_type, stop_type=None, depth=None)
 
def get_sibling_lists (self, my_type, stop_type=None)
 
def ancestor (self, my_type, excluding=None, include_self=False, limit=None, shared_with=None)
 
def kernels (self)
 
def following (self, routine=True)
 
def preceding (self, reverse=False, routine=True)
 
def immediately_precedes (self, node_2)
 
def immediately_follows (self, node_1)
 
def coded_kernels (self)
 
def loops (self)
 
def reductions (self, reprod=None)
 
def is_openmp_parallel (self)
 
def lower_to_language_level (self)
 
def reference_accesses (self, var_accesses)
 
def scope (self)
 
def replace_with (self, node, keep_name_in_context=True)
 
def pop_all_children (self)
 
def detach (self)
 
def copy (self)
 
def debug_string (self)
 
def origin_string (self)
 
def update_signal (self)
 
def path_from (self, ancestor)
 
- Public Member Functions inherited from psyclone.psyir.nodes.commentable_mixin.CommentableMixin
def preceding_comment (self)
 
def preceding_comment (self, comment)
 
def inline_comment (self)
 
def inline_comment (self, comment)
 

Additional Inherited Members

- Public Attributes inherited from psyclone.psyir.nodes.node.Node
 position
 
- Static Public Attributes inherited from psyclone.psyir.nodes.node.Node
int START_DEPTH = 0
 
int START_POSITION = 0
 
 valid_annotations = tuple()
 

Detailed Description

Class representing the !$ACC DATA ... !$ACC END DATA directive
in the PSyIR.

Definition at line 693 of file acc_directives.py.

Member Function Documentation

◆ begin_string()

def psyclone.psyir.nodes.acc_directives.ACCDataDirective.begin_string (   self)
:returns: the beginning of the opening statement of this directive.
:rtype: str

Definition at line 730 of file acc_directives.py.

730  def begin_string(self):
731  '''
732  :returns: the beginning of the opening statement of this directive.
733  :rtype: str
734  '''
735  return "acc data"
736 
Here is the caller graph for this function:

◆ end_string()

def psyclone.psyir.nodes.acc_directives.ACCDataDirective.end_string (   self)
:returns: the text for the end of this directive region.
:rtype: str

Definition at line 737 of file acc_directives.py.

737  def end_string(self):
738  '''
739  :returns: the text for the end of this directive region.
740  :rtype: str
741 
742  '''
743  return "acc end data"
744 

References psyclone.psyir.nodes.acc_directives.ACCDataDirective._update_data_movement_clauses(), psyclone.psyir.nodes.node.Node.addchild(), psyclone.f2pygen.BaseGen.children(), psyclone.psyGen.InlinedKern.children, psyclone.psyir.nodes.node.Node.children(), and psyclone.psyir.nodes.directive.Directive.create_data_movement_deep_copy_refs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gen_code()

def psyclone.psyir.nodes.acc_directives.ACCDataDirective.gen_code (   self,
  _ 
)
:raises InternalError: the ACC data directive is currently only \
                       supported for the NEMO API and that uses the \
                       PSyIR backend to generate code.
                       fparser2 parse tree.

Definition at line 699 of file acc_directives.py.

699  def gen_code(self, _):
700  '''
701  :raises InternalError: the ACC data directive is currently only \
702  supported for the NEMO API and that uses the \
703  PSyIR backend to generate code.
704  fparser2 parse tree.
705 
706  '''
707  raise InternalError(
708  "ACCDataDirective.gen_code should not have been called.")
709 
Here is the caller graph for this function:

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