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] Make process lowering best-effort and allow constants from outside the region #7617

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

maerhart
Copy link
Member

No description provided.

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 😎

Comment on lines 44 to 50
if (!isa<llhd::HaltOp>(op.getBody().back().getTerminator())) {
LLVM_DEBUG({
llvm::dbgs()
<< "entry block is required to be terminated by llhd.halt\n";
});
return failure();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it legal to inline a process with a halt terminator into the parent module? Wouldn't the process only execute once, but the inlined version would be continuously executed?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's right, let me remove this case. Not sure why it was there to begin with.

@maerhart maerhart merged commit 952f542 into main Sep 24, 2024
4 checks passed
@maerhart maerhart deleted the maerhart-llhd-process-lowering branch September 24, 2024 12:26
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