Skip to content

[VectorDistribute] Implement layout analysis for transfer_gather - #21164

Merged
Groverkss merged 2 commits into
iree-org:mainfrom
Groverkss:vector_layout_analysis_transfer_gather
Jun 23, 2025
Merged

Groverkss merged 2 commits into
iree-org:mainfrom
Groverkss:vector_layout_analysis_transfer_gather

Conversation

@Groverkss

Copy link
Copy Markdown
Contributor

Also improves the implementation of mask layout inference for transfer_gather operations.

@Groverkss
Groverkss enabled auto-merge (squash) June 23, 2025 16:14
static void enforceLayoutToTransferGatherOp(
TransferGatherOp gather, ArrayRef<DistributionLayout *> operandLattices,
ArrayRef<const DistributionLayout *> resultLattices,
std::function<void(DistributionLayout *, ChangeResult)> update) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: pass this as llvm::function_ref if you don't store the callback anywhere. The main difference is that std::function may dynamically allocate memory

@Groverkss
Groverkss merged commit 1110ac1 into iree-org:main Jun 23, 2025
lialan added a commit that referenced this pull request Jun 25, 2025
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
)

Also improves the implementation of mask layout inference for
transfer_gather operations.

---------

Co-authored-by: Quinn Dawkins <[email protected]>
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