]> granicus.if.org Git - llvm/commit
[RISCV] Attach VK_RISCV_CALL to symbols upon creation
authorAlex Bradbury <asb@lowrisc.org>
Mon, 1 Apr 2019 14:53:17 +0000 (14:53 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Mon, 1 Apr 2019 14:53:17 +0000 (14:53 +0000)
commit415b5e48b6309dafb28b4855007e9c63dbd0b79e
tree46b6756136dca2a3595c21dcc9ab73289640f554
parentd2fa304a0730dea5795b9d09aaaee8ae4dc81465
[RISCV] Attach VK_RISCV_CALL to symbols upon creation

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.

Differential Revision: https://reviews.llvm.org/D55560
Patch by Lewis Revill.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357396 91177308-0d34-0410-b5e6-96231b3b80d8
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