[PATCH] D98388: [RISCV][Clang] Add RVV vle/vse intrinsic functions.
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 17 12:18:31 PDT 2021
craig.topper added inline comments.
================
Comment at: clang/utils/TableGen/RISCVVEmitter.cpp:700
+ for (auto Idx : CTypeOrder) {
+ if (Seen.count(Idx))
+ PrintFatalError(
----------------
You can use
```
if (!Seen.insert(Idx).second)
PrintFatalError
```
This avoids walking the set twice.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98388/new/
https://reviews.llvm.org/D98388
More information about the cfe-commits
mailing list