[PATCH] D149916: [VP][SelectionDAG][RISCV] Add get_vector_length intrinsics and generic SelectionDAG support.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 16:34:01 PDT 2023


craig.topper added inline comments.


================
Comment at: llvm/docs/LangRef.rst:18103
+
+If the count is larger than the vectorization factor, including vscale, this
+intrinsic may not return the full vectorization factor. The result will be
----------------
reames wrote:
> reword: larger than the maximum legal vectorization factor.
> 
> Also, should probably add a requirement here that zero is only returned when the requested trip count is zero.  
> 
> 
I'm not sure what you mean by "maximum legalization factor"? My statement here was intended to only refer to the vectorization factor passed in. If the vectorization factor is for a type that isn't supported legally by hardware, the intrinsic will still return a vector length that utilizes the whole type.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149916/new/

https://reviews.llvm.org/D149916



More information about the llvm-commits mailing list