Page MenuHomePhabricator

[mlir][llvm] Improve error messages during LLVM IR import.

Authored by gysit on Jan 10 2023, 12:05 AM.



Use the module location instead of unknown location if the imported
LLVM IR module does not have more precise debug information.
Additionally, use the diagMD function to print the metadata instead
of just the metadata kind if the import fails.

Diff Detail

Event Timeline

gysit created this revision.Jan 10 2023, 12:05 AM
Herald added a project: Restricted Project. · View Herald Transcript
gysit requested review of this revision.Jan 10 2023, 12:05 AM
This revision is now accepted and ready to land.Jan 10 2023, 1:04 AM
Dinistro added inline comments.Jan 10 2023, 2:03 AM

Should we also check if the module location was emitted in this test file?

gysit updated this revision to Diff 487772.Jan 10 2023, 6:11 AM

Address review comment and rebase.

This revision was automatically updated to reflect the committed changes.