-
Notifications
You must be signed in to change notification settings - Fork 317
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
[MooreToCore] Crash when getting values to observe #8176
Comments
As far as I analyzed preliminarily,
Do we need to add a check for this 🤔 ? Normally, we can get the correct Owner or DefiningOp when translating verilog into Moore IR, right? |
I'm not really sure if it's enough to just check if the region is attached. Can we be sure that if the region is detached the value is defined outside the process or not necessarily? We may have to analyze and cache the list of values to observe at every If we can't get things working reliably inside a pattern we might have to move the procedure lowering outside the dialect conversion (lowering the procedure boundaries before the dialect conversion). |
Like this 🤔 ?
The above case can work. Let me think of other long-tail cases. We can ensure that if any of the variables have DefiningOp, |
I'm curious why |
Oh! Hey, @maerhart! I think I found the answer. |
Ah yes, that's a great observation! I think that's the right fix for this issue. Can you open a PR for that? |
The following crashes due to an unattached region when calling
getValuesToObserve
.The text was updated successfully, but these errors were encountered: