diff options
author | Julian Brown <julian.brown@amd.com> | 2024-08-05 12:37:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 07:37:07 -0400 |
commit | a42e515e3a9f3bb4e44389c097b89104d95b9b29 (patch) | |
tree | da91d35e1f35fd4f3ad6f917c8f31b081209e2a5 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 8370ba4d15c6726ed82bcd0d42a3ea9c94cc56b0 (diff) | |
download | llvm-a42e515e3a9f3bb4e44389c097b89104d95b9b29.zip llvm-a42e515e3a9f3bb4e44389c097b89104d95b9b29.tar.gz llvm-a42e515e3a9f3bb4e44389c097b89104d95b9b29.tar.bz2 |
[OpenMP] OpenMP 5.1 "assume" directive parsing support (#92731)
This is a minimal patch to support parsing for "omp assume" directives.
These are meant to be hints to a compiler's optimisers: as such, it is
legitimate (if not very useful) to ignore them. The patch builds on top
of the existing support for "omp assumes" directives (note spelling!).
Unlike the "omp [begin/end] assumes" directives, "omp assume" is
associated with a compound statement, i.e. it can appear within a
function. The "holds" assumption could (theoretically) be mapped onto
the existing builtin "__builtin_assume", though the latter applies to a
single point in the program, and the former to a range (i.e. the whole
of the associated compound statement).
This patch fixes sollve's OpenMP 5.1 "omp assume"-based tests.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions