[PATCH] D138958: [clang] Better UX for Clang’s unwind-affecting attributes

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 11:13:03 PST 2023


efriedma added a comment.

I'm not trying to argue what the `pure`/`const` attribute in C/C++ is supposed to mean.  I agree with your interpretation of the gcc documentation/implementation.  I'm saying that there's a mismatch between the gcc `pure`/`const` and the LLVM IR `memory(read)`/`memory(none)`, and therefore you can't unconditionally lower `const` to `memory(none)`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138958/new/

https://reviews.llvm.org/D138958



More information about the llvm-commits mailing list