Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
10namespace perf {
11
12using namespace llvm;
13
14std::unique_ptr<Module>
15getModuleFromSource(opt::ArgStringList CFlags,
16 StringRef Name, StringRef Content);
17
18std::unique_ptr<Module>
19getModuleFromSource(opt::ArgStringList CFlags,
20 StringRef Path);
21
22std::unique_ptr<llvm::SmallVectorImpl<char>>
23getBPFObjectFromModule(llvm::Module *Module);
24
25}
26#endif