psyclone.psyir.transformations.intrinsics.array_reduction_base_trans#

Module providing common functionality to transformation from a PSyIR array-reduction intrinsic to PSyIR code.

Classes#

class psyclone.psyir.transformations.intrinsics.array_reduction_base_trans.ArrayReductionBaseTrans[source]#

An abstract parent class providing common functionality to array-reduction intrinsic transformations which translate the intrinsics into an equivalent loop structure.

Inheritance

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

Apply the array-reduction intrinsic conversion transformation to the specified node. This node must be one of these intrinsic operations which is converted to an equivalent loop structure.

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

Check that the input node is valid before applying the transformation.

Parameters:
Raises: