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

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 20:25:19 PDT 2020


yonghong-song added a comment.

In D81479#2083933 <https://reviews.llvm.org/D81479#2083933>, @ast wrote:

> It feels that the same thing can be represented as inline asm.
>  What advantage builtin has?


Yes, this can be represented as an inline asm. I have a tendency not liking inline assembly codes in bpf programs.
But maybe for this one, we could hide inline asm in the header and provide the same signature like
__builtin_bpf_load_u32_to_ptr() to users.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81479





More information about the llvm-commits mailing list