[PATCH] D108694: [RISCV] Add the zvl extension according to the v1.0-rc1 spec
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 26 01:08:55 PDT 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVSubtarget.cpp:134
"maximum!");
+ assert(RVVVectorBitsMin >= ZvlLen &&
+ "Minimum V extension vector length should be at least the length "
----------------
HsiangKai wrote:
> Should it be `RVVVectorBitsMin < ZvlLen`?
>
> I suggest to return 0 and print a warning message for users.
This isn't a good place to print warnings. It would just be a random message printed to stderr without going through any of clang's diagnostic infrastructure.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108694/new/
https://reviews.llvm.org/D108694
More information about the llvm-commits
mailing list