aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2023-02-02 11:33:59 +0800
committerWeining Lu <luweining@loongson.cn>2023-02-02 11:34:01 +0800
commit695c81e8a61a784f881255ea62a3ea76c1e2ee51 (patch)
tree0c3d285d78a05d1a0d158b7322fe469c1484c2de /llvm/lib/Transforms/Utils/Local.cpp
parentf2d52c0531694260dabc117472d5141401726027 (diff)
downloadllvm-695c81e8a61a784f881255ea62a3ea76c1e2ee51.zip
llvm-695c81e8a61a784f881255ea62a3ea76c1e2ee51.tar.gz
llvm-695c81e8a61a784f881255ea62a3ea76c1e2ee51.tar.bz2
[LoongArch] Implement handling of triple-implied ABIs
According to the [[ https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html | LoongArch Toolchain Conventions ]] it is possible to specify the ABI modifier (the "D" part of "LP64D") via the environment field in the target triple. This is needed for proper support for Debian-style multiarch tuples as well, so add triple awareness to `LoongArchSubtarget` via addition of `LoongArchABI::computeTargetABI`. Let the explicit `--target-abi` argument intuitively take precedence over the triple-implied ABI. Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D142685
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions