Skip to content

Adds a PPX to make rewrite rules more natural - #20

Merged
bmourad01 merged 7 commits into
masterfrom
rule-ppx
Jul 22, 2026
Merged

Adds a PPX to make rewrite rules more natural#20
bmourad01 merged 7 commits into
masterfrom
rule-ppx

Conversation

@bmourad01

Copy link
Copy Markdown
Owner

No description provided.

@bmourad01
bmourad01 force-pushed the rule-ppx branch 3 times, most recently from 46e6845 to 2ceb921 Compare July 22, 2026 04:53
Similarly, we raise the janestreet version to v0.17
This is a `MonadFail`-style PPX rewriter so that we can write more
declarative rewrite/transformation-style rules directly in OCaml.

Our first test case is on the x86 peephole rules.
@bmourad01
bmourad01 force-pushed the rule-ppx branch 3 times, most recently from 17b41b7 to 0dd8fbf Compare July 22, 2026 12:45
Checking `has_edge` with the representative isn't sufficient
This is the bigger change, and we've adjusted the use of the
`Context` monad such that we can avoid all of the intermediate
`Some` allocations.

Also fixes a few pre-existing miscompiles in x86 isel
This makes a big difference for `clang-format`
@bmourad01
bmourad01 merged commit d9449f0 into master Jul 22, 2026
2 checks passed
@bmourad01
bmourad01 deleted the rule-ppx branch July 22, 2026 13:39
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