-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add few clang compiler alias for BPF target #4543
Conversation
Add 3 latest clang version aliases to BPF target. refs #4408 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Thanks so much! Not blocking for the PR of course, but could you also add clang trunk as well? That would be very useful too. |
@borkmann we usually use binutils for objdump and demangler (c++filt). Is it a valid choice also for bpf? |
For BPF, is it possible to use in all cases LLVM pendants?
Will give:
That's the more commonly used disasm output in BPF community. I know that the BPF gcc trunk uses their own asm syntax at the moment. Each could use their own by default, but if it is possible, it would actually be really nice for users to pick a choice ( |
Ok thanks, I'll see what I can do. I don't think I've seen any usage of edit: so we have some llvm-objdump around for mos and hip/rocm, so should be ok. User can't switch it dynamically, so I'll have clang compilers use llvm, and gcc use binutils. |
you'll need to also set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on this
Thank you all for reviewing/advising! |
Ok, so this is not working :(
Possible solutions:
|
Support for clang BPF got merged over the weekend: compiler-explorer/compiler-explorer#4543 Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Support for clang BPF got merged over the weekend: compiler-explorer/compiler-explorer#4543 Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Add 3 latest clang version aliases + trunk to BPF target. Use `llvm-objdump` for clang compilers and binutils' one for the GCC compiler (unfortunately, this can't be changed by the user in the UI). refs #4408
Add 3 latest clang version aliases to BPF target.
refs #4408
Signed-off-by: Marc Poulhiès dkm@kataplop.net