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,
162
162
MLIR_CAPI_EXPORTED void mlirContextSetThreadPool (MlirContext context ,
163
163
MlirLlvmThreadPool threadPool );
164
164
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
+
165
170
//===----------------------------------------------------------------------===//
166
171
// Dialect API.
167
172
//===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change @@ -114,6 +114,10 @@ void mlirContextSetThreadPool(MlirContext context,
114
114
unwrap (context)->setThreadPool (*unwrap (threadPool));
115
115
}
116
116
117
+ void mlirContextPrintStackTraceOnDiagnostic (MlirContext context, bool enable) {
118
+ unwrap (context)->printStackTraceOnDiagnostic (enable);
119
+ }
120
+
117
121
// ===----------------------------------------------------------------------===//
118
122
// Dialect API.
119
123
// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments