diff options
author | Krzysztof Parzyszek <Krzysztof.Parzyszek@amd.com> | 2025-06-05 12:35:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-05 12:35:30 -0500 |
commit | 4dcc159485e6b1ece15982dfe17656c8f9f11779 (patch) | |
tree | 4ccc89dbfec33098c7574b98689e163da416abd3 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 1be7c6fb4018aac76fc3dbdf997bacc727073f08 (diff) | |
download | llvm-4dcc159485e6b1ece15982dfe17656c8f9f11779.zip llvm-4dcc159485e6b1ece15982dfe17656c8f9f11779.tar.gz llvm-4dcc159485e6b1ece15982dfe17656c8f9f11779.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions