[mlir] Expose getNearestSymbolTable as SymbolTable class method
authorLei Zhang <antiagainst@google.com>
Sun, 26 Jan 2020 15:55:17 +0000 (10:55 -0500)
committerLei Zhang <antiagainst@google.com>
Sun, 26 Jan 2020 22:35:26 +0000 (17:35 -0500)
commit29e411b3d6a4b80c21891fc311168d8a651693f8
treea33f7b7fdb2c3db0fcf8359416a548860b27937a
parenta8d096aff6b1930ad57bd0c30077d2b4920b5025
[mlir] Expose getNearestSymbolTable as SymbolTable class method

This is a generally useful utility function for interacting with
symbol tables.

Differential Revision: https://reviews.llvm.org/D73433
mlir/include/mlir/IR/SymbolTable.h
mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
mlir/lib/IR/SymbolTable.cpp