Add LLVM_DEBUG in RewritersGen.cpp and Pattern.cpp
authorLei Zhang <antiagainst@google.com>
Thu, 17 Oct 2019 14:25:50 +0000 (07:25 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 17 Oct 2019 14:26:22 +0000 (07:26 -0700)
commit1358df19ca73165cdbd64d099cb5c7ccfd23e477
tree0a32519837f03a2c9c236d6d73305113e59a78f5
parentbdc250c5a744e95a7d0ddd283c6b19c564c725a5
Add LLVM_DEBUG in RewritersGen.cpp and Pattern.cpp

It's usually hard to understand what went wrong if mlir-tblgen
crashes on some input. This CL adds a few useful LLVM_DEBUG
statements so that we can use mlir-tblegn -debug to figure
out the culprit for a crash.

PiperOrigin-RevId: 275253532
mlir/include/mlir/TableGen/Pattern.h
mlir/lib/TableGen/Pattern.cpp
mlir/tools/mlir-tblgen/RewriterGen.cpp