[flang] Make 'this_image()' an intrinsic function
authorCraig Rasmussen <erasmus@kierkegaard.local>
Tue, 14 Sep 2021 18:04:44 +0000 (11:04 -0700)
committerCraig Rasmussen <erasmus@kierkegaard.local>
Tue, 14 Sep 2021 23:40:08 +0000 (16:40 -0700)
commit81f8ad1769665a569a235b749e0e9e69ce7dc65e
tree7b3dc71c490dc1d228829563643f46803eb8695c
parent1a406cd5f2e2403b325f6d914b692459a2ab3b9b
[flang] Make 'this_image()' an intrinsic function

Added 'this_image()' to the list of functions that are evaluated as intrinsic.
Added IsCoarray functions to determine if an expression is a coarray (corank > 1).

Added save attribute to coarray variables in test file, this_image.f90.

reviewers: klausler, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D108059
flang/docs/Intrinsics.md
flang/include/flang/Evaluate/tools.h
flang/lib/Evaluate/intrinsics.cpp
flang/lib/Evaluate/tools.cpp
flang/test/Semantics/call10.f90
flang/test/Semantics/this_image.f90 [new file with mode: 0644]