File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,11 @@ MLIR_CAPI_EXPORTED bool mlirContextIsRegisteredOperation(MlirContext context,
162162MLIR_CAPI_EXPORTED void mlirContextSetThreadPool (MlirContext context ,
163163 MlirLlvmThreadPool threadPool );
164164
165+ /// Sets the context to attach the stack trace for the source code location at
166+ /// which a diagnostic is emitted.
167+ MLIR_CAPI_EXPORTED void
168+ mlirContextPrintStackTraceOnDiagnostic (MlirContext context , bool enable );
169+
165170//===----------------------------------------------------------------------===//
166171// Dialect API.
167172//===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change @@ -114,6 +114,10 @@ void mlirContextSetThreadPool(MlirContext context,
114114 unwrap (context)->setThreadPool (*unwrap (threadPool));
115115}
116116
117+ void mlirContextPrintStackTraceOnDiagnostic (MlirContext context, bool enable) {
118+ unwrap (context)->printStackTraceOnDiagnostic (enable);
119+ }
120+
117121// ===----------------------------------------------------------------------===//
118122// Dialect API.
119123// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments