Skip to content

[DRAFT] Refactor the 2D block load lowering. #4615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chengjunlu
Copy link
Contributor

@chengjunlu chengjunlu commented Jul 4, 2025

Changes:

  1. Move the 2D block IO lowering code to LoadOpToBlockIOConversion pattern.
  2. Refactor the 2D block IO lowering for regular pointer.

@chengjunlu chengjunlu force-pushed the chengjun/refactor_block_io_load branch from 5ac88f5 to 719c526 Compare July 9, 2025 03:31
@chengjunlu
Copy link
Contributor Author

Need wait the reland of the block store code in PR#4646

@chengjunlu chengjunlu force-pushed the chengjun/refactor_block_io_load branch from 719c526 to d725f19 Compare July 9, 2025 03:36
@@ -1565,9 +1798,15 @@ struct LoadOpToBlockIOConversion
LogicalResult
matchAndRewrite(triton::LoadOp op, OpAdaptor adaptor,
ConversionPatternRewriter &rewriter) const final {
if (!isLoadCandidate(op))
ModuleOp mod = op->getParentOfType<ModuleOp>();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use the common utils.

@chengjunlu chengjunlu marked this pull request as draft July 9, 2025 07:29
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