[PATCH] D151087: [Clang] Permit address space casts with 'reinterpret_cast' in C++
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 22 09:23:22 PDT 2023
JonChesterfield added a comment.
I like the current behaviour of bypass semantic checking and emit IR with the same number on it as my primary use case for feeding freestanding C++ to clang is as a convenient way to emit specific IR and I'm not that bothered about clang detecting mistakes along the way.
Funny that you mention addrspace(5) global as that's a pretty good approximation to what we'd like for errno. The semantics that would have been convenient is put it at the bottom of the stack in every kernel that can reach the variable and wire accesses to it through some base-of-stack built-in, which is presently not a thing but could be implemented.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151087/new/
https://reviews.llvm.org/D151087
More information about the cfe-commits
mailing list