diff options
author | Alex Bradbury <asb@lowrisc.org> | 2018-09-20 08:10:35 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2018-09-20 08:10:35 +0000 |
commit | 226f3ef5a52db932e4acbcfdf9bb860a25ba6d59 (patch) | |
tree | d85cc59991553bc5d7ab0e9ba40db5817d73c4ee /llvm/lib/IR/LLVMContextImpl.h | |
parent | 6616b4c9e9ecdf68864cc1bdea4d4fa9dfd6f692 (diff) | |
download | bcm5719-llvm-226f3ef5a52db932e4acbcfdf9bb860a25ba6d59.tar.gz bcm5719-llvm-226f3ef5a52db932e4acbcfdf9bb860a25ba6d59.zip |
[RISCV][MC] Improve parsing of jal/j operands
Examples such as `jal a3`, `j a3` and `jal a3, a3` are accepted by gas
but rejected by LLVM MC. This patch rectifies this. I introduce
RISCVAsmParser::parseJALOffset to ensure that symbol names that coincide with
register names can safely be parsed. This is made a somewhat fiddly due to the
single-operand alias form (see the comment in parseJALOffset for more info).
Differential Revision: https://reviews.llvm.org/D52029
llvm-svn: 342629
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.h')
0 files changed, 0 insertions, 0 deletions