This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Fix script for availability autogen and refresh ops
ClosedPublic

Authored by antiagainst on Jan 22 2021, 7:17 AM.

Details

Summary

Previously we only autogen the availability for ops that are
direct instantiating SPV_Op and expected other subclasses of
SPV_Op to define aggregated availability for all ops. This is
quite error prone and we can miss capabilities for certain ops.
Also it's arguable to have multiple levels of subclasses and try
to deduplicate too much: having the availability directly in the
op can be quite explicit and clear. A few extra lines of
declarative code is fine.

Diff Detail