[PATCH] D55560: [RISCV] Attach VK_RISCV_CALL to symbols upon creation

Lewis Revill via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 11 09:03:20 PST 2018


lewis-revill created this revision.
lewis-revill added reviewers: asb, rogfer01, jrtc27.
Herald added subscribers: llvm-commits, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, mgrang, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar.

This patch replaces the addition of `VK_RISCV_CALL` in `RISCVMCCodeEmitter` by creating the `RISCVMCExpr` when tail/call are parsed, or in the codegen case when the callee symbols are created.

This required adding a new `CallSymbol` operand to allow only adding `VK_RISCV_CALL` to tail/call instructions.

This patch will allow further expansion of parsing and codegen to easily include PLT symbols which must generate the `R_RISCV_CALL_PLT` relocation.


Repository:
  rL LLVM

https://reviews.llvm.org/D55560

Files:
  lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
  lib/Target/RISCV/RISCVISelLowering.cpp
  lib/Target/RISCV/RISCVInstrInfo.td
  lib/Target/RISCV/RISCVMCInstLower.cpp
  lib/Target/RISCV/Utils/RISCVBaseInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55560.177725.patch
Type: text/x-patch
Size: 6507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181211/fdc79a79/attachment.bin>


More information about the llvm-commits mailing list