commit | 27c421164946fdf60d577553c8cf47928243eae5 | [log] [tgz] |
---|---|---|
author | Stanislav Funiak <stano@cerebras.net> | Fri Nov 26 18:09:04 2021 +0530 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Nov 26 04:46:46 2021 -0800 |
tree | d7507a08a590c180c0c8bfc2153b3da1f19594ac | |
parent | 0ac9d528ec3d3b5be428f550ab0faba4cbbf74df [diff] |
Added line numbers to the debug output of PDL bytecode. This is a small diff that splits out the debug output for PDL bytecode. When running bytecode with debug output on, it is useful to know the line numbers where the PDLIntepr operations are performed. Usually, these are in a single MLIR file, so it's sufficient to print out the line number rather than the entire location (which tends to be quite verbose). This debug output is gated by `LLVM_DEBUG` rather than `#ifndef NDEBUG` to make it easier to test. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D114061 GitOrigin-RevId: d35f1190949963f7b22bd687ed0e27e8636f505d
See https://mlir.llvm.org/ for more information.