diff options
author | wanglei <wanglei@loongson.cn> | 2022-11-19 14:55:25 +0800 |
---|---|---|
committer | wanglei <wanglei@loongson.cn> | 2022-11-19 17:36:06 +0800 |
commit | 6971c1b3702aba1fea5d3497258df21fb33922a7 (patch) | |
tree | ce48ccd260f51b0d068024940e9e9f2f3529f7c2 /llvm/lib/Object/XCOFFObjectFile.cpp | |
parent | 4b4250c75768e614d7384036c3c6050e185db50b (diff) | |
download | llvm-6971c1b3702aba1fea5d3497258df21fb33922a7.zip llvm-6971c1b3702aba1fea5d3497258df21fb33922a7.tar.gz llvm-6971c1b3702aba1fea5d3497258df21fb33922a7.tar.bz2 |
[LoongArch] Add support for tail call optimization
This patch adds tail call support to the LoongArch backend. When
appropriate, use the `b` or `jr` instruction for tail calls (the
`pcalau12i+jirl` instruction pair when use medium codemodel).
This patch also modifies the inappropriate operand name:
simm26_bl -> simm26_symbol
This has been modeled after RISCV's tail call opt.
Reviewed By: SixWeining
Differential Revision: https://reviews.llvm.org/D137889
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions