[MLIR] Allow non-binary operations to be commutative
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Mon, 9 Dec 2019 22:27:11 +0000 (14:27 -0800)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Mon, 10 Feb 2020 18:23:55 +0000 (10:23 -0800)
commitb80a9ca8cbc19beb6117d7a05e3403adc598a059
tree55ac5d521a9befd2bc29640660254fb80f14580c
parent1f5542006502784e21e1a832221ff8cb56c7dbd2
[MLIR] Allow non-binary operations to be commutative

NFC for binary operations.

Differential Revision: https://reviews.llvm.org/D73670
mlir/include/mlir/IR/OperationSupport.h
mlir/lib/Transforms/Utils/FoldUtils.cpp
mlir/test/Transforms/test-canonicalize.mlir
mlir/test/lib/TestDialect/TestOps.td