This is an archive of the discontinued LLVM Phabricator instance.

[mlir] return the updated symbol table after inserting into SymbolTable
ClosedPublic

Authored by ftynse on Oct 31 2021, 1:38 AM.

Details

Summary

Inserting a symbol into a SymbolTable may lead to the name of the symbol being
changed in order to ensure uniqueness of symbol names in the table. Return this
new name to spare the caller the need to extract it from the symbol operation.

Depends On D112700

Diff Detail

Event Timeline

ftynse created this revision.Oct 31 2021, 1:38 AM
ftynse requested review of this revision.Oct 31 2021, 1:38 AM

Should we return the Attr? It can avoid someone needing to get a attribute from the returned StringRef.

mehdi_amini accepted this revision.Oct 31 2021, 12:08 PM

(LG otherwise)

This revision is now accepted and ready to land.Oct 31 2021, 12:08 PM
ftynse updated this revision to Diff 384033.Nov 2 2021, 4:03 AM

Address review.

ftynse updated this revision to Diff 384045.Nov 2 2021, 4:39 AM

Something went wrong with the previous upload...

This revision was landed with ongoing or failed builds.Nov 2 2021, 6:23 AM
This revision was automatically updated to reflect the committed changes.