This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Split op implementation file into subfiles. NFC.
ClosedPublic

Authored by kuhar on Jul 19 2023, 1:36 PM.

Details

Summary

The main op implementation file for SPIR-V grew past 5k LOC. This makes it
take a long time to compile and index with LSPs like clangd.

Pull out the first few SPIR-V extension ops into their own .cpp files,
just like we do with .td op definitions. This includes the
KHR/NV/Intel coop matrix and the integer dot prod extensions.

I plan to further split this in future revisions.

Diff Detail

Event Timeline

kuhar created this revision.Jul 19 2023, 1:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2023, 1:36 PM
kuhar requested review of this revision.Jul 19 2023, 1:36 PM
antiagainst accepted this revision.Jul 19 2023, 1:42 PM

Thanks for splitting this up! I don't check carefully given that I assume this is NFC. (It would be good to mention it in the commit message.) Also it would be nice to let git blame ignore this file once we have a SHA for it.

This revision is now accepted and ready to land.Jul 19 2023, 1:42 PM
kuhar added a comment.Jul 19 2023, 1:47 PM

Thanks for splitting this up! I don't check carefully given that I assume this is NFC. (It would be good to mention it in the commit message.) Also it would be nice to let git blame ignore this file once we have a SHA for it.

It is in the commit title (at the end). Sure, I'll add this commit to that file.

This revision was landed with ongoing or failed builds.Jul 19 2023, 1:51 PM
This revision was automatically updated to reflect the committed changes.