OSDN Git Service

[ARM] GlobalISel: Support ROPI global variables
authorDiana Picus <diana.picus@linaro.org>
Fri, 1 Sep 2017 11:13:39 +0000 (11:13 +0000)
committerDiana Picus <diana.picus@linaro.org>
Fri, 1 Sep 2017 11:13:39 +0000 (11:13 +0000)
commit6470656cc2b5435ec7570bc567dc6bb24e334397
tree925c68072a5a6e0f26c0b08a15cb96085d50df5d
parent4855d2de9a64d3bb4ebb91832814476ed3ad1692
[ARM] GlobalISel: Support ROPI global variables

In the ROPI relocation model, read-only variables are accessed relative
to the PC. We use the (MOV|LDRLIT)_ga_pcrel pseudoinstructions for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312323 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstructionSelector.cpp
test/CodeGen/ARM/GlobalISel/arm-isel-globals-ropi-rwpi.ll [new file with mode: 0644]
test/CodeGen/ARM/GlobalISel/arm-select-globals-ropi-rwpi.mir [new file with mode: 0644]
test/CodeGen/ARM/GlobalISel/arm-unsupported.ll