[PATCH] D69891: [VP,Integer,#1] Vector-predicated integer intrinsics
Sjoerd Meijer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 00:56:05 PST 2020
SjoerdMeijer added a comment.
> I'm not entirely clear where this value comes from, but it seems like whatever generated it must know that we're generating SVE code, right?
This is not architecture specific, and thus this is not assuming SVE. In the case of SVE, the vector length is unknown at compile time (it is a multiple of something), and constant at run-time. In the RISC-V vector extension, I believe it can be changed at any point. Thus, the way to obtain this value is by reading/writing a status register, or something similar, but relying on querying the architecture features. And whether it is constant at runtime, or can be changed at any point, this API seems to cover the different cases.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69891/new/
https://reviews.llvm.org/D69891
More information about the llvm-commits
mailing list