This is an archive of the discontinued LLVM Phabricator instance.

[mlir:ODS] Support using attributes in AllTypesMatch to automatically add InferTypeOpInterface
ClosedPublic

Authored by rriddle on Apr 27 2022, 5:34 PM.

Details

Summary

This allows for using attribute types in result type inference for use with
InferTypeOpInterface. This was a TODO before, but it isn't much
additional work to properly support this. After this commit,
arith::ConstantOp can now have its InferTypeOpInterface implementation automatically
generated.

Diff Detail