[PATCH] D127579: [clang][WIP] add option to keep types of ptr args for non-kernel functions in metadata

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 17 01:32:06 PDT 2022


Anastasia added a comment.

In D127579#3585537 <https://reviews.llvm.org/D127579#3585537>, @nikic wrote:

> In D127579#3585516 <https://reviews.llvm.org/D127579#3585516>, @beanz wrote:
>
>> 
>
> Clang is only permitted to encode pointer type information if that pointer type has some kind of direct semantic meaning -- say, if the pointer element type affects the call ABI in some way. If it does not have direct semantic meaning, then deriving the pointer type based on usage (as DXIL does) and using that for emission would be right approach.

@nikic what is the way for clang to encode the pointer type? Is it just generated regularly as before or using something like `elementtype` hint?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127579



More information about the cfe-commits mailing list