]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - tools/perf/util/c++/clang.h
Input: wm97xx: add new AC97 bus support
[mirror_ubuntu-focal-kernel.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