[PATCH] D139995: [RISCV] Refactor RVV Policy by structure
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 14 21:41:09 PST 2022
craig.topper added inline comments.
================
Comment at: clang/include/clang/Support/RISCVVIntrinsicUtils.h:131
+ bool operator==(const Policy &Other) const {
+ return this->PolicyNone == Other.PolicyNone && this->TU == Other.TU &&
+ this->TA == Other.TA && this->MU == Other.MU &&
----------------
You can drop `this->`
================
Comment at: clang/include/clang/Support/RISCVVIntrinsicUtils.h:372
unsigned NF = 1;
- Policy DefaultPolicy = Policy::PolicyNone;
+ Policy DefaultPolicy = Policy();
----------------
`= Policy()` is unnecessary.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139995/new/
https://reviews.llvm.org/D139995
More information about the cfe-commits
mailing list