Refactor Attribute uniquing to use StorageUniquer instead of being hard coded...
authorRiver Riddle <riverriddle@google.com>
Tue, 30 Apr 2019 17:31:29 +0000 (10:31 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 6 May 2019 15:22:50 +0000 (08:22 -0700)
commit0f89ef30b749408b705afd7ba55b9f9be8ac8d8f
tree5dcf774f078182f306d337ade0298ced93dd0672
parent72ce58e23e2e7cc185f2f968a0b6978be4d4a5c3
Refactor Attribute uniquing to use StorageUniquer instead of being hard coded in the MLIRContext. This allows for attributes to be uniqued similarly to types. This is the second step towards allowing dialects to define attributes.

--

PiperOrigin-RevId: 245974705
mlir/include/mlir/IR/Attributes.h
mlir/include/mlir/IR/MLIRContext.h
mlir/include/mlir/Support/StorageUniquer.h
mlir/lib/IR/AttributeDetail.h
mlir/lib/IR/Attributes.cpp
mlir/lib/IR/MLIRContext.cpp
mlir/lib/Support/StorageUniquer.cpp