[all-commits] [llvm/llvm-project] 42c935: Revert "Reland "[LoongArch] Support -march=native ...

Steven Wu via All-commits all-commits at lists.llvm.org
Mon Jul 31 16:59:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42c9354a928d4d9459504527085fccc91b46aed3
      https://github.com/llvm/llvm-project/commit/42c9354a928d4d9459504527085fccc91b46aed3
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2023-07-31 (Mon, 31 Jul 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Basic/Targets/LoongArch.cpp
    M clang/lib/Basic/Targets/LoongArch.h
    M clang/lib/Driver/ToolChains/Arch/LoongArch.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    R clang/test/Driver/loongarch-mtune-error.c
    R clang/test/Driver/loongarch-mtune.c
    M clang/test/Preprocessor/init-loongarch.c
    M llvm/include/llvm/TargetParser/LoongArchTargetParser.h
    M llvm/lib/Target/LoongArch/LoongArch.td
    M llvm/lib/TargetParser/LoongArchTargetParser.cpp
    R llvm/test/CodeGen/LoongArch/cpus-invalid.ll
    R llvm/test/CodeGen/LoongArch/cpus.ll

  Log Message:
  -----------
  Revert "Reland "[LoongArch] Support -march=native and -mtune=""

This reverts commit c56514f21b2cf08eaa7ac3a57ba4ce403a9c8956. This
commit adds global state that is shared between clang driver and clang
cc1, which is not correct when clang is used with `-fno-integrated-cc1`
option (no integrated cc1). The -march and -mtune option needs to be
properly passed through cc1 command-line and stored in TargetInfo.




More information about the All-commits mailing list