[PATCH] D41949: [RISCV] [WIP] implement li pseudo instruction

Mario Werner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 04:39:35 PST 2018


niosHD updated this revision to Diff 132139.
niosHD edited the summary of this revision.
niosHD added a comment.
Herald added subscribers: hintonda, mgorny.

Moved the shared emitLoadImm methods to a free function into the RISCVDesc library. Additionally, the Size of the pseudo instruction has been set to 8 (worst case for RV32) to ensure proper branch relaxation. Finally, the pattern for 32-bit immediate integers has been updated to generate PseudoLI and the tests have been updated accordingly.

I am going to add support for 64-bit constants next in order to get rid of the WIP tag. Nevertheless, comments are of course still welcome.


https://reviews.llvm.org/D41949

Files:
  lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  lib/Target/RISCV/MCTargetDesc/CMakeLists.txt
  lib/Target/RISCV/MCTargetDesc/RISCVMCPseudoExpansion.cpp
  lib/Target/RISCV/MCTargetDesc/RISCVMCPseudoExpansion.h
  lib/Target/RISCV/RISCVAsmPrinter.cpp
  lib/Target/RISCV/RISCVInstrFormats.td
  lib/Target/RISCV/RISCVInstrInfo.cpp
  lib/Target/RISCV/RISCVInstrInfo.td
  test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll
  test/CodeGen/RISCV/calling-conv.ll
  test/CodeGen/RISCV/mem.ll
  test/CodeGen/RISCV/vararg.ll
  test/MC/RISCV/rv32i-aliases-invalid.s
  test/MC/RISCV/rv64i-aliases-invalid.s
  test/MC/RISCV/rvi-aliases-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41949.132139.patch
Type: text/x-patch
Size: 33054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180131/20fe35ad/attachment.bin>


More information about the llvm-commits mailing list