[PATCH] D78862: [IR] Convert null-pointer-is-valid into an enum attribute
Nikita Popov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 26 01:32:53 PDT 2020
nikic added a comment.
@arsenm If the `null-pointer-is-valid` attribute is moved into the data layout, I'm wondering how Clang's `-fno-delete-null-pointer-checks` option would work or what it would be replaced with. In Rust it is possible to define a custom target, which also defines a custom data-layout, though I think that also needs to be compatible with the base target. I couldn't find any information on how to use a custom data layout in Clang. As such, I suspect that to preserve existing functionality we'd need support //both// for specifying this per-addrspace in the DL and as a function attribute.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78862/new/
https://reviews.llvm.org/D78862
More information about the cfe-commits
mailing list