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

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(call, index, options=None)

Apply the transformation to the supplied node.

Parameters:
  • call (psyclone.psyir.nodes.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)

Validate the node argument.

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

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

Raises: