[mlir] m_Constant()
authorLorenzo Chelini <l.chelini@icloud.com>
Mon, 13 Jan 2020 16:21:04 +0000 (17:21 +0100)
committerAlex Zinenko <zinenko@google.com>
Mon, 13 Jan 2020 16:22:01 +0000 (17:22 +0100)
commit81e7922e83cf9782a39f4072e20eab8ab1e99828
tree06b151f6908ac832c5304e14df405eec86ee5b21
parent202ab273e6eca134b69882f100c666fcd3affbcf
[mlir] m_Constant()

Summary: Introduce m_Constant() which allows matching a constant operation without forcing the user also to capture the attribute value.

Differential Revision: https://reviews.llvm.org/D72397
mlir/include/mlir/IR/Matchers.h
mlir/lib/IR/Builders.cpp
mlir/test/IR/test-matchers.mlir
mlir/test/lib/IR/TestMatchers.cpp