[mlir] Add pass to privatize symbols unless excluded.
authorJacques Pienaar <jpienaar@google.com>
Fri, 4 Feb 2022 04:20:54 +0000 (20:20 -0800)
committerJacques Pienaar <jpienaar@google.com>
Fri, 4 Feb 2022 04:20:54 +0000 (20:20 -0800)
commit88c525235bc979af9e137d1e9b9d03633b0b0598
tree7b69b3eb326c2ca0260b876aea6e595e7c0a76b5
parentbb9964ba4382afce1336f594c05580d554186500
[mlir] Add pass to privatize symbols unless excluded.

Simple pass that changes all symbols to private unless symbol is excluded (and
in which case there is no change to symbol's visibility).

Differential Revision: https://reviews.llvm.org/D118752
mlir/include/mlir/Transforms/Passes.h
mlir/include/mlir/Transforms/Passes.td
mlir/lib/Transforms/CMakeLists.txt
mlir/lib/Transforms/SymbolPrivatize.cpp [new file with mode: 0644]
mlir/test/Transforms/test-symbol-privatize.mlir [new file with mode: 0644]