-
Notifications
You must be signed in to change notification settings - Fork 4
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
Handle control flow on dot graphs. - Phi Nodes #127
Comments
From Dr. Olschanowsky on Slack:
|
We have N constraints. |
Example: |
Definitions:
Locate phi node:
If there is no guaranteed write or the guaranteed write is also the first write, no phi node is needed. Add phi node:
Generate a phi statement of the form Other Notes:
|
Still a few fixes needed which will go in the github issue #127 Fixed bug with Computation::printInfo() where reads were generated twice and writes not at all
Phi nodes implemented!!!!!!!!!!! |
Issues remaining:
|
Changes some function scopes - made private or static
See #154 for fixing execution schedules |
Some functions have multiple possible returns. Currently we use the same return data space for each return which creates multiple writes with no read in between.
Example:
Eval_Spline_F()
either returns0.0
or - if an if statement is triggered - an expression. The return variable is first assigned 0 and then assigned the expression with the if conditions placed in it's iteration space. The 0 assignment then has no reads and exists separate from the graph.The text was updated successfully, but these errors were encountered: