Skip to content

Conversation

@whitneywhtsang
Copy link
Contributor

@whitneywhtsang whitneywhtsang commented Jul 10, 2025

This PR improves the rewriteTensorPointerStore:

  • enhanced support for 2D block store operations with proper size constraints
  • removed redundant early failure condition
  • refactored variable names and reorganizes code structure for better readability

@whitneywhtsang whitneywhtsang requested a review from Copilot July 10, 2025 00:53
@whitneywhtsang whitneywhtsang self-assigned this Jul 10, 2025
Copy link
Contributor

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 improves the rewriteTensorPointerStore function in the LoadStoreOpToLLVM conversion by removing a restrictive early check and refactoring the code for better clarity and maintainability. The changes enhance support for 2D block store operations with proper size constraints.

  • Removes early failure condition that only allowed DPAS layout encoding
  • Adds proper validation for 2D block store constraints (8 rows max, 64 bytes per row max)
  • Refactors variable names and reorganizes code structure for better readability

Reviewed Changes

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

File Description
LoadStoreOpToLLVM.cpp Removes DPAS-only restriction, adds 2D block store constraints, and refactors variable naming
blockptr_store.mlir Updates test expectations to match the reordered variable declarations

@whitneywhtsang whitneywhtsang force-pushed the whitneywhtsang/store.0 branch from 6cba681 to 848cdaa Compare July 10, 2025 00:58
Signed-off-by: Whitney Tsang <[email protected]>
@whitneywhtsang whitneywhtsang merged commit 0169c00 into main Jul 10, 2025
15 checks passed
@whitneywhtsang whitneywhtsang deleted the whitneywhtsang/store.0 branch July 10, 2025 17:33
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.

4 participants