[PATCH] D69759: [BPF] Add preserve_access_index attribute for record definition

Alexei Starovoitov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 8 09:49:24 PST 2019


ast added a comment.

Looks great. This is a big improvement in usability.
Is there a use case to apply that attribute to inner types automatically ?

  struct s1 {
    int foo;
  };
  struct s2 {
     struct s1 *ptr;
  } __reloc__ *s2;

s2->ptr->foo -- will both deref be relocatable or only first?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69759





More information about the cfe-commits mailing list