[MLIR] Add setPublic(), setPrivate(), and setNested() to Symbol interface
authorRahul Joshi <jurahul@google.com>
Mon, 9 Nov 2020 19:43:45 +0000 (11:43 -0800)
committerRahul Joshi <jurahul@google.com>
Mon, 9 Nov 2020 21:56:38 +0000 (13:56 -0800)
commit64be856f6da058ad99b1709c7f91f6a928f054a7
tree9e6f1ecf122d3d8968afa9886a1521baaf0ae6b6
parent8d51969bd40a0351ed2f0be54c61b1e62b0b433c
[MLIR] Add setPublic(), setPrivate(), and setNested() to Symbol interface

- Add shorter helper functions to set visibility for Symbols.

Differential Revision: https://reviews.llvm.org/D91096
mlir/examples/toy/Ch4/mlir/MLIRGen.cpp
mlir/examples/toy/Ch5/mlir/MLIRGen.cpp
mlir/examples/toy/Ch6/mlir/MLIRGen.cpp
mlir/examples/toy/Ch7/mlir/MLIRGen.cpp
mlir/include/mlir/IR/SymbolInterfaces.td