ecmwf-ifs / loki

Freely programmable source-to-source translation for Fortran

Home Page:https://sites.ecmwf.int/docs/loki/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make `InternalNode` iterable

reuterbal opened this issue · comments

InternalNode encapsulates a tuple of IR nodes, which often results in awkward indirection because it requires writing internal_node.body quite often. Making this iterable would allow easier subscripting etc., such as internal_node[i] or node in internal_node.

Originally posted by @mlange05 in #95 (comment)