[all-commits] [llvm/llvm-project] 048aaa: [flang][openacc] Use TableGen to generate the clau...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Mon Jul 18 00:27:28 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 048aaab19420a67c5b4075726233f73b37ed177c
https://github.com/llvm/llvm-project/commit/048aaab19420a67c5b4075726233f73b37ed177c
Author: Valentin Clement <clementval at gmail.com>
Date: 2022-07-18 (Mon, 18 Jul 2022)
Changed paths:
M flang/lib/Parser/openacc-parsers.cpp
M llvm/include/llvm/Frontend/Directive/DirectiveBase.td
M llvm/include/llvm/Frontend/OpenACC/ACC.td
M llvm/include/llvm/TableGen/DirectiveEmitter.h
M llvm/test/TableGen/directive1.td
M llvm/utils/TableGen/DirectiveEmitter.cpp
Log Message:
-----------
[flang][openacc] Use TableGen to generate the clause parser
This patch introduce an automatic generation of the clause parser from the TableGen
information.
New information can be stored directly in the TableGen file:
- The different aliases that a clause support.
- prefix before a value.
- whether a prefix is optional or not.
Makes it easier to add new clauses and also avoid some error (`write` clause incorrect until now).
This patch is updating only the OpenACC part. A patch with a modification of the OpenMP clause parser will follow.
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D106968
More information about the All-commits
mailing list