In files ARMLowOverheadLoops.cpp, MVETailPredication.cpp, and MVEVPTBlock.cpp we have quite a few helper functions all looking at the opcodes of MVE instructions. This moves all these utility functions to Utils/MVEOpcodes.cpp and namespace MVEOpcodes so that all these functions all clustered and we don't clutter the passes with them.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Do we need a cpp file..? Would be nice for these helpers to get inlined. Yaybe worth them living in ARMBaseInstrInfo.h as there's already a VPT opcode helper there too.
llvm/lib/Target/ARM/Utils/MVEOpcodes.cpp | ||
---|---|---|
17 | This is only really ever going to be used in one place so I'd prefer it stay there really. | |
115 | These aren't MVE instructions. |
Comment Actions
Ah yes, thanks, I forgot about ARMBaseInstrInfo, but that's definitely the place where this should live.
Comment Actions
Committed in 049f9672d8566f0d0a115f11e2a53018ea502b10
(I had a typo in the tag Diferential Revision, so this didn't get closed automatically)
This is only really ever going to be used in one place so I'd prefer it stay there really.