[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 29 17:03:51 PDT 2023
kaz7 marked an inline comment as done.
kaz7 added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Arch/VE.cpp:22
+ std::vector<StringRef> &Features) {
+ // Defaults.
+ bool EnableVPU = true;
----------------
MaskRay wrote:
> Delete the comment. The code speaks itself.
>
> ```
> if (Args.hasArg(options::OPT_mvevpu, options::OPT_mno_vevpu, true)
> Features.push_back("+vpu");
> ```
Thanks. I remove comments and simplify existing code.
================
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:
> kaz7 wrote:
> > MaskRay wrote:
> > > `-target ` has been deprecated since Clang 3.4. Use `--target=`
> > I didn't know that. Thank you!
> I think we typically spend just two RUN lines:
>
> * one for the default
> * one for `-mvevpu -mno-vevpu`
>
> The additional coverage for having 3 RUN lines is probably not useful.
Thank you for suggesting. I consider what this patch should do and change the purpose to support VPU flag in the backend for VE. As a result, Tests are two RUN lines.
- one for enable VPU
- one for disable VPU
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