psyclone.psyir.symbols.routinesymbol

This module contains the RoutineSymbol.

Classes

class psyclone.psyir.symbols.routinesymbol.RoutineSymbol(name, datatype=None, **kwargs)

Symbol identifying a callable routine.

Parameters:

Inheritance

Inheritance diagram of RoutineSymbol
property is_elemental
Returns:

whether the routine represented by this Symbol is elemental (acts element-by-element on supplied array arguments) or None if this is not known.

Return type:

bool | NoneType

property is_pure
Returns:

whether the routine represented by this Symbol has no side effects (guarantees that the routine always returns the same result for a given set of inputs).

Return type:

bool | NoneType