Introduce a new operation hook point for implementing simple local
authorChris Lattner <clattner@google.com>
Thu, 24 Jan 2019 20:34:00 +0000 (12:34 -0800)
committerjpienaar <jpienaar@google.com>
Fri, 29 Mar 2019 22:34:35 +0000 (15:34 -0700)
commit934b6d125ff546fe8f904fbe3215727bffb2e491
tree7ae3e478187ed527703f14d9c08ff83048ce12b8
parent451869f394d0fc86381892d435649fc8f0ed47fa
Introduce a new operation hook point for implementing simple local
canonicalizations of operations.  The ultimate important user of this is
going to be a funcBuilder->foldOrCreate<YourOp>(...) API, but for now it
is just a more convenient way to write certain classes of canonicalizations
(see the change in StandardOps.cpp).

NFC.

PiperOrigin-RevId: 230770021
mlir/include/mlir/IR/Instructions.h
mlir/include/mlir/IR/OpDefinition.h
mlir/include/mlir/IR/OperationSupport.h
mlir/include/mlir/IR/op_base.td
mlir/include/mlir/StandardOps/standard_ops.td
mlir/lib/IR/Instruction.cpp
mlir/lib/StandardOps/StandardOps.cpp
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp