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

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 13:22:06 PST 2023


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Arch/RISCV.cpp:47
+      Features, [&Args](const Twine &Str) { return Args.MakeArgString(Str); },
+      true);
   return true;
----------------
craig.topper wrote:
> `true` -> `/*AddAllExtensions*/true`
The canonical comment is `/*AddAllExtensions=*/true`


================
Comment at: clang/test/Driver/riscv-cpus.c:86
+// MCPU-ABI-SIFIVE-S21: "-target-feature" "+c"
+// MCPU-ABI-SIFIVE-S21: "-target-feature" "+64bit"
 // MCPU-ABI-SIFIVE-S21: "-target-abi" "lp64"
----------------
If the two features are adjacent, I suggest you place them one the same line.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140693



More information about the llvm-commits mailing list