This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0d4c6506100b: [RISCV] Refactor RVV Policy by structure
(authored by BeMg).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https:
BeMg updated this revision to Diff 484180.
BeMg added a comment.
rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139995/new/
https://reviews.llvm.org/D139995
Files:
clang/include/clang/Support/RISCVVIntrinsicUtils.h
clang/lib/Sema/SemaRIS
kito-cheng accepted this revision.
kito-cheng added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139995/new/
https://reviews.llvm.org/D139995
___
BeMg updated this revision to Diff 483707.
BeMg added a comment.
1. Use Undisturbed, Agnostic and Omit to represent Tail and Mask
2. Replace getDefaultPolicyBits != 0 with !RVVI->isTUPolicy() &&
!RVVI->isTUMUPolicy()
3. Use llvm_unreachable
Repository:
rG LLVM Github Monorepo
CHANGES SINCE L
kito-cheng added inline comments.
Comment at: clang/include/clang/Support/RISCVVIntrinsicUtils.h:100
+ bool MU = false;
+ bool MA = false;
+ bool IntrinsicWithoutMU = false;
Maybe use enum value for tail/mask policy? *U and *A are mutually exclusive, so
I fee
BeMg updated this revision to Diff 483414.
BeMg added a comment.
1. Remove this->
2. Remove Policy() in struct declarationx
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139995/new/
https://reviews.llvm.org/D139995
Files:
clang/include/clang/Sup
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
craig.topper added inline comments.
Comment at: clang/include/clang/Support/RISCVVIntrinsicUtils.h:141
+// Just for maintain the old order for quick test.
+return std::tie(this->MU, this->MA, this->TA, this->TU) <
+ std::tie(Other.MU, Other.MA, Other.TA, Other.T
BeMg added inline comments.
Comment at: clang/include/clang/Support/RISCVVIntrinsicUtils.h:105
+ : TU(_TU), TA(_TA), MU(_MU), MA(_MA) {}
+ Policy(bool _TU, bool _TA, bool _MU, bool _MA, bool _IntrinsicWithoutMU)
+ : TU(_TU), TA(_TA), MU(_MU), MA(_MA),
BeMg added inline comments.
Comment at: clang/include/clang/Support/RISCVVIntrinsicUtils.h:140
+// Just for maintain the old order for quick test.
+return std::tie(this->MU, this->MA, this->TA, this->TU) <
+ std::tie(Other.MU, Other.MA, Other.TA, Other.TU);
BeMg updated this revision to Diff 483068.
BeMg added a comment.
1. Update policy constructor
2. use emplace_back
3. Fix miss WithoutIntrinsicMU in policy equal check
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139995/new/
https://reviews.llvm.or
craig.topper added inline comments.
Comment at: clang/include/clang/Support/RISCVVIntrinsicUtils.h:105
+ : TU(_TU), TA(_TA), MU(_MU), MA(_MA) {}
+ Policy(bool _TU, bool _TA, bool _MU, bool _MA, bool _IntrinsicWithoutMU)
+ : TU(_TU), TA(_TA), MU(_MU), MA(_MA),
-
BeMg created this revision.
Herald added subscribers: sunshaoce, VincentWu, vkmr, frasercrmck, evandro,
luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei,
PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27,
shiva0217, kito-cheng, niosHD, sabu
13 matches
Mail list logo