]> granicus.if.org Git - llvm/commit
[RISCV] Add lowering of addressing sequences for PIC
authorLewis Revill <lewis.revill@embecosm.com>
Tue, 11 Jun 2019 12:57:47 +0000 (12:57 +0000)
committerLewis Revill <lewis.revill@embecosm.com>
Tue, 11 Jun 2019 12:57:47 +0000 (12:57 +0000)
commit471a132b5720c44781908a3c7831d07577238bf1
treee197e3bc4390e069bb499e8f98ac3b480eb34557
parent1503bf6715059e790dc18504461eb2ca0ec4cdd4
[RISCV] Add lowering of addressing sequences for PIC

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.

Differential Revision: https://reviews.llvm.org/D55303

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363058 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
lib/Target/RISCV/RISCVISelLowering.cpp
lib/Target/RISCV/RISCVISelLowering.h
lib/Target/RISCV/RISCVInstrInfo.cpp
lib/Target/RISCV/RISCVMCInstLower.cpp
lib/Target/RISCV/Utils/RISCVBaseInfo.h
test/CodeGen/RISCV/pic-models.ll [new file with mode: 0644]