This is an archive of the discontinued LLVM Phabricator instance.

[mlir][OpAsmParser] Add support for parsing integer literals without going through IntegerAttr
ClosedPublic

Authored by rriddle on Dec 11 2020, 5:45 PM.

Details

Summary

Some operations use integer literals as part of their custom format that don't necessarily map to an internal IntegerAttr. This revision exposes the same parseInteger functions as the DialectAsmParser to allow for these operations to parse integer literals without incurring the otherwise unnecessary roundtrip through IntegerAttr.

Depends On D93151

Diff Detail

Event Timeline

rriddle created this revision.Dec 11 2020, 5:45 PM
rriddle requested review of this revision.Dec 11 2020, 5:45 PM
mehdi_amini accepted this revision.Dec 11 2020, 6:24 PM
This revision is now accepted and ready to land.Dec 11 2020, 6:24 PM
This revision was landed with ongoing or failed builds.Dec 14 2020, 12:01 PM
This revision was automatically updated to reflect the committed changes.