Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV] Lower experimental_get_vector_length intrinsic to vsetvli for…
… some cases. This patch lowers to vsetvli when the AVL is i32 or XLenVT and the VF is a power of 2 in the range [1, 64]. VLEN=32 is not supported as we don't have a valid type mapping for that. VF=1 is not supported with Zve32* only. The element width is used to set the SEW for the vsetvli if possible. Otherwise we use SEW=8. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D150824
- Loading branch information
Showing
3 changed files
with
323 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.