This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Refactor vendor op definitions
ClosedPublic

Authored by kuhar on Sep 2 2022, 8:33 PM.

Details

Summary

Use dedicated vendor op classes/categories. This is so that we can later
change the mnemonics of all vendor ops by changing the base class: SPV_VendorOp.

Issue: https://github.com/llvm/llvm-project/issues/56863

Diff Detail

Event Timeline

kuhar created this revision.Sep 2 2022, 8:33 PM
Herald added a project: Restricted Project. · View Herald Transcript
kuhar requested review of this revision.Sep 2 2022, 8:33 PM

BTW, I think that the gen_spirv_dialect.py script has gotten complicated enough that we should consider adding some units tests

antiagainst accepted this revision.Sep 6 2022, 9:03 AM

BTW, I think that the gen_spirv_dialect.py script has gotten complicated enough that we should consider adding some units tests

It's a script for making defining ops semi-automated. It's not used very frequently. I'm not sure it can bring much benefits with thorough testing.

This revision is now accepted and ready to land.Sep 6 2022, 9:03 AM