diff options
author | Christof Douma <Christof.Douma@arm.com> | 2017-02-07 13:07:12 +0000 |
---|---|---|
committer | Christof Douma <Christof.Douma@arm.com> | 2017-02-07 13:07:12 +0000 |
commit | d3ed8380e08e51535a32b30df2e68dac6a08a848 (patch) | |
tree | c1f19b044a8206ced9c14fb84e0e0a408adee8e4 /clang/lib/Format/UnwrappedLineParser.cpp | |
parent | 6a3d74eb509f02af5a457338a778bc823370b2cc (diff) | |
download | llvm-d3ed8380e08e51535a32b30df2e68dac6a08a848.zip llvm-d3ed8380e08e51535a32b30df2e68dac6a08a848.tar.gz llvm-d3ed8380e08e51535a32b30df2e68dac6a08a848.tar.bz2 |
[ARM] Make RWPI use movw/movt when available
When constructing global address literals while targeting the RWPI
relocation model. LLVM currently only uses literal pools. If MOVW/MOVT
instructions are available we can use these instead. Beside being more
efficient it allows -arm-execute-only to work with
-relocation-model=RWPI as well.
When we generate MOVW/MOVT for global addresses when targeting the RWPI
relocation model, we need to use base relative relocations. This patch
does the needed plumbing in MC to generate these for MOVW/MOVT.
Differential Revision: https://reviews.llvm.org/D29487
Change-Id: I446786e43a6f5aa9b6a5bb2cd216d60d41c7755d
llvm-svn: 294298
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
0 files changed, 0 insertions, 0 deletions