This group is locked. No changes can be made to the group while it is locked.
[v2][PATCH RFC] Add BPF AsmParser support in LLVM
Jiong Wang
On 09/09/17 00:47, Y Song wrote:
On Fri, Sep 8, 2017 at 1:00 PM, Jiong Wang <jiong.wang@...> wrote:Hi Y Song,I just push a patch (similar to your suggestion below but without Thanks, patch updated, please review. Changes since the initial version: * Addressed all comments on instruction unit tests. - Renamed test file to "insn-unit.s". - Removed unnecessary comments. - Added BPF_B tests for load and store. - Added BPF_K test for jmp and alu. (Noticed a seperate issue with unsigned compare then jump. Looks like BPF backend is alway printing the immediate as signed, I guess we need to change the operand types in instruction patterns.) - Adjusted constant load tests. - Interleaved the expected results with input insns. * Changed the disassembly output "ll" to "LL" in BPFInstPrinter.cpp. This is because I noticed MC parser only accept "LL" as long long suffix. It might be the reason documented here: https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=19759250 |