stfc / PSyclone

Domain-specific compiler and code transformation system for Finite Difference/Volume/Element Earth-system models in Fortran
BSD 3-Clause "New" or "Revised" License
106 stars 28 forks source link

[PSyIR] routine_symbol property #2568

Open JulienRemy opened 6 months ago

JulienRemy commented 6 months ago

For convenience, I suggest adding a routine_symbol property in Routine to act as a getter of Routine(...).symbol_table.lookup_with_tag("own_routine_symbol"), which is a bit long.

I do not think a setter is needed, as: 1/ it's already dealt with by the name setter, 2/ Routine.create takes a string name and a not a RoutineSymbol instance as argument.

sergisiso commented 4 months ago

I will close this since it is a subset of #2592 functionality which will introduce the routine.symbol