]> git.karo-electronics.de Git - karo-tx-linux.git/blob - tools/perf/util/c++/clang.h
Merge tag 'sti-drm-next-2017-01-06' of https://github.com/vinceab/linux into drm...
[karo-tx-linux.git] / tools / perf / util / c++ / clang.h
1 #ifndef PERF_UTIL_CLANG_H
2 #define PERF_UTIL_CLANG_H
3
4 #include "llvm/ADT/StringRef.h"
5 #include "llvm/IR/LLVMContext.h"
6 #include "llvm/IR/Module.h"
7 #include "llvm/Option/Option.h"
8 #include <memory>
9
10 namespace perf {
11
12 using namespace llvm;
13
14 std::unique_ptr<Module>
15 getModuleFromSource(opt::ArgStringList CFlags,
16                     StringRef Name, StringRef Content);
17
18 std::unique_ptr<Module>
19 getModuleFromSource(opt::ArgStringList CFlags,
20                     StringRef Path);
21
22 std::unique_ptr<llvm::SmallVectorImpl<char>>
23 getBPFObjectFromModule(llvm::Module *Module);
24
25 }
26 #endif