[flang] Rearrange prototype & code placement of IsCoarray()
authorPeter Klausler <pklausler@nvidia.com>
Thu, 18 Nov 2021 19:48:42 +0000 (11:48 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 30 Nov 2021 23:26:34 +0000 (15:26 -0800)
commit1ee6f7add1ca824de4337991304ff737b953a968
tree9c1542a3ab01b30afadabe0ee623ace4ed1d8f38
parent73863648892ee7063c7fd4e658d7614fd721504a
[flang] Rearrange prototype & code placement of IsCoarray()

A quick fix last week to the shared library build caused
the predicate IsCoarray(const Symbol &) to be moved from
Semantics to Evaluate.  This patch completes that move in
a way that properly combines the existing IsCoarray() tests
for expressions and other object with the test for a symbol.

Differential Revision: https://reviews.llvm.org/D114806
flang/include/flang/Evaluate/tools.h
flang/lib/Evaluate/tools.cpp
flang/lib/Semantics/check-allocate.cpp
flang/lib/Semantics/check-declarations.cpp
flang/lib/Semantics/check-do-forall.cpp
flang/lib/Semantics/resolve-names.cpp
flang/lib/Semantics/tools.cpp