Simplify several usages of attributes now that they always have a type and, trans...
authorRiver Riddle <riverriddle@google.com>
Mon, 6 May 2019 19:40:43 +0000 (12:40 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 11 May 2019 02:22:41 +0000 (19:22 -0700)
commit983e0eea9532bdb54a945d522da8d5c1c55a6256
treeb8c50f11ab0d369b9fde9a58782b1bbd08e6d4a5
parent94afc426e2643f29a426e3cde458e2f064147dfd
Simplify several usages of attributes now that they always have a type and, transitively, access to the context.

    This also fixes a bug where FunctionAttrs were not being remapped for function and function argument attributes.

--

PiperOrigin-RevId: 246876924
13 files changed:
mlir/bindings/python/pybind.cpp
mlir/include/mlir/IR/Attributes.h
mlir/include/mlir/IR/Function.h
mlir/include/mlir/IR/Operation.h
mlir/lib/IR/AttributeDetail.h
mlir/lib/IR/Attributes.cpp
mlir/lib/IR/Builders.cpp
mlir/lib/IR/Function.cpp
mlir/lib/IR/MLIRContext.cpp
mlir/lib/IR/Operation.cpp
mlir/lib/Transforms/DialectConversion.cpp
mlir/lib/Transforms/Utils/Utils.cpp
mlir/test/IR/parser.mlir