This is an archive of the discontinued LLVM Phabricator instance.

Add support for IndexType inside DenseIntElementsAttr.
ClosedPublic

Authored by silvas on Apr 23 2020, 12:52 PM.

Details

Reviewers
rriddle
Summary

This also fixes issues discovered in the parsing/printing path.

Diff Detail

Event Timeline

silvas created this revision.Apr 23 2020, 12:52 PM
Herald added a project: Restricted Project. · View Herald Transcript
rriddle accepted this revision.Apr 23 2020, 3:16 PM
rriddle added inline comments.
mlir/lib/Parser/Parser.cpp
2047–2048

nit:

Type eltType = type.getElementType();
if (eltType.isIntOrIndex())
  ...

...
auto floatTy = eltType...
2092–2093

nit: Can you just replace this with 1?

This revision is now accepted and ready to land.Apr 23 2020, 3:16 PM
silvas updated this revision to Diff 259746.Apr 23 2020, 3:47 PM
silvas marked 2 inline comments as done.

Address comments.