1*4acd8457SAlex Zinenko //===- Debug.cpp - C Interface for MLIR/LLVM Debugging Functions ----------===// 2*4acd8457SAlex Zinenko // 3*4acd8457SAlex Zinenko // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*4acd8457SAlex Zinenko // See https://llvm.org/LICENSE.txt for license information. 5*4acd8457SAlex Zinenko // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*4acd8457SAlex Zinenko // 7*4acd8457SAlex Zinenko //===----------------------------------------------------------------------===// 8*4acd8457SAlex Zinenko 9*4acd8457SAlex Zinenko #include "mlir-c/Debug.h" 10*4acd8457SAlex Zinenko #include "mlir-c/Support.h" 11*4acd8457SAlex Zinenko 12*4acd8457SAlex Zinenko #include "mlir/CAPI/Support.h" 13*4acd8457SAlex Zinenko 14*4acd8457SAlex Zinenko #include "llvm/Support/Debug.h" 15*4acd8457SAlex Zinenko mlirEnableGlobalDebug(bool enable)16*4acd8457SAlex Zinenkovoid mlirEnableGlobalDebug(bool enable) { llvm::DebugFlag = enable; } 17*4acd8457SAlex Zinenko mlirIsGlobalDebugEnabled()18*4acd8457SAlex Zinenkobool mlirIsGlobalDebugEnabled() { return llvm::DebugFlag; } 19