Skip to content
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 support for LLVM-style syntax #8

Open
kfl opened this issue Oct 7, 2022 · 4 comments
Open

Add support for LLVM-style syntax #8

kfl opened this issue Oct 7, 2022 · 4 comments

Comments

@kfl
Copy link
Owner

kfl commented Oct 7, 2022

LLVM has chosen an unconventional syntax for their eBPF assembly syntax. And this style is also used for output by, for instance, bpftool. Thus it makes sense to support this syntax both as input and output.

@madsobitsoe
Copy link

Do you happen to know where a specification of the LLVM-style syntax can be found?
I fail to find one with my search-skills.

@kfl
Copy link
Owner Author

kfl commented Oct 11, 2022

The problems with eBPF syntax are:

  • There are so many to chose from.
  • None of them are fully specified/documented (including the one used by ebpf-tools)

@kfl
Copy link
Owner Author

kfl commented Oct 11, 2022

Tongue in cheek, I think the best documentation is https://llvm.org/doxygen/BPFAsmParser_8cpp_source.html, because it doesn't look like llvm-mc has any documentation regarding its input format.

@madsobitsoe
Copy link

Wonderful!
I will let you know if I ever get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants