[PATCH] D157813: [VE][Clang] Change to enable VPU flag by default

Kazushi Marukawa via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 15 20:53:22 PDT 2023


kaz7 marked 3 inline comments as done.
kaz7 added inline comments.


================
Comment at: clang/include/clang/Driver/Options.td:5166
+// VE feature flags
+let Flags = [TargetSpecific, CC1Option] in {
+def mvevpu : Flag<["-"], "mvevpu">, Group<m_ve_Features_Group>,
----------------
MaskRay wrote:
> Other feature group options  don't set CC1Option: we do not need them as CC1 options (e.g. `-Xclang -msse4`)
Thank you.  I was wondering which group options are required here.


================
Comment at: clang/include/clang/Driver/Options.td:5169
+  HelpText<"Emit VPU instructions for VE">;
+def mno_vevpu : Flag<["-"], "mno-vevpu">, Group<m_ve_Features_Group>,
+  HelpText<"Do not emit VPU instructions for VE">;
----------------
MaskRay wrote:
> In general, we just need documentation for the non-default option (let's say `-mvevpu`). Documentation for the opposite `-mno-mvevpu` is just boilerplate and not very useful.
I see.  Changed.


================
Comment at: clang/test/Driver/ve-features.c:1
+// RUN: %clang -target ve-unknown-linux-gnu -### %s -mvevpu 2>&1 | FileCheck %s -check-prefix=VEVPU
+// RUN: %clang -target ve-unknown-linux-gnu -### %s -mno-vevpu 2>&1 | FileCheck %s -check-prefix=NO-VEVPU
----------------
MaskRay wrote:
> `-target ` has been deprecated since Clang 3.4. Use `--target=`
I didn't know that.  Thank you!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157813



More information about the cfe-commits mailing list