Skip to content
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

[LLVMGPU] Cleanup VirtualMMA functions to match refactoring on base MMAAttr #19144

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

raikonenfnu
Copy link
Collaborator

@raikonenfnu raikonenfnu commented Nov 14, 2024

Apply similar cleanups to what is done in #19098. For most part we do:

  1. Templateize getVectorType and getOpaqueMmaLayout to work on any intrinsic
  2. Use common getOpaqueMmaLayout for VirtualMMA
  3. Update getABCElementTypes to be similar to MMAAttr
  4. Rename get.*MFMA fn to get.*MMA since MFMA is CDNA specific but in
    reality it does not have to be MFMA instructions

@raikonenfnu raikonenfnu changed the title [LLVMGPU] Cleanup VirtualMMA functions to match base MMAAttr [LLVMGPU] Cleanup VirtualMMA functions to match refactoring on base MMAAttr Nov 14, 2024
Apply similar cleanups to what is done in iree-org#19098.
For most part we do:
1. Templateize getVectorType and getOpaqueMmaLayout to work on any
   intrinsic
2. Use common getOpaqueMmaLayout for VirtualMMA
3. Update getABCElementTypes to be similar to MMAAttr
4. Rename get*MFMA fn to get*MMA since MFMA is CDNA specific but in
   reality it does not have to be MFMA instructions
Signed-off-by: Stanley Winata <[email protected]>

Signed-off-by: Stanley Winata <[email protected]>
Copy link
Contributor

@bjacob bjacob left a comment

Choose a reason for hiding this comment

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

Nice cleanup!

@bjacob
Copy link
Contributor

bjacob commented Nov 14, 2024

I'm going to hit merge for you because @Groverkss said he'd make changes to this file tomorrow, which would conflict.

@bjacob bjacob merged commit ef241f9 into iree-org:main Nov 14, 2024
36 checks passed
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.

2 participants