This is an archive of the discontinued LLVM Phabricator instance.

[mlir][NFC] Add static ShapedType::isDynamicShape utility
ClosedPublic

Authored by dcaballe on Nov 17 2022, 11:57 PM.

Details

Summary

This utility is useful when we need to know if shape is dynamic and
we don't have a Type itself. I found myself implementing this multiple
times using ShapedType::isDynamic. Not sure if there is something
similar somewhere else.

Diff Detail

Event Timeline

dcaballe created this revision.Nov 17 2022, 11:57 PM
dcaballe requested review of this revision.Nov 17 2022, 11:57 PM
ftynse accepted this revision.Nov 18 2022, 3:47 AM
This revision is now accepted and ready to land.Nov 18 2022, 3:47 AM
This revision was landed with ongoing or failed builds.Nov 18 2022, 10:23 AM
This revision was automatically updated to reflect the committed changes.