[PATCH] D81479: [BPF] introduce __builtin_load_u32_to_ptr() intrinsic

Alexei Starovoitov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 9 10:58:27 PDT 2020


ast added inline comments.


================
Comment at: clang/test/CodeGen/builtin-bpf-load-u32-to-ptr.c:5
+struct t { int a; int b; };
+void *test(struct t *arg) { return __builtin_load_u32_to_ptr(arg, 4); }
+
----------------
can it be expressed as:
__builtin_load_u32_to_ptr(&arg->b) ?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81479





More information about the cfe-commits mailing list