llvm-project/flang/lib/Parser
sameeran joshi d95d3d2a42 [Flang][OpenMP] Rework parser changes for OpenMP atomic construct.
`OmpStructureChecker` is supposed to work only with `parser::OmpClause`
after tablegen changes for OpenMP and OpenACC were introduced.
Hence `OmpMemoryOrderClause`, `OmpAtomicMemoryOrderClause` and similar ones were failing
to catch semantic errors, inspite of having code for semantic checks.
This patch tries to change parser for `OmpMemoryOrderClause` and similar dependent ones
and use `OmpClauseList` which resides/comes from common tablegen for OpenMP/OpenACC eventually using `parser::OmpClause`.

This patch also tries to :
1. Change `OmpCriticalDirective` in `openmp-parsers.cpp` to support `OmpClauseList`.
2. Check-flang regresses when changes were introduced due to missing semantic checks in OmpCritical, patch implements them at the minimal level to pass the regression.
3. Change tablegen to support Hint clause.
4. Adds missing source locations `CharBlock Source` in each atomic construct.
5. Remove dead code realted to `memory-order-clauses` after moving to `OmpClauseList`.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D88965
2020-10-14 14:19:49 +05:30
..
CMakeLists.txt [flang] Add missing link dependencies to FrontendOpenACC. 2020-07-16 14:22:18 +01:00
Fortran-parsers.cpp [flang] Allow "name: value" in compiler directives 2020-10-08 10:01:37 -07:00
basic-parsers.h [flang][msvc] Add explicit function template argument to applyFunction. NFC. 2020-09-22 14:22:08 -05: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] Refine CR handling 2020-07-14 14:14:35 -07: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][openacc] Handle optional end directive in combined construct 2020-08-13 14:05:00 -04: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] Implement nonstandard OPEN statement CARRIAGECONTROL specifier 2020-09-02 13:07:45 -07:00
message.cpp [flang] Support multiple CookedSource instances 2020-09-02 10:34:23 -07:00
misc-parsers.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
openacc-parsers.cpp [flang][openacc] Fix device_num and device_type clauses for init directive 2020-10-06 21:27:01 -04:00
openmp-parsers.cpp [Flang][OpenMP] Rework parser changes for OpenMP atomic construct. 2020-10-14 14:19:49 +05:30
parse-tree.cpp [flang] Fix frontend build with -DBUILD_SHARED_LIBS=On 2020-07-09 15:54:19 -07:00
parsing.cpp [flang] Rework preprocessing of stringification 2020-09-18 10:45:57 -07:00
preprocessor.cpp [flang] Rework preprocessing of stringification 2020-09-18 10:45:57 -07:00
preprocessor.h [flang] Rework preprocessing of stringification 2020-09-18 10:45:57 -07:00
prescan.cpp [flang] Rework preprocessing of stringification 2020-09-18 10:45:57 -07:00
prescan.h [flang] Rework preprocessing of stringification 2020-09-18 10:45:57 -07:00
program-parsers.cpp [flang] Parse global compiler directives 2020-08-25 11:41:11 -07:00
provenance.cpp [flang] More clean-up of CookedSource API 2020-09-14 14:51:55 -07:00
source.cpp [flang] Refine CR handling 2020-07-14 14:14:35 -07: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 Do not dereference an array out of bound just to take its address 2020-09-21 12:08:30 +02:00
token-sequence.h [flang] Improve error handling for bad characters in source 2020-08-25 11:42:19 -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][openacc] Handle optional end directive in combined construct 2020-08-13 14:05:00 -04:00
unparse.cpp [Flang][OpenMP] Rework parser changes for OpenMP atomic construct. 2020-10-14 14:19:49 +05:30
user-state.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00