Skip to content

[mlir][Sol] Unify ABI tuple and packed encoders#126

Merged
abinavpp merged 3 commits into
mainfrom
app-event-struct-indexed
May 22, 2026
Merged

[mlir][Sol] Unify ABI tuple and packed encoders#126
abinavpp merged 3 commits into
mainfrom
app-event-struct-indexed

Conversation

@abinavpp

@abinavpp abinavpp commented May 6, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the MLIR codegen test suite to cover indexed event parameters that are struct types (both fully-static structs and structs containing dynamic members), and updates the semtest failure allowlist accordingly.

Changes:

  • Removes semanticTests/events/event_signature_in_library from test/mlirSemtestFailures.txt, indicating it is no longer expected to fail.
  • Adds a new print-init lit test validating sol.emit IR for indexed struct event arguments.
  • Adds a new EVM print-std-mlir lit test validating lowering/codegen for hashing/log topics for indexed struct event arguments.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/mlirSemtestFailures.txt Updates the semtest failure allowlist to stop treating event_signature_in_library as an expected failure.
test/lit/mlirCodegen/event_struct_indexed.sol Adds print-init coverage for sol.emit with indexed struct arguments (static + dynamic).
test/lit/mlirCodegen/EVM/event_struct_indexed.sol Adds EVM print-std-mlir coverage for indexed struct topic hashing/log emission.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@abinavpp abinavpp force-pushed the app-event-arg-types branch from 1c950ef to 0a72492 Compare May 14, 2026 20:40
@abinavpp abinavpp force-pushed the app-event-struct-indexed branch from 51e634c to 9a86bcb Compare May 14, 2026 20:40

@vladimirradosavljevic vladimirradosavljevic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add semantic tests.

@abinavpp abinavpp force-pushed the app-event-struct-indexed branch from 9a86bcb to f3c3b93 Compare May 18, 2026 22:15
@abinavpp abinavpp changed the title [mlir][Sol] Support struct types in genABIPackedEncoding [mlir][Sol] Unify ABI tuple and packed encoders May 18, 2026
@abinavpp abinavpp force-pushed the app-event-struct-indexed branch from f3c3b93 to 7117cc5 Compare May 21, 2026 11:58
@abinavpp abinavpp requested a review from Copilot May 21, 2026 12:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 19 changed files in this pull request and generated no new comments.

@vladimirradosavljevic vladimirradosavljevic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with test added for this.
Thank you and awesome work!

@abinavpp abinavpp force-pushed the app-event-arg-types branch from 0a72492 to 8674095 Compare May 22, 2026 11:08
@abinavpp abinavpp force-pushed the app-event-struct-indexed branch from 7117cc5 to 2bec6d3 Compare May 22, 2026 11:08
Base automatically changed from app-event-arg-types to main May 22, 2026 11:54
@abinavpp abinavpp merged commit 176c939 into main May 22, 2026
2 checks passed
@abinavpp abinavpp deleted the app-event-struct-indexed branch May 22, 2026 11:55
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