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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to