Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@teqdruid
Copy link
Contributor

@teqdruid teqdruid commented Jul 17, 2025

Fixes the canonicalizers for wrap operations in the ESI dialect by replacing problematic attribute-based folding with proper operation creation and improving pattern matching logic.

  • Updates WrapValidReadyOp and WrapFIFOOp fold methods to create NullSourceOp operations instead of using attributes
  • Improves the WrapFIFOOp canonicalize method with better error handling and more robust user checking
  • Delegates constant materialization to the HW dialect for better consistency

@teqdruid teqdruid requested a review from Copilot July 17, 2025 22:22
@teqdruid teqdruid added the ESI label Jul 17, 2025
Copy link

Copilot AI left a comment

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 fixes the canonicalizers for wrap operations in the ESI dialect by replacing problematic attribute-based folding with proper operation creation and improving pattern matching logic.

  • Updates WrapValidReadyOp and WrapFIFOOp fold methods to create NullSourceOp operations instead of using attributes
  • Improves the WrapFIFOOp canonicalize method with better error handling and more robust user checking
  • Delegates constant materialization to the HW dialect for better consistency

Reviewed Changes

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

File Description
test/Dialect/ESI/canonicalizers.mlir Adds test cases for dangling FIFO and ValidReady wrap operations
lib/Dialect/ESI/ESIFolds.cpp Updates fold and canonicalize methods to use proper operations and improved logic
lib/Dialect/ESI/ESIDialect.cpp Simplifies constant materialization by delegating to HW dialect
Comments suppressed due to low confidence (1)

@teqdruid teqdruid marked this pull request as ready for review July 17, 2025 22:24
@teqdruid teqdruid merged commit 3e42dbc into main Jul 17, 2025
7 checks passed
@teqdruid teqdruid deleted the teqdruid/esi-folders branch July 17, 2025 22:50
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.

1 participant