|
|
|
|
|
by krasin
3288 days ago
|
|
LLVM IR is being changed at a high rate. While there are some weak backward-compatibility promises (older, but not too much old, bitcode can be read by newer official IR readers), new features are introduced overnight. I expect this project to be a high maintenance job to keep up with the LLVM trunk. |
|
To facilitate maintenance efforts over time, a BNF grammar for LLVM IR assembly has been written, from which the lexer and parser are generated [1,2,3]. The intention is for this BNF grammar to eventually become the basis or starting ground for an official BNF grammar of the LLVM IR assembly language (but that's a different project altogether, and a huge effort in itself).
[1]: https://github.com/llir/llvm/blob/master/asm/internal/ll.bnf
[2]: https://github.com/llir/grammar
[3]: https://github.com/goccmack/gocc