jdoerfert added inline comments.
================
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:1689
+
+llvm::StringSet<> Sema::KnownAssumptionStrings({
+ "omp_no_openmp", // OpenMP 5.1
----------------
aaron.ballman wrote:
> The current approach is reasonable, but I wonder if there's a way we can
> force this list to be filled out by the backend pass authors such that the
> frontend can query the backend for the supported list?
We do, kinda. A backend that wants to query an assumption from the
`llvm.assume` function attribute needs to provide a `KnownAssumptionStr` which
has a comment people might read.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91979/new/
https://reviews.llvm.org/D91979
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits