This is an archive of the discontinued LLVM Phabricator instance.

[mlir][IR] Add a new SymbolUserMap class
ClosedPublic

Authored by rriddle on Mar 5 2021, 12:52 PM.

Details

Summary

This class provides efficient implementations of symbol queries related to uses, such as collecting the users of a symbol, replacing all uses, etc. This provides similar benefits to use related queries, as SymbolTableCollection did for lookup queries.

Diff Detail

Event Timeline

rriddle created this revision.Mar 5 2021, 12:52 PM
rriddle requested review of this revision.Mar 5 2021, 12:52 PM
jpienaar accepted this revision.Mar 5 2021, 3:36 PM

Thanks this will help a lot :)

mlir/lib/IR/SymbolTable.cpp
1027

Comment for allSymUsesVisible logic here?

This revision is now accepted and ready to land.Mar 5 2021, 3:36 PM
mehdi_amini accepted this revision.Mar 5 2021, 5:55 PM
mehdi_amini added inline comments.
mlir/include/mlir/IR/SymbolTable.h
273

The sentence is ambiguous: will you get symbol uses outside of limit for symbols defined under limit?

rriddle updated this revision to Diff 329455.Mar 9 2021, 1:13 PM
rriddle marked an inline comment as done.

update

This revision was landed with ongoing or failed builds.Mar 9 2021, 3:08 PM
This revision was automatically updated to reflect the committed changes.