psyclone.domain.common.transformations.alg_trans

Specialise generic PSyIR representing an algorithm layer to a PSyclone algorithm-layer-specific PSyIR which uses specialised classes.

Classes

  • AlgTrans: Transform a generic PSyIR representation of the Algorithm layer to

class psyclone.domain.common.transformations.alg_trans.AlgTrans

Transform a generic PSyIR representation of the Algorithm layer to a PSyclone version with specialised domain-specific nodes.

Inheritance

Inheritance diagram of AlgTrans
apply(psyir, options=None)

Apply transformation to the supplied PSyIR node.

Parameters:
  • node (psyclone.psyir.node.Routine or psyclone.psyir.node.Container) – a PSyIR node that is the root of a PSyIR tree.

  • options (Optional[Dict[str, Any]]) – a dictionary with options for transformations.

validate(node, options=None)

Validate the supplied PSyIR tree.

Parameters:
  • node (psyclone.psyir.node.Routine or psyclone.psyir.node.Container) – a PSyIR node that is the root of a PSyIR tree.

  • options (Optional[Dict[str, Any]]) – a dictionary with options for transformations.

Raises: