-
Notifications
You must be signed in to change notification settings - Fork 141
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
x86 variant for output of assign homes #152
Comments
Currently, x86_Int doesn't restrict arguments. e.g. Figure 2.5 (Python version) allows both arguments of a movq to be memory references. I assumed this was intentional - but maybe it wasn't? |
The restriction is not expressed in the grammar. (That kind of restriction is difficult to express in a grammar.) |
I should add, those restrictions are difficult to express without significantly increasing the size of the grammar. |
That makes sense. I think it is not bad as it is, this is just a nuance that I need to explain in class better. An alternative might be a grammar x86_Int* that just has a footnote saying there are no argument restrictions. |
We currently use x86_Var as the output of assign homes, which is a bit confusing because assign homes removes the variables. We need a variant of x86_Int that relaxes the argument restrictions.
The text was updated successfully, but these errors were encountered: