[mlir] Add a SharedSymbolTableCollection class
authorJeff Niu <jeff@modular.com>
Tue, 21 Feb 2023 17:55:52 +0000 (09:55 -0800)
committerJeff Niu <jeff@modular.com>
Wed, 22 Feb 2023 21:57:30 +0000 (13:57 -0800)
commit2cfc66a6fa660fb0b03de40815392f25038ccfba
treec75e3c4a9792d820bb22f4bbcbd774b35fecf4cd
parent6d2d4a24f6bf1095930f01b2e2c36604557a4523
[mlir] Add a SharedSymbolTableCollection class

This class wraps a `SymbolTableCollection` to allow shared access to the
collection of symbol tables (but not the individual symbol tables). This
can be used, for example, in a pass that shards work among symbols that
requires symbol lookups.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D144507
mlir/include/mlir/IR/SymbolTable.h
mlir/lib/IR/SymbolTable.cpp