forked from OSchip/llvm-project
6337af082b
terminators. Improve mlir-opt to print better location info in the split-files case. Before: error: unexpected error: branch has 2 operands, but target block has 1 br bb1(%0tensorflow/mlir#1, %0tensorflow/mlir#0 : i17, i1) ^ after: invalid.mlir split at line tensorflow/mlir#305:6:3: error: unexpected error: branch has 2 operands, but target block has 1 br bb1(%0tensorflow/mlir#1, %0tensorflow/mlir#0 : i17, i1) ^ It still isn't optimal (it would be better to have just the original file and line number but is a step forward, and doing the optimal thing would be a lot more complicated. PiperOrigin-RevId: 211917067 |
||
---|---|---|
.. | ||
DefaultInitializeMLIRContext.cpp | ||
mlir-opt.cpp |