[PATCH] D55303: [RISCV, WIP] Add lowering of addressing sequences for PIC
Lewis Revill via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 4 17:09:18 PST 2018
lewis-revill created this revision.
lewis-revill added reviewers: asb, rogfer01, jrtc27.
Herald added subscribers: llvm-commits, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, mgrang, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar.
This patch allows lowering of PIC addresses by using PC-relative addressing for DSO-local symbols and accessing the address through the global offset table for non-DSO-local symbols.
Builds on D54143 <https://reviews.llvm.org/D54143>
Repository:
rL LLVM
https://reviews.llvm.org/D55303
Files:
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h
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/RISCVISelLowering.cpp
lib/Target/RISCV/RISCVISelLowering.h
lib/Target/RISCV/RISCVMCInstLower.cpp
lib/Target/RISCV/Utils/RISCVBaseInfo.h
test/CodeGen/RISCV/pic-models.ll
test/MC/RISCV/rv32i-invalid.s
test/MC/RISCV/rv32i-valid.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55303.176741.patch
Type: text/x-patch
Size: 15143 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181205/61092d1c/attachment.bin>
More information about the llvm-commits
mailing list