Skip to content

Pattern matching for indirect register addressing#87

Open
chbessonova wants to merge 1 commit intoaccess-softek:masterfrom
chbessonova:indreg
Open

Pattern matching for indirect register addressing#87
chbessonova wants to merge 1 commit intoaccess-softek:masterfrom
chbessonova:indreg

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