This doesn't yet support parsing things like %pcrel_hi(foo), but will handle basic instructions with register or immediate operands.
Note: this patch is reliant on D23496
Differential D23563
[RISCV 6/10] Add basic RISCVAsmParser asb on Aug 16 2016, 8:32 AM. Authored by
Details This doesn't yet support parsing things like %pcrel_hi(foo), but will handle basic instructions with register or immediate operands. Note: this patch is reliant on D23496
Diff Detail
Event Timeline
Comment Actions Address review comments. Note that the way we defined AsmOperandClass has changed, which will be built upon in the next patch.
Comment Actions Just spotted one nit on my last pass through the code:
Comment Actions Address review comments from @jyknight and @t.p.northover. Also use # rather than !strconcat in RISCVInstrInfo.td Comment Actions Hi Alex, I silently followed the RISC-V patches being upstreamed and did not see an update here for a little while. Is this patch blocked on something or did you just not get to this one yet? Best,
Comment Actions Due to other responsibilities and my ongoing attempts to find further funding I'm a little behind where I wanted to be with the next set of patches. There were some concerns that aspects of this patchset might need adjusting once codegen was added, which is why I've held back on merging this part of the patchset. In retrospect, this probably wasn't necessary. Comment Actions Update to address review comment (just use StringRef rather than introducing Token struct).
Comment Actions http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/3300 is still unhappy about RISCVAsmParser.cpp Comment Actions RISCV should never have been included in LLVM_ALL_TARGETS when first committed - that was a mistake in the initial 'stub backend' patch. Removing RISCV from LLVM_ALL_TARGETS is the correct thing to do and shouldn't affect end-users, but I'll write to llvm-dev about this tomorrow for wider feedback. |