aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorlewis-revill <lewis.revill@embecosm.com>2020-02-11 21:23:03 +0000
committerlewis-revill <lewis.revill@embecosm.com>2020-02-11 21:23:03 +0000
commit07f7c00208b393296f8f27d6cd3cec2b11d86fd8 (patch)
tree827b0e81a6d311f445bd85df8acf83f41cb44015 /clang/lib/Frontend/CompilerInvocation.cpp
parent52aec3221fa5766c669cfd16e6ba0cf0737d1fff (diff)
downloadllvm-07f7c00208b393296f8f27d6cd3cec2b11d86fd8.zip
llvm-07f7c00208b393296f8f27d6cd3cec2b11d86fd8.tar.gz
llvm-07f7c00208b393296f8f27d6cd3cec2b11d86fd8.tar.bz2
[RISCV] Add support for save/restore of callee-saved registers via libcalls
This patch adds the support required for using the __riscv_save and __riscv_restore libcalls to implement a size-optimization for prologue and epilogue code, whereby the spill and restore code of callee-saved registers is implemented by common functions to reduce code duplication. Logic is also included to ensure that if both this optimization and shrink wrapping are enabled then the prologue and epilogue code can be safely inserted into the basic blocks chosen by shrink wrapping. Differential Revision: https://reviews.llvm.org/D62686
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions