[mlir] Make FunctionOpInterface inherit SymbolOpInterface
authorRiver Riddle <riddleriver@gmail.com>
Fri, 16 Dec 2022 10:33:53 +0000 (02:33 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Thu, 19 Jan 2023 03:16:30 +0000 (19:16 -0800)
commitb2bdb0ba0f6d331844c1b9dcccd522472c7188c9
treed0f974ff41a272b97e2d2bb3b9e071d0d7d98ac2
parent83a635c0d4759bd77bbbb21ff8d202cb8c3ea57b
[mlir] Make FunctionOpInterface inherit SymbolOpInterface

This lets users of FunctionOpInterface finally have the
name/visibility accessors from SymbolOpInterface. This also
lets us remove the clunky "getName" method from FunctionOpInterface.

Differential Revision: https://reviews.llvm.org/D140199
15 files changed:
mlir/examples/toy/Ch2/include/toy/Ops.td
mlir/examples/toy/Ch3/include/toy/Ops.td
mlir/examples/toy/Ch4/include/toy/Ops.td
mlir/examples/toy/Ch5/include/toy/Ops.td
mlir/examples/toy/Ch6/include/toy/Ops.td
mlir/examples/toy/Ch7/include/toy/Ops.td
mlir/include/mlir/Dialect/Async/IR/AsyncOps.td
mlir/include/mlir/Dialect/Func/IR/FuncOps.td
mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVStructureOps.td
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/include/mlir/IR/FunctionInterfaces.td
mlir/test/Dialect/Func/invalid.mlir