Skip to content

[SV] Add InnerRefUserOpInterface to sv.verbatim#9492

Merged
uenoku merged 3 commits intollvm:mainfrom
uenoku:dev/hidetou/sv-verbatim-inner
Jan 22, 2026
Merged

[SV] Add InnerRefUserOpInterface to sv.verbatim#9492
uenoku merged 3 commits intollvm:mainfrom
uenoku:dev/hidetou/sv-verbatim-inner

Conversation

@uenoku
Copy link
Member

@uenoku uenoku commented Jan 22, 2026

This allows sv.verbatim to properly verify inner symbol references used in its symbols attribute. The implementation checks that all InnerRefAttr entries in the symbols array can be resolved in the inner reference namespace, ensuring the verbatim operation references valid inner symbols.

Ref: #9491

This allows sv.verbatim to properly verify inner symbol references used in its symbols attribute. The implementation checks that all InnerRefAttr entries in the symbols array can be resolved in the inner reference namespace, ensuring the verbatim operation references valid inner symbols.
@uenoku uenoku requested a review from darthscsi as a code owner January 22, 2026 07:09
@uenoku uenoku requested a review from dtzSiFive January 22, 2026 07:09
Copy link
Contributor

@dtzSiFive dtzSiFive left a comment

Choose a reason for hiding this comment

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

LGTM!

I think the other verbatim operations would benefit from this as well.

Do you mind having those implement the interface as well (sv.verbatim.expr, sv.verbatim.expr.se)?
I believe they can share the verification logic.

Can tackle in a follow-up to, this is good as-is.

Thanks!

Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

LGTM

@uenoku uenoku merged commit 754e44d into llvm:main Jan 22, 2026
7 checks passed
@dtzSiFive
Copy link
Contributor

Thanks, @uenoku !

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.

3 participants