psyclone.domain.common.transformations.raise_psyir_2_alg_trans#

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

Classes#

class psyclone.domain.common.transformations.raise_psyir_2_alg_trans.RaisePSyIR2AlgTrans[source]#

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

Inheritance

Inheritance diagram of RaisePSyIR2AlgTrans
apply(node, index=None, options=None, **kwargs)[source]#

Apply the transformation to the supplied node.

Parameters:
  • node (Call) – a PSyIR call node capturing an invoke call in generic PSyIR.

  • index (int) – the position of this invoke call relative to other invokes in the algorithm layer.

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

validate(node, options=None, **kwargs)[source]#

Validate the node argument.

Parameters:
  • node (Call) – a PSyIR call node capturing an invoke call in generic PSyIR.

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

  • index (int) – the position of this invoke call relative to other invokes in the algorithm layer.

Raises: