This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Use getDenseElementBitwidth instead of Type::getElementTypeBitWidth.
ClosedPublic

Authored by rriddle on Jan 9 2020, 1:11 PM.

Details

Summary

Some data values have a different storage width than the corresponding MLIR type, e.g. bfloat is currently stored as a double.

Diff Detail

Event Timeline

rriddle created this revision.Jan 9 2020, 1:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 9 2020, 1:11 PM

Unit tests: pass. 61657 tests passed, 0 failed and 778 were skipped.

clang-tidy: fail. Please fix clang-tidy findings.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

rriddle added a reviewer: nicolasvasilache.
nicolasvasilache accepted this revision.Jan 9 2020, 2:36 PM
This revision is now accepted and ready to land.Jan 9 2020, 2:36 PM
This revision was automatically updated to reflect the committed changes.