Skip to content

[LinalgExt] Extend arg_compare tiling interface for explicit-index mode - #23193

Merged
bangtianliu merged 1 commit into
iree-org:mainfrom
bangtianliu:arg_compare_tiling_fix
Jan 19, 2026
Merged

bangtianliu merged 1 commit into
iree-org:mainfrom
bangtianliu:arg_compare_tiling_fix

Conversation

@bangtianliu

@bangtianliu bangtianliu commented Jan 19, 2026 •

Copy link
Copy Markdown
Contributor

This PR extends the tiling interface implementation for ArgCompareOp to support explicit-index mode (2 inputs: value + pre-computed indices), which was introduced in PR #23153.

Key changes:

@bangtianliu
bangtianliu marked this pull request as draft January 19, 2026 18:09
@bangtianliu
bangtianliu force-pushed the arg_compare_tiling_fix branch 2 times, most recently from 1d9f5a7 to ab4f946 Compare January 19, 2026 18:37
@bangtianliu
bangtianliu marked this pull request as ready for review January 19, 2026 18:47
@bangtianliu
bangtianliu requested a review from kuhar January 19, 2026 18:47
@bangtianliu
bangtianliu force-pushed the arg_compare_tiling_fix branch from ab4f946 to abccc4f Compare January 19, 2026 19:09

@IanWood1 IanWood1 left a comment

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.

Looks good, but maybe we want to disallow index_base when in explicit index mode?

castedIndex);

Value candidateIndex;
if (hasExplicitIndexInput()) {

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.

If we don't use index base when in explicit index mode, should we make it illegal in the verifier?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Absolutely, that is what I plan to do in the next PR.

@bangtianliu
bangtianliu requested a review from kuhar January 19, 2026 19:36
@bangtianliu
bangtianliu merged commit 970ff32 into iree-org:main Jan 19, 2026
keshavvinayak01 pushed a commit that referenced this pull request Jan 27, 2026
…de (#23193)

This PR extends the tiling interface implementation for `ArgCompareOp`
to support explicit-index mode (2 inputs: value + pre-computed indices),
which was introduced in PR #23153.

 **Key changes:**
- Extended `getTiledImplementation` (introduced in PR #21077) to slice
both value and index inputs in explicit-index mode
- Extended `generateScalarImplementation` (convert_to_loops) (introduced
in PR #21138) to load indices from input instead of computing from
iteration variables in explicit-index mode

Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Keshav Vinayak Jha <[email protected]>
MaheshRavishankar pushed a commit to MaheshRavishankar/iree that referenced this pull request Feb 24, 2026
…de (iree-org#23193)

This PR extends the tiling interface implementation for `ArgCompareOp`
to support explicit-index mode (2 inputs: value + pre-computed indices),
which was introduced in PR iree-org#23153.

 **Key changes:**
- Extended `getTiledImplementation` (introduced in PR iree-org#21077) to slice
both value and index inputs in explicit-index mode
- Extended `generateScalarImplementation` (convert_to_loops) (introduced
in PR iree-org#21138) to load indices from input instead of computing from
iteration variables in explicit-index mode

Signed-off-by: Bangtian Liu <[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