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

[LLHD] Add TemporalCodeMotionPass #7381

Merged
merged 2 commits into from
Jul 26, 2024
Merged

Conversation

maerhart
Copy link
Member

This pass can be run after early code motion and brings the IR in an easier from for desequentialization. Canonicalization should be run directly afterwards to significantly simplify the control flow. Once we also have the desequentialization pass some mem2reg pass for inout values, we should be able to transform most of the LLHD processes produced by the MooreToCore pass to pure HW/Comb/Seq IR suitable for simulation using Arcilator.

This pass can be run after early code motion and brings the IR in an easier from for desequentialization. Canonicalization should be run directly afterwards to significantly simplify the control flow. Once we also have the desequentialization pass some mem2reg pass for inout values, we should be able to transform most of the LLHD processes produced by the MooreToCore pass to pure HW/Comb/Seq IR suitable for simulation using Arcilator.
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really cool! 🥳

I'm wondering if instead of erroring out if the pass sees an input that has more than 2 TRs, the pass could just not perform the transformation and leave the process unmodified (or in a valid state). Simulations for example would still be able to run even if TCM did not run through, so it might be worthwhile not erroring out?

include/circt/Dialect/LLHD/Transforms/Passes.td Outdated Show resolved Hide resolved
@maerhart maerhart merged commit 6410a54 into main Jul 26, 2024
4 checks passed
@maerhart maerhart deleted the maerhart-llhd-temporal-code-motion branch July 26, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants