Proteus
Programmable JIT compilation and optimization for C/C++ using LLVM
Main Page
Namespaces
Classes
Files
File List
File Members
Loading...
Searching...
No Matches
include
proteus
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
13
namespace
proteus
{
14
15
using namespace
llvm;
16
17
inline
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
proteus
Definition
Dispatcher.cpp:14
proteus::toString
std::string toString(CodegenOption Option)
Definition
Config.hpp:23
Generated by
1.9.8