aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <Krzysztof.Parzyszek@amd.com>2024-03-06 10:46:26 -0600
committerGitHub <noreply@github.com>2024-03-06 10:46:26 -0600
commit67c82d6ffb4bbc21212116a11f390761d859297a (patch)
tree879a4544466184462b69037f7c2b1a5c6b3adead /llvm/lib/CodeGen/MachineScheduler.cpp
parent571d5af5aa3ebfdf59d2eccb6a90c2b97c6d7ea8 (diff)
downloadllvm-67c82d6ffb4bbc21212116a11f390761d859297a.zip
llvm-67c82d6ffb4bbc21212116a11f390761d859297a.tar.gz
llvm-67c82d6ffb4bbc21212116a11f390761d859297a.tar.bz2
[Frontend] Add leaf constructs and association to OpenMP/ACC directives (#83625)
Add members "leafConstructs" and "association" to .td describing OpenMP/ACC directives. The naming follows the terminology used in the OpenMP standard: a "leaf" construct is a construct that is itself not a composition or a combination of other constructs, and "association" is the source language construct to which the directive applies (e.g. loop, block, etc.) The tblgen-generated output then contains two additional functions - getLeafConstructs(D), and - getDirectiveAssociation(D) plus "enum class Association", all in namespaces "llvm::omp" and "llvm::acc". Note: getLeafConstructs returns an empty sequence for a construct that is itself a leaf construct. Use the new functions to simplify a few OpenMP-related functions in clang.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions