llvm-project/flang/lib
peter klausler 452d7ebc09 [flang] Ensure that intrinsic procedures are PURE &/or ELEMENTAL
The intrinsic procedure table properly classify the various
intrinsics, but the PURE and ELEMENTAL attributes that these
classifications imply don't always make it to the utility
predicates that test symbols for them, leading to spurious
error messages in some contexts.  So set those attribute flags
as appropriate in name resolution, using a new function to
isolate the tests.

An alternate solution, in which the predicates would query
the intrinsic procedure table for these attributes on demand,
was something I also tried, so that this information could
come directly from an authoritative source; but it would have
required references to the intrinsic table to be passed along
on too many seemingly unrelated APIs and ended up looking messy.

Several symbol table tests needed to have their expected outputs
augmented with the PURE and ELEMENTAL flags.  Some bogus messages
that were flagged as such in test/Semantics/doconcurrent01.f90 were
removed, since they are now correctly not emitted.

Differential Revision: https://reviews.llvm.org/D96878
2021-02-17 11:31:33 -08:00
..
Common [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
Decimal [flang] Readability improvement in binary->decimal conversion 2020-10-01 15:49:27 -07:00
Evaluate [flang] Detect circularly defined procedures 2021-02-16 14:40:35 -08:00
Frontend [flang][driver] Add extension options and -finput-charset 2021-02-16 11:27:06 +00:00
FrontendTool [flang][driver] Add options for unparsing 2021-02-16 09:32:51 +00:00
Lower [flang][fir][NFC] Rename WhereOp to IfOp. 2021-02-11 11:33:37 -08:00
Optimizer [flang][fir][NFC] Move ComplexType to TableGen type definition 2021-02-16 21:52:38 -05:00
Parser [flang][driver] Add options for unparsing 2021-02-16 09:32:51 +00:00
Semantics [flang] Ensure that intrinsic procedures are PURE &/or ELEMENTAL 2021-02-17 11:31:33 -08:00
CMakeLists.txt [flang] Remove `LINK_WITH_FIR` cmake switch 2021-02-11 22:52:13 +05:30