-
Notifications
You must be signed in to change notification settings - Fork 313
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
[Calyx] Lower SCF parallel op to Calyx #7830
Conversation
rewriter.setInsertionPointToEnd(calyxParOp.getBodyBlock()); | ||
auto seqOp = rewriter.create<calyx::SeqOp>(parOp.getLoc()); | ||
rewriter.setInsertionPointToEnd(seqOp.getBodyBlock()); | ||
res = scheduleBasicBlock(rewriter, path, seqOp.getBodyBlock(), |
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.
Don't you need to check this upon each iteration instead of overwriting it?
9058f94
to
641d8ef
Compare
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.
Nice! A few smaller comments.
thanks @cgyurgyik ! just fixed again based on your new review |
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.
LGTM! Thanks for your patience, feel free to merge when CI passes.
This patch lowers
scf::parallel
to Calyx, assuming that all induction variables can be statically derived and thatscf::reduce
does not have operands.