[flang-commits] [PATCH] D100897: [flang] Make 'team_number()' an intrinsic function

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Sep 10 11:30:34 PDT 2021


klausler added a comment.

> Would it be possible to create a constant of type `TEAM_TYPE` in iso_fortran_env.f90 or __fortran_builtins.f90 to indicate the current team and then use that constant as the value of the missing optional argument?  This would mean that iso_fortran_env.f90 would need to be available to the compiler to process calls to the `TEAM_NUMBER()` intrinsic.

Sure, but finding that constant is no easier than finding TEAM_TYPE itself.  Not a big deal, and I'll look into it when I'm out from under the f95 semantics items.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100897/new/

https://reviews.llvm.org/D100897



More information about the flang-commits mailing list