[ARM] GlobalISel: Select simple G_GLOBAL_VALUE instructions
authorDiana Picus <diana.picus@linaro.org>
Thu, 3 Aug 2017 09:14:59 +0000 (09:14 +0000)
committerDiana Picus <diana.picus@linaro.org>
Thu, 3 Aug 2017 09:14:59 +0000 (09:14 +0000)
commit930e6ec8f3058fc4dae22da04fb858c63896578e
tree2ecd73ac8af286b22eee8d9990ece884b30494da
parenta0beedef1c9b677748a0a7f32a05690f9980f164
[ARM] GlobalISel: Select simple G_GLOBAL_VALUE instructions

Add support in the instruction selector for G_GLOBAL_VALUE for ELF and
MachO for the static relocation model. We don't handle Windows yet
because that's Thumb-only, and we don't handle Thumb in general at the
moment.

Support for PIC, ROPI, RWPI and TLS will be added in subsequent commits.

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

llvm-svn: 309927
llvm/lib/Target/ARM/ARMInstructionSelector.cpp
llvm/test/CodeGen/ARM/GlobalISel/arm-instruction-select-globals.mir [new file with mode: 0644]
llvm/test/CodeGen/ARM/GlobalISel/arm-isel-globals.ll [new file with mode: 0644]
llvm/test/CodeGen/ARM/GlobalISel/arm-unsupported.ll