Proteus
Programmable JIT compilation and optimization for C/C++ using LLVM
Loading...
Searching...
No Matches
Debug.h
Go to the documentation of this file.
1#ifndef PROTEUS_DEBUG_H
2#define PROTEUS_DEBUG_H
3
4#include <llvm/IR/Value.h>
5#include <llvm/Support/raw_ostream.h>
6
7#if PROTEUS_ENABLE_DEBUG
8#define PROTEUS_DBG(x) x;
9#else
10#define PROTEUS_DBG(x)
11#endif
12
13namespace proteus {
14
15using namespace llvm;
16
17inline std::string toString(Value &V) {
18 std::string Str;
19 raw_string_ostream OS{Str};
20 V.print(OS);
21 return Str;
22}
23
24} // namespace proteus
25
26#endif
Definition Dispatcher.cpp:14
std::string toString(CodegenOption Option)
Definition Config.hpp:23