Skip to content

[mlir] Add lit test for data-in-code globals#138

Merged
abinavpp merged 1 commit into
mainfrom
app-clone-data-in-code-globals
Jun 2, 2026
Merged

[mlir] Add lit test for data-in-code globals#138
abinavpp merged 1 commit into
mainfrom
app-clone-data-in-code-globals

Conversation

@abinavpp

@abinavpp abinavpp commented Jun 1, 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

Adds a new literals-2 MLIR codegen lit test case to validate handling of long concatenated string/bytes literals in an internal library function used by a contract constructor (covering the __data_in_code__* path across object boundaries), and updates the semantic test failure allowlist to reflect recently-fixed deployed-code-exclusion cases.

Changes:

  • Remove several semanticTests/deployedCodeExclusion/* entries from the known-failures list.
  • Add test/lit/mlirCodegen/literals-2.sol to check print-init MLIR for the new literal scenario.
  • Add test/lit/mlirCodegen/EVM/literals-2.sol to check EVM-target print-std-mlir output for the same scenario.

Reviewed changes

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

File Description
test/mlirSemtestFailures.txt Drops no-longer-failing deployedCodeExclusion semantic tests from the failure list.
test/lit/mlirCodegen/literals-2.sol New print-init lit test covering long literal returned from internal library function and copied into contract storage in ctor.
test/lit/mlirCodegen/EVM/literals-2.sol New EVM print-std-mlir lit test asserting __data_in_code__* emission for the same scenario across object modules.

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

@abinavpp abinavpp marked this pull request as ready for review June 1, 2026 11:47
@abinavpp abinavpp force-pushed the app-clone-data-in-code-globals branch from fd4d326 to 6273bdd Compare June 1, 2026 11:48
@abinavpp abinavpp changed the title [mlir] Add literals-2 lit test for __data_in_code_* shared across ObjectOps [mlir] Add lit test Jun 1, 2026
@abinavpp abinavpp marked this pull request as draft June 1, 2026 11:48
@abinavpp abinavpp marked this pull request as ready for review June 1, 2026 11:49
@abinavpp abinavpp force-pushed the app-clone-data-in-code-globals branch from 6273bdd to c915dc1 Compare June 1, 2026 11:49
@abinavpp abinavpp changed the title [mlir] Add lit test [mlir] Add lit test for data-in-code globals Jun 1, 2026
@abinavpp abinavpp force-pushed the app-trycatch-fallback-clause branch 2 times, most recently from b1485ab to cbccdc7 Compare June 1, 2026 15:49
@abinavpp abinavpp force-pushed the app-clone-data-in-code-globals branch from c915dc1 to 2d90e8f Compare June 1, 2026 15:49

@PavelKopyl PavelKopyl 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.

Base automatically changed from app-trycatch-fallback-clause to main June 2, 2026 07:05
@abinavpp abinavpp force-pushed the app-clone-data-in-code-globals branch from 2d90e8f to 0462935 Compare June 2, 2026 07:17
@abinavpp abinavpp merged commit 29918fe into main Jun 2, 2026
2 checks passed
@abinavpp abinavpp deleted the app-clone-data-in-code-globals branch June 2, 2026 07:18
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