Add a Symbol trait to simplify defining operations that represent symbols.
authorRiver Riddle <riverriddle@google.com>
Mon, 21 Oct 2019 16:58:22 +0000 (09:58 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 21 Oct 2019 16:58:59 +0000 (09:58 -0700)
commit9ac459e8711050114a3b147884d66b32a67ed8a4
tree03827f3eba540379588e2e84e6c995e6b51284e1
parent1bdfc9e74df955b230d22e9252cb9e5f36843057
Add a Symbol trait to simplify defining operations that represent symbols.

This trait provides accessors for the name, symbol use list methods, verification, with more to be added.

PiperOrigin-RevId: 275864554
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVStructureOps.td
mlir/include/mlir/IR/Function.h
mlir/include/mlir/IR/FunctionSupport.h
mlir/include/mlir/IR/OpBase.td
mlir/include/mlir/IR/SymbolTable.h
mlir/lib/IR/FunctionSupport.cpp
mlir/lib/IR/SymbolTable.cpp
mlir/test/Dialect/LLVMIR/global.mlir
mlir/test/lib/IR/TestSymbolUses.cpp