]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - tools/perf/util/c++/clang.h
1 #ifndef PERF_UTIL_CLANG_H
2 #define PERF_UTIL_CLANG_H
4 #include "llvm/ADT/StringRef.h"
5 #include "llvm/IR/LLVMContext.h"
6 #include "llvm/IR/Module.h"
7 #include "llvm/Option/Option.h"
14 std::unique_ptr
<Module
>
15 getModuleFromSource(opt::ArgStringList CFlags
,
16 StringRef Name
, StringRef Content
);
18 std::unique_ptr
<Module
>
19 getModuleFromSource(opt::ArgStringList CFlags
,
22 std::unique_ptr
<llvm::SmallVectorImpl
<char>>
23 getBPFObjectFromModule(llvm::Module
*Module
);