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

[Debug] Add inline scope support to HGLDD emission #6511

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

fabianschuiki
Copy link
Contributor

Emit inline levels of hierarchy in the DI, introduced by the new dbg.scope operation, as inline module definitions. This is explicitly supported in HGLDD in order to represent inlined modules in the debug info as if they were still present. Language frontends may also choose to emit additional scope ops to represent lexical scopes, call stacks, and other source language constructs in the debug info. HGLDD will accurately represent these.

Comment on lines 553 to 556
}

// Emit the module name (HGL and HDL), unless this is an inline scope.
if (!instance->module->isInline) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason this if block cannot be pulled into the last one ? Looks like same condition.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah thanks for catching this. 🙈

Emit inline levels of hierarchy in the DI, introduced by the new
`dbg.scope` operation, as inline module definitions. This is explicitly
supported in HGLDD in order to represent inlined modules in the debug
info as if they were still present. Language frontends may also choose
to emit additional scope ops to represent lexical scopes, call stacks,
and other source language constructs in the debug info. HGLDD will
accurately represent these.
@fabianschuiki fabianschuiki merged commit 4c5d57b into main Dec 13, 2023
4 checks passed
@fabianschuiki fabianschuiki deleted the fschuiki/hgldd-inline-scopes branch December 13, 2023 18:13
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