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

[Handshake] Add control operand to handshake.instance operation #2055

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

mortbopet
Copy link
Contributor

When lowering a handshake.instance operation, we need to be able to decide when the instance is activated; or in other words, when the input control signal is asserted. Lowering from a CDFG to handshake, this will be whenever control flow arrived to the basic block of the source builtin.call operation, which the handshake.instance op originated from. With this new operand, we are able to be explicit about the activation of the handshake.instance op, and be able to implement lowering of the operation to FIRRTL.

When lowering a `handshake.instance` operation, we need to be able to decide when the instance is activated; or in other words, when the input control signal is asserted. Lowering from a CDFG to handshake, this will be whenever control flow arrived to the basic block of the source `builtin.call` operation, which the `handshake.instance` op originated from. With this new operand, we are able to be explicit about the activation of the `handshake.instance` op, and be able to implement lowering of the operation to FIRRTL.
Copy link
Contributor

@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

I think this makes sense, thanks for pushing on the std.call use case!

@mortbopet mortbopet merged commit 10b2bd4 into llvm:main Nov 1, 2021
@mortbopet mortbopet deleted the handshake/lower_instance branch November 1, 2021 13:48
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.

2 participants