This is an archive of the discontinued LLVM Phabricator instance.

[mlir] tighten LLVM dialect verifiers to generate valid LLVM IR
ClosedPublic

Authored by ftynse on Feb 16 2021, 5:33 AM.

Details

Summary

Verification of the LLVM IR produced when translating various MLIR dialects was
only active when calling the translation programmatically. This has led to
several cases of invalid LLVM IR being generated that could not be caught with
textual mlir-translate tests. Add verifiers for these cases and fix the tests
in preparation for enforcing the validation of LLVM IR.

Diff Detail

Event Timeline

ftynse created this revision.Feb 16 2021, 5:33 AM
ftynse requested review of this revision.Feb 16 2021, 5:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2021, 5:33 AM
ftynse updated this revision to Diff 324016.Feb 16 2021, 8:36 AM

Fix test

nicolasvasilache accepted this revision.Feb 16 2021, 8:39 AM
This revision is now accepted and ready to land.Feb 16 2021, 8:39 AM
This revision was landed with ongoing or failed builds.Feb 16 2021, 9:18 AM
This revision was automatically updated to reflect the committed changes.