psyclone.psyir.symbols.routinesymbol
This module contains the RoutineSymbol.
Classes
RoutineSymbol
: Symbol identifying a callable routine.
- class psyclone.psyir.symbols.routinesymbol.RoutineSymbol(name, datatype=None, **kwargs)
Symbol identifying a callable routine.
- Parameters:
name (str) – name of the symbol.
datatype (
psyclone.psyir.symbols.DataType
) – data type of the symbol. Default to NoType().kwargs (unwrapped dict.) – additional keyword arguments provided by
psyclone.psyir.symbols.TypedSymbol
Inheritance
- 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