[PATCH] D108479: [Clang] Add __builtin_addressof_nocfi
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 13 19:42:00 PST 2021
rjmccall added a comment.
I don't know for certain, but I would guess that the kernel wants to get the address of the first instruction in the function for the purposes of some sort of later PC-based table lookup, which means that yes, it probably *does* need to bypass descriptors on CHERI / Itanium / whatever else.
What we're trying to do here is *avoid* a can of worms by clearly understanding what the desired semantics are, rather than adding a builtin with the semantics of "ignore exactly the one complication that we ran into first".
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits