This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tblgen] Fix crash in `-gen-enum-(decls|defs)` when `EnumAttrInfo` is not defined
ClosedPublic

Authored by zero9178 on Oct 6 2022, 3:58 AM.

Details

Summary

This should instead simply produce an empty file instead of crashing and causing a build to fail. This allows one to be more lazy in cmake code and just always generate the files for enum attributes, even if none are ever defined in the dialect.

Diff Detail

Event Timeline

zero9178 created this revision.Oct 6 2022, 3:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 3:58 AM
zero9178 requested review of this revision.Oct 6 2022, 3:58 AM
jpienaar accepted this revision.Oct 6 2022, 1:54 PM

Thanks!

This revision is now accepted and ready to land.Oct 6 2022, 1:54 PM