This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Enable conversion from llvm::SMLoc to mlir::Location with OpAsmParser.
ClosedPublic

Authored by ulysseB on May 10 2021, 6:15 AM.

Details

Summary

DialectAsmParser already allows converting an llvm::SMLoc location to a
mlir::Location location. This commit adds the same functionality to OpAsmParser.
Implementation is copied from DialectAsmParser.

Diff Detail

Event Timeline

ulysseB created this revision.May 10 2021, 6:15 AM
ulysseB requested review of this revision.May 10 2021, 6:15 AM
rriddle accepted this revision.May 11 2021, 10:33 AM
This revision is now accepted and ready to land.May 11 2021, 10:33 AM