[PATCH] D140693: [Driver][RISCV] Adjust the priority between -mcpu, -mtune and -march

Kito Cheng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 11 05:36:48 PST 2023


kito-cheng updated this revision to Diff 488173.
kito-cheng added a comment.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Changes:

- Add release note to mention the behavior change for `-march` and `-mcpu`.
- New way to implement this behavior, passing all supported extension with `-` or `+`, this way is less RISC-V specific logical around `-mcpu`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140693/new/

https://reviews.llvm.org/D140693

Files:
  clang/docs/ReleaseNotes.rst
  clang/lib/Driver/ToolChains/Arch/RISCV.cpp
  clang/test/Driver/riscv-cpus.c
  clang/test/Driver/riscv-default-features.c
  clang/test/Driver/riscv-march-mcpu-mtune.c
  llvm/include/llvm/Support/RISCVISAInfo.h
  llvm/lib/Support/RISCVISAInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140693.488173.patch
Type: text/x-patch
Size: 13803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230111/65e5a828/attachment.bin>


More information about the cfe-commits mailing list