This is an archive of the discontinued LLVM Phabricator instance.

[mlir][nfc] Clean-up usage of kDynamicSize.
ClosedPublic

Authored by khasanovaa on Oct 20 2022, 2:54 AM.

Diff Detail

Event Timeline

khasanovaa created this revision.Oct 20 2022, 2:54 AM
Herald added a reviewer: aartbik. · View Herald Transcript
Herald added a reviewer: ftynse. · View Herald Transcript
Herald added a reviewer: aartbik. · View Herald Transcript
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
khasanovaa requested review of this revision.Oct 20 2022, 2:54 AM

Thanks for doing this. The patch looks correct to me.

The code uses x == ShapedType::kDynamicSize and ShapedType::isDynamic(x). Is there a guidance which to use when? Otherwise, I'd prefer the latter form.

mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
217

Nit: Left-over debugging.

mlir/python/mlir/dialects/_tensor_ops_ext.py
7

Is this needed?

Addressed the comments.

khasanovaa marked an inline comment as done.Oct 20 2022, 4:54 AM
pifon2a accepted this revision.Oct 20 2022, 5:27 AM
This revision is now accepted and ready to land.Oct 20 2022, 5:27 AM
herhut accepted this revision.Oct 20 2022, 5:33 AM

Thanks!

Update format.

This revision was automatically updated to reflect the committed changes.