This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Restrict to requiring traits when using InferTensorType trait.
ClosedPublic

Authored by jpienaar on Sep 22 2021, 5:11 PM.

Details

Summary

Avoids running into segfaults accidentally.

Diff Detail

Event Timeline

jpienaar created this revision.Sep 22 2021, 5:11 PM
jpienaar requested review of this revision.Sep 22 2021, 5:11 PM
rriddle added inline comments.Sep 22 2021, 5:31 PM
mlir/include/mlir/Interfaces/InferTypeOpInterface.h
275–277

Why not use static_assert instead?

jpienaar updated this revision to Diff 375339.Sep 27 2021, 10:53 AM

Using static_assert instead.

rsuderman accepted this revision.Oct 6 2021, 10:28 AM

Obviously address the clang-tidy error.

This revision is now accepted and ready to land.Oct 6 2021, 10:28 AM
This revision was landed with ongoing or failed builds.Oct 11 2021, 2:56 PM
This revision was automatically updated to reflect the committed changes.