Skip to content
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

Couple small fixes to update RISC V to current LLVM flags and enable vscale use. #6995

Merged
merged 2 commits into from
Sep 10, 2022

Conversation

zvookin
Copy link
Member

@zvookin zvookin commented Sep 5, 2022

The vector extension is no longer experimental and the logic for picking the vector size and vscale was not hooked up.

@@ -50,7 +51,7 @@ string CodeGen_RISCV::mattrs() const {
string arch_flags = "+m,+a,+f,+d,+c";

if (target.has_feature(Target::RVV)) {
arch_flags += ",+experimental-v";
arch_flags += ",+v";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be conditional on LLVM_VERSION?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting question. I'm tempted to say we don't want to support something that was experimental. Like if one is using RISC V vector, one wants to be at least this recent on LLVM. (And it will not be a build time issue.) Note it's been broken for maybe a few months so anyone actually using it was making this change by hand. Think it is a safe bet to not conditionalize.

@steven-johnson
Copy link
Contributor

LGTM

@zvookin zvookin merged commit c98f193 into main Sep 10, 2022
@zvookin zvookin deleted the riscv_vector_fixes branch September 10, 2022 16:02
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
…vscale use. (halide#6995)

Couple small fixes to update RISC V to current LLVM flags and enable
vscale use.

Co-authored-by: Steven Johnson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants