https://github.com/tblah commented: I much prefer this solution. Nice work! Just a minor comment about documentation. This passes my downstream tests and the gfortran test suite. https://github.com/llvm/llvm-project/pull/122079