[PATCH] D54143: [WIP, RISCV] Generate address sequences suitable for mcmodel=medium
Lewis Revill via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 02:49:57 PST 2018
lewis-revill created this revision.
lewis-revill added a reviewer: asb.
Herald added subscribers: llvm-commits, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, mgrang, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar.
This patch adds an implementation of a PC-relative addressing sequence to be used when -mcmodel=medium is specified. With absolute addressing, a 'medium' codemodel may cause addresses to be out of range. This is because while 'medium' implies a 2 GiB addressing range, this 2 GiB can be at any offset as opposed to 'small', which implies the first 2 GiB only.
Repository:
rL LLVM
https://reviews.llvm.org/D54143
Files:
lib/Target/RISCV/RISCVISelLowering.cpp
lib/Target/RISCV/RISCVISelLowering.h
lib/Target/RISCV/RISCVMCInstLower.cpp
test/CodeGen/RISCV/codemodel-lowering.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54143.172728.patch
Type: text/x-patch
Size: 10112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/43889218/attachment.bin>
More information about the llvm-commits
mailing list