This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Linalg] Handle Attribute in InitTensorOp
ClosedPublic

Authored by chelini on Jan 13 2022, 12:06 AM.

Details

Summary

In some cases, the result of an initTensorOp may have an attribute.
However, the Attribute was not passed to inferResultType, failing the
verifier. Therefore, propagate the Attribute to inferResultType.

Diff Detail

Event Timeline

chelini created this revision.Jan 13 2022, 12:06 AM
chelini requested review of this revision.Jan 13 2022, 12:06 AM

Can you add a test please?

chelini updated this revision to Diff 399626.Jan 13 2022, 3:50 AM

Add test case

Can you add a test please?

Thanks, forgot to git add it.

ftynse accepted this revision.Jan 17 2022, 1:15 AM
This revision is now accepted and ready to land.Jan 17 2022, 1:15 AM
This revision was automatically updated to reflect the committed changes.