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
Improve Chapel LLVM support #9567
Conversation
TODOs: - need to be able to build without Region Vectorizer - performance testing - need to generate reductions in a way RV can understand
@ysahil97 - this works for me like this (starting from the instructions above to build Chapel with LLVM master, and starting from this branch for Chapel): in s.chpl (this is just your affine_initialization.chpl example): config const n = 10;
proc test(){
var A:[1..n] real;
for i in 1..n{
A(i) = i;
}
}
test();
Polly outputs:
|
Thanks @mppf for this. |
Sure, and that seems to give line numbers for me. But it doesn't say what function was called etc. |
I tried it with
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool. Looks good.
Fix reversed sense of vectorize enable flag (#9577) [merged to fix breakage in master, asking @mppf to do a post-commit review] In #9567 , explicit vectorization metadata was enabled when not using the Region Vectorizer, causing messages about failed vectorization to print out. This causes some tests to fail. This happened because the metadata was enabled when not using the RV, and disabled when using the RV. I believe it was meant to be the other way around.
Add missing then to update-llvm.sh Updates a script that can be used manually during LLVM development. PR #9567 added a conditional but forgot to add the `then` required by bash. Trivial and not reviewed.
Update Chapel to work with master LLVM and improve script for working with LLVM master
For example, here is the way to use update-llvm.sh to checkout master version of llvm/clang/...:
Reviewed by @dmk42 - thanks!