[PATCH] D155414: [Clang][RISCV] Guard RVV intrinsics types that is not available when ELEN < 64
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 17 13:40:45 PDT 2023
craig.topper added inline comments.
================
Comment at: clang/lib/Sema/SemaChecking.cpp:5336
+ // least zve64x
+ if ((Ty->isRVVType(/* Bitwidth */ 64, /* IsFloat */ false) &&
+ !TI.hasFeature("zve64x")) ||
----------------
Can we do
```
if ((Ty->isRVVType(/* Bitwidth */ 64, /* IsFloat */ false) ||
Ty->isRVVType(/* ElementCount */ 1)) &&
!TI.hasFeature("zve64x"))
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155414/new/
https://reviews.llvm.org/D155414
More information about the cfe-commits
mailing list