search for: bpf_store_half

Displaying 3 results from an estimated 3 matches for "bpf_store_half".

2015 Aug 05
2
[LLVMdev] Cc llvmdev: Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
On 8/4/15 11:51 PM, Wangnan (F) wrote: > void bpf_store_half(void *skb, int off, int val) > asm("llvm.bpf.store.half"); > int func() > { > bpf_store_half(0, 0, 0); > return 0; > } > > Compiled with: > > $ clang -g -target bpf -O2 -S -c test.c > > And get this: > > .text >...
2015 Aug 05
2
[LLVMdev] Cc llvmdev: Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
...ing >> in it. However >> I'm not sure whether the prerequestion is hold. >> >>> patch 2: >>> do we really need to hack clang? >>> Can you just define a function that aliases to intrinsic, >>> like we do for ld_abs/ld_ind ? >>> void bpf_store_half(void *skb, u64 off, u64 val) >>> asm("llvm.bpf.store.half"); >>> then no extra patches necessary. >>> >>>> struct my_str { >>>> int x; >>>> int y; >>>> }; >>>> struct my_str __str_my_...
2015 Aug 12
2
llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
...y replying this mail. Please have a look and >> help me >> send them to LLVM if you think my code is correct. > > [SNIP] > patch 2: > do we really need to hack clang? > Can you just define a function that aliases to intrinsic, > like we do for ld_abs/ld_ind ? > void bpf_store_half(void *skb, u64 off, u64 val) > asm("llvm.bpf.store.half"); > then no extra patches necessary. Hi Alexei, By two weeks researching, I have to give you a sad answer that: target specific intrinsic is not work. I tried target specific intrinsic. However, LLVM isolates backend and...