psyclone.psyir.transformations.intrinsics.intrinsic2code_trans#

Module providing an abstract class which provides some generic functionality required by transformations of PSyIR intrinsic (such as MIN and MAX) to code.

Classes#

class psyclone.psyir.transformations.intrinsics.intrinsic2code_trans.Intrinsic2CodeTrans[source]#

Provides support for transformations from PSyIR IntrinsicCall nodes to equivalent PSyIR code in a PSyIR tree. Such transformations can be useful when the intrinsic is not supported by a particular backend or if it is more efficient to have explicit code.

Inheritance

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

Apply the Intrinsic2CodeTrans transformation.

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

Perform various checks to ensure that it is valid to apply an intrinsic transformation to the supplied Node.

Parameters:
Raises: