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

Pattern matching for indirect register addressing #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chbessonova
Copy link
Contributor

@chbessonova chbessonova commented Jan 26, 2019

This is another implementation for emitting instructions in indirect register addressing mode (just note that indirect register addressing has 2 bytes less encoding than indexed one).
First one was in #66. It provides an MI-level pass which rewrites mm|mr instructions where displacement == 0 to their nm|nr counterpart.
This one is more straightforward. It allows matching correct instruction form on ISel phase. The only drawback it has is that it doesn't work with SP base register.

Will appreciate any feedback for this or/and #66 implementation.

@chbessonova chbessonova changed the title [WIP] Add pattern matching for indirect register addressing [Pattern matching for indirect register addressing Feb 5, 2019
@chbessonova chbessonova changed the title [Pattern matching for indirect register addressing Pattern matching for indirect register addressing Feb 5, 2019
@chbessonova chbessonova requested a review from asl February 5, 2019 15:52
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.

1 participant