[clang] [CIR] Match OGCG noalias and memory effects on operator new (PR #221818)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 17:54:02 PDT 2026
================
@@ -1931,19 +1890,22 @@ def CIR_SideEffect : CIR_I32Enum<
`__attribute__((pure))`.
- const: The function or callee may not read or write data from memory. This
has the same effect as the GNU C/C++ attribute `__attribute__((const))`.
+ - inaccessible_or_errno: The function or callee may only access inaccessible
+ memory and errno. This matches LLVM
+ `memory(inaccessiblemem: readwrite, errnomem: write)` used for sane
----------------
erichkeane wrote:
Yeah, this is really my thought as well, we should probably just use MemoryEffectsAttr and pass them on with teh same logic as classic codgen everywhere.
https://github.com/llvm/llvm-project/pull/221818
More information about the cfe-commits
mailing list