Adding an m_NonZero constant integer matcher.
authorBen Vanik <benvanik@google.com>
Wed, 6 Nov 2019 21:51:19 +0000 (13:51 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 6 Nov 2019 22:01:55 +0000 (14:01 -0800)
commit68bd355505463431c9c29a09d94ae866763c3522
tree90b3ce3c968bfa5489a4a36cdb03b06107df1aae
parentb5654d1311ffb2dc1f7f9803d36e4e503bfcc9dd
Adding an m_NonZero constant integer matcher.

This is useful for making matching cases where a non-zero value is required more readable, such as the results of a constant comparison that are expected to be equal.

PiperOrigin-RevId: 278932874
mlir/include/mlir/IR/Matchers.h
mlir/lib/Dialect/StandardOps/Ops.cpp