This is an archive of the discontinued LLVM Phabricator instance.

Store a MlirIdentifier instead of a MlirStringRef in MlirNameAttribute
ClosedPublic

Authored by mehdi_amini on Dec 11 2020, 10:54 AM.

Details

Summary

This mirror the C++ API for NamedAttribute, and has the advantage or
internalizing earlier in the Context and not requiring the caller to
keep the StringRef alive beyong this call.

Diff Detail

Unit TestsFailed

Event Timeline

mehdi_amini created this revision.Dec 11 2020, 10:54 AM
mehdi_amini requested review of this revision.Dec 11 2020, 10:54 AM
ftynse accepted this revision.Dec 11 2020, 2:28 PM
This revision is now accepted and ready to land.Dec 11 2020, 2:28 PM
This revision was landed with ongoing or failed builds.Dec 11 2020, 2:39 PM
This revision was automatically updated to reflect the committed changes.

Thanks - there was a TODO somewhere for this sharp edge