Various improvements to pattern matching and other infra:
authorChris Lattner <clattner@google.com>
Sun, 14 Oct 2018 03:36:03 +0000 (20:36 -0700)
committerjpienaar <jpienaar@google.com>
Fri, 29 Mar 2019 20:29:49 +0000 (13:29 -0700)
commit7e7157fd1d6fc559232023b39a04d5fc77925d2e
treee7b8170489263910d77dfdcf45bad6fa971091cc
parent3165d9f26914920c17a422cd5252b196c2898499
Various improvements to pattern matching and other infra:
 - Make it so OpPointer implicitly converts to SSAValue* when the underlying op
   has a single value.  This eliminates a lot more ->getResult() calls and makes
   the behavior more LLVM-like
 - Fill out PatternBenefit to be typed instead of just a typedef for int with
   magic numbers.
 - Simplify various code due to these changes.

PiperOrigin-RevId: 217020717
mlir/include/mlir/IR/OpDefinition.h
mlir/lib/StandardOps/StandardOps.cpp
mlir/lib/Transforms/Canonicalizer.cpp
mlir/lib/Transforms/ComposeAffineMaps.cpp
mlir/lib/Transforms/ConstantFold.cpp
mlir/lib/Transforms/LoopUtils.cpp