This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add getSizeInBits() for tensor of complex
ClosedPublic

Authored by timshen on Aug 5 2020, 5:28 PM.

Diff Detail

Event Timeline

timshen created this revision.Aug 5 2020, 5:28 PM
Herald added a project: Restricted Project. · View Herald Transcript
timshen requested review of this revision.Aug 5 2020, 5:28 PM
rriddle accepted this revision.Aug 6 2020, 1:43 PM
rriddle added inline comments.
mlir/lib/IR/StandardTypes.cpp
235

nit: Add a short message here.

This revision is now accepted and ready to land.Aug 6 2020, 1:43 PM
jurahul added inline comments.Aug 6 2020, 2:27 PM
mlir/lib/IR/StandardTypes.cpp
235

Do Types get verification similar to Ops? Wondering if the assert belong in ComplexType verification if it exists.

rriddle added inline comments.Aug 6 2020, 2:32 PM
mlir/lib/IR/StandardTypes.cpp
235

Yes, types are verified on construction, so this assert could be removed. For some reason I was thinking that complex was relaxed recently to allow non int/float. That must have been just a request.

timshen updated this revision to Diff 283990.Aug 7 2020, 12:28 PM
timshen marked 3 inline comments as done.

Remove the assert.

This revision was landed with ongoing or failed builds.Aug 7 2020, 12:39 PM
This revision was automatically updated to reflect the committed changes.