NFC: Remove the 'context' parameter from OperationState.
authorRiver Riddle <riverriddle@google.com>
Sat, 22 Jun 2019 18:08:52 +0000 (11:08 -0700)
committerjpienaar <jpienaar@google.com>
Sat, 22 Jun 2019 20:05:10 +0000 (13:05 -0700)
commit48d6cf1ced1c60fe59c6d211dcc33537e8f02704
tree62efa0de716578edfd3e8e68d7213c3be78a4f3e
parentdbc96d677595497889b1b34d02e819ca3718c263
NFC: Remove the 'context' parameter from OperationState.

Now that Locations are Attributes they contain a direct reference to the MLIRContext, i.e. the context can be directly accessed from the given location instead of being explicitly passed in.

PiperOrigin-RevId: 254568329
13 files changed:
mlir/examples/toy/Ch2/mlir/MLIRGen.cpp
mlir/include/mlir/IR/Builders.h
mlir/include/mlir/IR/OpDefinition.h
mlir/include/mlir/IR/OperationSupport.h
mlir/include/mlir/IR/PatternMatch.h
mlir/lib/EDSC/Builders.cpp
mlir/lib/IR/OperationSupport.cpp
mlir/lib/Parser/Parser.cpp
mlir/lib/SPIRV/Serialization/ConvertFromBinary.cpp
mlir/lib/SPIRV/Serialization/Deserializer.cpp
mlir/lib/Transforms/MaterializeVectors.cpp
mlir/lib/Transforms/Utils/Utils.cpp
mlir/lib/Transforms/Vectorize.cpp