We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MLIR_ENABLE_DIAGNOSTICS
1 parent 37a4568 commit ed3d094Copy full SHA for ed3d094
python/src/ir.cc
@@ -1680,11 +1680,11 @@ void init_triton_ir(py::module &&m) {
1680
if (haveDiagnostics) {
1681
context->printOpOnDiagnostic(true);
1682
context->printStackTraceOnDiagnostic(true);
1683
+ context->getDiagEngine().registerHandler([](Diagnostic &diag) {
1684
+ llvm::outs() << diag << "\n";
1685
+ return success();
1686
+ });
1687
}
- context->getDiagEngine().registerHandler([](Diagnostic &diag) {
- llvm::outs() << diag << "\n";
- return success();
- });
1688
if (haveDump) {
1689
auto printingFlags = OpPrintingFlags();
1690
printingFlags.elideLargeElementsAttrs(16);
0 commit comments