[PATCH] D45859: [RISCV] Support "call" pseudoinstruction in the MC layer
Shiva Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 19 20:10:04 PDT 2018
shiva0217 created this revision.
shiva0217 added reviewers: asb, apazos.
Herald added subscribers: edward-jones, zzheng, kito-cheng, niosHD, sabuasal, jordy.potman.lists, simoncook, johnrusso, rbar.
To do this:
1. Add PseudoCALLIndirct to match indirect function call.
2. Add PseudoCALL to support parsing and print pseudo `call` in assembly
3. Expand PseudoCALL to the following form with R_RISCV_CALL relocation type while encoding: auipc ra, func jalr ra, ra, 0
Repository:
rL LLVM
https://reviews.llvm.org/D45859
Files:
lib/Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
lib/Target/RISCV/MCTargetDesc/RISCVFixupKinds.h
lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp
lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.h
lib/Target/RISCV/RISCVInstrInfo.td
test/MC/RISCV/function-call.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45859.143221.patch
Type: text/x-patch
Size: 7859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180420/44cc7854/attachment.bin>
More information about the llvm-commits
mailing list