Skip to content

feat: Verify sym_name attribute on func.func and llvm.func#1079

Open
naveen-seth wants to merge 2 commits into
opencompl:mainfrom
naveen-seth:enforce-symname
Open

feat: Verify sym_name attribute on func.func and llvm.func#1079
naveen-seth wants to merge 2 commits into
opencompl:mainfrom
naveen-seth:enforce-symname

Conversation

@naveen-seth

@naveen-seth naveen-seth commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

func.func and llvm.func require the sym_name attribute, but this is not currently enforced and many tests do not declare it.
This is now enforced by the verifier.

This PR is split into two commits to make review easier:
The first adds the check itself and tests for the expected error message.

The second updates existing tests that were missing sym_name.
This was automated with a script: functions are now named foo, bar, baz, or f0, f1, ... when there are more than three.

func.func and llvm.func require the sym_name attribute, but this is not
currently enforced and many tests do not declare it.
This is now enforced by the verifier.

This PR is split into two commits to make review easier:
The first adds the check itself and tests the expected error message.

The second updates existing tests that were missing sym_name.
This was automated with a script: functions are now named foo, bar, baz,
or f0, f1, ... when there are more than three.
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.

1 participant