[all-commits] [llvm/llvm-project] fa42e7: [RISCV] Merge RISCV::parseCPUKind and RISCV::check...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon May 1 13:01:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa42e7b6bc430941f42cf50b5c4e55b3c19ccc08
      https://github.com/llvm/llvm-project/commit/fa42e7b6bc430941f42cf50b5c4e55b3c19ccc08
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-05-01 (Mon, 01 May 2023)

  Changed paths:
    M clang/lib/Basic/CMakeLists.txt
    M clang/lib/Basic/Targets/RISCV.cpp
    M clang/lib/Driver/CMakeLists.txt
    M clang/lib/Driver/ToolChains/Arch/RISCV.cpp
    M clang/lib/Sema/CMakeLists.txt
    M llvm/docs/ReleaseNotes.rst
    M llvm/include/llvm/TargetParser/RISCVTargetParser.h
    M llvm/lib/TargetParser/RISCVTargetParser.cpp

  Log Message:
  -----------
  [RISCV] Merge RISCV::parseCPUKind and RISCV::checkCPUKind.

Similar for RISCV::parseTuneCPU and RISCV::checkTuneCPUKind.

This makes the CPUKind enum no longer part of the API. It wasn't
providing much value. It was only used to pass between the two
functions.

By removing it, we can remove a dependency on a tablegen generated
file from the RISCVTargetParser.h file. Then we can remove a
dependency from several CMakeLists.txt.




More information about the All-commits mailing list