[clang] [flang] [llvm] [mlir] [OpenMP] Don't emit explicit flushes for atomic constructs (PR #245222)
Julian Brown via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 02:27:18 PST 2026
jtb20 wrote:
> there's one maybe-issue: "The release and acq_rel orderings are not valid on load instructions." and "The acquire and acq_rel orderings are not valid on store instructions."
>
> I think we forgot to consider that in our previous discussion (at least I didn't think of it...). The OpenMP spec allows acq_rel on read and write. However, I'm not sure yet if it also requires the release part for the read or the acquire part for the write. I don't think it makes sense, though
Seemingly at the moment Sema rejects acq_rel on atomic read and write; when that's fixed it should be narrowed to the appropriate half of the ordering. That can be a followup patch...
https://github.com/llvm/llvm-project/pull/245222
More information about the cfe-commits
mailing list