Skip to content

[mlir][ArmSME] Add mask operand to store_tile_slice #70838

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

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

c-rhodes
Copy link
Collaborator

No description provided.

@c-rhodes c-rhodes force-pushed the mlir-arm-sme-store-tile-slice-mask branch from 240c712 to 26bb905 Compare November 1, 2023 09:47
$tile `,` $tile_slice_index `,` $base `[` $indices `]` (`layout` `` $layout^)?
attr-dict `:` type($base) `,` type($tile)
$tile `,` $tile_slice_index `,` $mask `,` $base `[` $indices `]` (`layout` `` $layout^)?
attr-dict `:` type($base) `,` type($mask) `,` type($tile)
Copy link
Member

Choose a reason for hiding this comment

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

Is this type($mask) needed? It should be inferred from your TileSliceMaskConstraint

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No it can be inferred as you say, but I decided to add the type anyway since this maps 1-1 with intrinsic. tile_load/tile_store are aligned with Vector transfer read/write so I didn't add mask type to asm for those.

The type is also present in load_tile_slice, we could remove in a follow-up if desired? I've don't mind either way.

Copy link
Member

Choose a reason for hiding this comment

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

I prefer omitting the types that are very clear from context (i.e. the mask size must match the slice), but this is fine for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok cool cheers, I'll post a follow-up :)

@c-rhodes c-rhodes merged commit 8f564e0 into llvm:main Nov 2, 2023
@c-rhodes c-rhodes deleted the mlir-arm-sme-store-tile-slice-mask branch November 2, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants