https://github.com/kiranchandramohan approved this pull request. LGTM. Thanks for the fix. In future some name resolution will have to happen from `!$omp declare variant (f1)` to the subroutine `f1`. https://github.com/llvm/llvm-project/pull/147075