This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] NFC: Remove template functions for getting op's opcode
ClosedPublic

Authored by antiagainst on May 5 2020, 1:42 PM.

Details

Summary

These template functions are used in the serializer, where we can
actually directly query the opcode from the op's definition and
use that in the auto-generated serialization logic.

This removes a set of templates accounting for 319 lines from
the auto-generated inc file.

Diff Detail

Event Timeline

antiagainst created this revision.May 5 2020, 1:42 PM
antiagainst retitled this revision from [mlir][spirv] Remove template functions for getting op's opcode to [mlir][spirv] NFC: Remove template functions for getting op's opcode.May 5 2020, 1:46 PM
This revision is now accepted and ready to land.May 5 2020, 4:34 PM
This revision was automatically updated to reflect the committed changes.