You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The various Loki backends still generate a highly custom code layout that portrays several of the assumption dictated by the internal IR representation. The recent introduction of "style" classes (PR #517 ) makes some of the easier features configurable, but is still very limited in its current form. This issue is intended to track and discuss various ideas for improvements to make the backends more configurable in the future.
As always, this is only an initial list and additional ideas and features should be added as they arise.
Describe the solution you'd like
General: Addition of CStyle and PythonStyle, as well as specialisations
General: Unify language specialisations (eg. fgen/cufgen, cgen/cppgen/cudagen, pygen/dacegen) and expose specialised flavours as inherited styles (eg. cgen(ir, style=CUDAStyle(), ...))
Fortran: Up/down-casing of keywords (possibly default and specific ones)
Fortran: Preserve line comments in multi-line call/procedure signatures
Fortran: Configurable formatting of multiline, many-argument call signatures
Fortran: Block alignment options of declarations (eg. align ::) or assignments (align =).
Describe alternatives you've considered
No response
Additional context
No response
Organisation
ECMWF
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The various Loki backends still generate a highly custom code layout that portrays several of the assumption dictated by the internal IR representation. The recent introduction of "style" classes (PR #517 ) makes some of the easier features configurable, but is still very limited in its current form. This issue is intended to track and discuss various ideas for improvements to make the backends more configurable in the future.
As always, this is only an initial list and additional ideas and features should be added as they arise.
Describe the solution you'd like
CStyle
andPythonStyle
, as well as specialisationscgen(ir, style=CUDAStyle(), ...)
)::
) or assignments (align=
).Describe alternatives you've considered
No response
Additional context
No response
Organisation
ECMWF
The text was updated successfully, but these errors were encountered: