MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
Debug.h
Go to the documentation of this file.
1//=== MLModelRunner/Utils/Debug.h - Debug definitions with support - C++ --===//
2//
3// Part of the MLCompilerBridge Project, under the Apache License v2.0 with LLVM
4// Exceptions. See the LICENSE file for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
12//===----------------------------------------------------------------------===//
13
14#ifndef MLBRIDGE_DEBUG_H
15#define MLBRIDGE_DEBUG_H
16
17namespace MLBridge {
18
19#ifdef DEBUG_MODE
20#define MLBRIDGE_DEBUG(X) \
21 do { \
22 X; \
23 } while (false)
24#else
25#define MLBRIDGE_DEBUG(X)
26#endif
27
28} // namespace MLBridge
29
30#endif