-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[RISCV] correct the default VLEN to 128 #17853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- From the RISCV ISA spec > The V vector extension depends upon the Zvl128b and Zve64d extensions. Reference: https://github.com/riscv/riscv-isa-manual/blob/e5078e55ea977ef197066dcd3f7c8e09032cb348/src/v-st-ext.adoc?plain=1#L5094
Hi @jerryzj ! LLVM side (implicitly TVM) is aware of this already:
Notice the presence of BUT, please note that in the case of no I am just working right now on refactoring RISCV target to also enable the SVE predication, will reference this PR. |
Please refer to the ISA spec, the minimum vector length can be set via zvl<?>b |
Your code here touch the case for NO "v" extension presence, where TVM still needs a hint, but lets settle even this to 128. |
If there is no |
Currently TVM is relaying on LLVM (well maintained) as root of trust , it extract "arch knowledge" from, not vice-versa: Few outcomes for
TVM only extracts One can use the sample code (posted here on top) to check what kind of features for various targets are yielded. |
To further clarify where this
Up to this point we can say Now, in the context of SVE (WiP) it will be really picked up and used to construct a list of In last instance if someone really want to enforce other initial hint value, (assuming really knowing what is doing) can override even this initial hint using In the future, I would completely remove this confusing Let's set it to 128 as you proposed as a initial hint value, but this PR here failed to pass testcases otherwise it LGTM. |
Reference: https://github.com/riscv/riscv-isa-manual/blob/e5078e55ea977ef197066dcd3f7c8e09032cb348/src/v-st-ext.adoc?plain=1#L5094