-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV] Support LMUL!=1 for __attribute__((riscv_rvv_vector_bits(N)))
The first patch supported only LMUL=1 types. This patch supports LMUL!=1. LMUL is length multiplier that allows multiple vector registers to be treated as one large register or a fraction of a single vector register. Supported values for LMUL are 1/8, 1/4, 1/2, 1, 2, 4, and 8. An LMUL=2 type will be twice as large as an LMUL=1 type. An LMUL=1/2 type will be half the size as an LMUL=1 type. Type name with "m2" is LMUL=2, "m4" is LMUL=4. Type name with "mf2" is LMUL=1/2, "mf4" is LMUL=1/4. For the LMUL!=1 types the user will need to scale __riscv_v_fixed_vlen by the LMUL before passing to the attribute. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D150926
- Loading branch information
Showing
9 changed files
with
1,680 additions
and
27 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
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
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.