This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Add MD_prof import error handling
ClosedPublic

Authored by Dinistro on Feb 7 2023, 5:21 AM.

Details

Summary

This commit adds additional checks and warning messages to the MD_prof
import. As LLVM does not verify most metadata, the import has the be
resilient towards ill-formatted inputs.

Diff Detail

Event Timeline

Dinistro created this revision.Feb 7 2023, 5:21 AM
Herald added a project: Restricted Project. · View Herald Transcript
Dinistro requested review of this revision.Feb 7 2023, 5:21 AM
gysit accepted this revision.Feb 7 2023, 6:25 AM

Thanks LGTM!

mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMIRToLLVMTranslation.cpp
96

nit: emitValueWarning

This revision is now accepted and ready to land.Feb 7 2023, 6:25 AM
Dinistro updated this revision to Diff 495521.Feb 7 2023, 6:56 AM
Dinistro marked an inline comment as done.

address NIT comment

This revision was automatically updated to reflect the committed changes.