llvm-project/flang/lib/Parser
Peter Klausler 52a1346b78 [flang] Distinguish intrinsic from non-intrinsic modules
For "USE, INTRINSIC", search only for intrinsic modules;
for "USE, NON_INTRINSIC", do not recognize intrinsic modules.
Allow modules of both kinds with the same name to be used in
the same source file (but not in the same scoping unit, a
constraint of the standard that is now enforced).

The symbol table's scope tree now has a single instance of
a scope with a new kind, IntrinsicModules, whose children are
the USE'd intrinsic modules (explicit or not).  This separate
"top-level" scope is a child of the single global scope and
it allows both intrinsic and non-intrinsic modules of the same
name to exist in the symbol table.  Intrinsic modules' scopes'
symbols now have the INTRINSIC attribute set.

The search path directories need to make a distinction between
regular directories and the one(s) that point(s) to intrinsic
modules.  I allow for multiple intrinsic module directories in
the second search path, although only one is needed today.

Differential Revision: https://reviews.llvm.org/D118631
2022-01-31 13:31:27 -08:00
..
CMakeLists.txt [flang][driver] Add options for unparsing 2021-02-16 09:32:51 +00:00
Fortran-parsers.cpp [flang] Implement semantics for DEC STRUCTURE/RECORD 2022-01-13 13:17:13 -08:00
basic-parsers.h [flang][MSVC] Use list<Message> rather than forward_list<> in Messages 2020-11-11 16:38:38 -08:00
char-block.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
char-buffer.cpp [flang][MSVC] Use list<Message> rather than forward_list<> in Messages 2020-11-11 16:38:38 -08:00
char-set.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
characters.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
debug-parser.cpp [flang] Support multiple CookedSource instances 2020-09-02 10:34:23 -07:00
debug-parser.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
executable-parsers.cpp [flang] Better error recovery for missing THEN in ELSE IF 2021-10-04 09:37:53 -07:00
expr-parsers.cpp [flang][msvc] Add explicit function template argument to applyLamda. NFC. 2020-09-22 14:22:08 -05:00
expr-parsers.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
instrumented-parser.cpp [flang] Support multiple CookedSource instances 2020-09-02 10:34:23 -07:00
io-parsers.cpp [flang] Fix parsing of WRITE(I+J) with more accurate look-ahead 2021-02-01 09:07:40 -08:00
message.cpp [Flang] Fix error messages on Windows. 2021-08-12 18:35:54 +01:00
misc-parsers.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
openacc-parsers.cpp [openacc] Use TableGen enum for default clause value 2020-12-21 15:07:27 -05:00
openmp-parsers.cpp Added OpenMP 5.0 specification based semantic checks for CRITICAL construct name resolution 2021-10-12 22:18:24 +05:30
parse-tree.cpp [flang] Improve initializer semantics, esp. for component default values 2020-12-07 14:40:41 -08:00
parsing.cpp [flang] Distinguish intrinsic from non-intrinsic modules 2022-01-31 13:31:27 -08:00
preprocessor.cpp [flang] Fix handling of space between # and name in preprocessor stringification 2022-01-12 16:02:17 -08:00
preprocessor.h [flang] NFC: change non-nullable pointer arguments to references 2021-09-02 14:15:27 -07:00
prescan.cpp [flang] Catch mismatched parentheses in prescanner 2021-10-06 14:00:15 -07:00
prescan.h [flang] Enforce fixed form rules about END continuation 2021-09-17 10:59:17 -07:00
program-parsers.cpp [flang] Clean up TODO comments and fix one (DATA constant ambiguity) 2020-12-15 13:36:07 -08:00
provenance.cpp [flang] Distinguish intrinsic from non-intrinsic modules 2022-01-31 13:31:27 -08:00
source.cpp [flang] Search for #include "file" in right directory (take 2) 2021-01-27 15:41:29 -08:00
stmt-parser.h [flang][openacc] OpenACC 3.0 parser 2020-07-14 14:29:40 -04:00
token-parsers.h [flang][msvc] Split class declaration and constexpr variable definition. NFC. 2020-08-22 15:05:48 -05:00
token-sequence.cpp [flang] Catch mismatched parentheses in prescanner 2021-10-06 14:00:15 -07:00
token-sequence.h [flang] Catch mismatched parentheses in prescanner 2021-10-06 14:00:15 -07:00
tools.cpp [flang] Support for image selectors 2020-07-08 07:31:54 -07:00
type-parser-implementation.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
type-parsers.h [flang]Add Parser Support for Allocate Directive 2020-12-10 16:21:19 +00:00
unparse.cpp [flang] Implement semantics for DEC STRUCTURE/RECORD 2022-01-13 13:17:13 -08:00
user-state.cpp [flang] Implement semantics for DEC STRUCTURE/RECORD 2022-01-13 13:17:13 -08:00