[all-commits] [llvm/llvm-project] 9739bb: MIPS: fix build from IR files, nan2008 and FpAbi

YunQiang Su via All-commits all-commits at lists.llvm.org
Thu Dec 15 01:04:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9739bb81aed490bfcbcbbac6970da8fb7232fd34
      https://github.com/llvm/llvm-project/commit/9739bb81aed490bfcbcbbac6970da8fb7232fd34
  Author: YunQiang Su <wzssyqa at gmail.com>
  Date:   2022-12-15 (Thu, 15 Dec 2022)

  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 output `.nan 2008` and `.module fp=xx/64` before every function.

`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/D138179




More information about the All-commits mailing list