This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] A DICompositeTypeAttr is also a DIScopeAttr.
ClosedPublic

Authored by gysit on Jan 11 2023, 4:24 AM.

Details

Summary

A DICompositeTypeAttr is the MLIR counterpart of LLVMIR's
DICompositeType debug metadata node. It can be used to store debug
information associated to a class or struct type definition. Any class
member method then sets its scope to the parent DICompositeType. This
revision adds DICompositeTypeAttr to the list of DIScopeAttrs to
prevent verification failures for legal debug information. Additionally,
it adds a number of test cases.

Diff Detail

Event Timeline

gysit created this revision.Jan 11 2023, 4:24 AM
Herald added a project: Restricted Project. · View Herald Transcript
gysit requested review of this revision.Jan 11 2023, 4:24 AM
Dinistro accepted this revision.Jan 12 2023, 2:40 AM

LGTM!

This revision is now accepted and ready to land.Jan 12 2023, 2:40 AM
This revision was automatically updated to reflect the committed changes.