aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-05-22 07:29:59 +0000
committerFangrui Song <maskray@google.com>2019-05-22 07:29:59 +0000
commit1c61471ab1cba735f57824ec8a38db845e60ab84 (patch)
treee20c5ed4a82942e285d42327d8fd88239a505c4d /llvm/lib/CodeGen/MachineCSE.cpp
parenteec021658b8f1a4db0d170f03f98d694e900dc8c (diff)
downloadllvm-1c61471ab1cba735f57824ec8a38db845e60ab84.zip
llvm-1c61471ab1cba735f57824ec8a38db845e60ab84.tar.gz
llvm-1c61471ab1cba735f57824ec8a38db845e60ab84.tar.bz2
[PPC64] Parse -elfv1 -elfv2 when specified on target triple
Summary: For big-endian powerpc64, the default ABI is ELFv1. OpenPower ABI ELFv2 is supported when -mabi=elfv2 is specified. FreeBSD support for PowerPC64 ELFv2 ABI with LLVM is in progress[1]. This patch adds an alternative way to specify ELFv2 ABI on target triple [2]. The following results are expected: ELFv1 when using: -target powerpc64-unknown-freebsd12.0 -target powerpc64-unknown-freebsd12.0 -mabi=elfv1 -target powerpc64-unknown-freebsd12.0-elfv1 ELFv2 when using: -target powerpc64-unknown-freebsd12.0 -mabi=elfv2 -target powerpc64-unknown-freebsd12.0-elfv2 [1] https://wiki.freebsd.org/powerpc/llvm-elfv2 [2] https://clang.llvm.org/docs/CrossCompilation.html Patch by Alfredo Dal'Ava JĂșnior! Differential Revision: https://reviews.llvm.org/D61950 llvm-svn: 361355
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions