[all-commits] [llvm/llvm-project] 4dcc15: [utils][TableGen] Implement clause aliases as alte...
Krzysztof Parzyszek via All-commits
all-commits at lists.llvm.org
Thu Jun 5 10:35:53 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4dcc159485e6b1ece15982dfe17656c8f9f11779
https://github.com/llvm/llvm-project/commit/4dcc159485e6b1ece15982dfe17656c8f9f11779
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2025-06-05 (Thu, 05 Jun 2025)
Changed paths:
M llvm/include/llvm/Frontend/Directive/DirectiveBase.td
M llvm/include/llvm/Frontend/OpenACC/ACC.td
M llvm/include/llvm/Frontend/OpenMP/OMP.td
M llvm/include/llvm/TableGen/DirectiveEmitter.h
M llvm/test/TableGen/directive1.td
M llvm/test/TableGen/directive2.td
M llvm/test/TableGen/directive3.td
M llvm/utils/TableGen/Basic/DirectiveEmitter.cpp
M mlir/test/mlir-tblgen/directive-common.td
Log Message:
-----------
[utils][TableGen] Implement clause aliases as alternative spellings (#141765)
Use the spellings in the generated clause parser. The functions
`get<lang>ClauseKind` and `get<lang>ClauseName` are not yet updated.
The definitions of both clauses and directives now take a list of
"Spelling"s instead of a single string. For example
```
def ACCC_Copyin : Clause<[Spelling<"copyin">,
Spelling<"present_or_copyin">,
Spelling<"pcopyin">]> { ... }
```
A "Spelling" is a versioned string, defaulting to "all versions".
For background information see
https://discourse.llvm.org/t/rfc-alternative-spellings-of-openmp-directives/85507
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list