[all-commits] [llvm/llvm-project] b4b95d: MIPS: fix build from IR files, nan2008 and FpAbi
YunQiang Su via All-commits
all-commits at lists.llvm.org
Mon Feb 6 20:36:24 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b4b95dee3140e7302d6889173386083978611a12
https://github.com/llvm/llvm-project/commit/b4b95dee3140e7302d6889173386083978611a12
Author: YunQiang Su <wzssyqa at gmail.com>
Date: 2023-02-06 (Mon, 06 Feb 2023)
Changed paths:
M clang/lib/Driver/ToolChains/Arch/Mips.cpp
M clang/test/Driver/mips-as.c
M clang/test/Driver/mips-integrated-as.s
M llvm/lib/Target/Mips/MipsAsmPrinter.cpp
A llvm/test/CodeGen/Mips/abiflags-2008-fp64.ll
Log Message:
-----------
MIPS: fix build from IR files, nan2008 and FpAbi
When we use llc or lld to compiler IR files, the features +nan2008 and +fpxx/+fp64 are not used.
Thus wrong format files are produced.
In IR files, the attributes are only set for function while not the whole compile units.
So we extract the attributes from the first function and use it for the whole unit.
isFPXXDefault: for o32, the FPXX should always be the default, no matter about the vendors.
Of course some distributions with FP64 default enabled should be listed explicit.
Let's add them in future if we know about one.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D140270
More information about the All-commits
mailing list