Linux Perf
perf Namespace Reference

Functions

static CompilerInvocation * createCompilerInvocation (llvm::opt::ArgStringList CFlags, StringRef &Path, DiagnosticsEngine &Diags)
 
static std::unique_ptr< llvm::Module > getModuleFromSource (llvm::opt::ArgStringList CFlags, StringRef Path, IntrusiveRefCntPtr< vfs::FileSystem > VFS)
 
std::unique_ptr< llvm::Module > getModuleFromSource (llvm::opt::ArgStringList CFlags, StringRef Name, StringRef Content)
 
std::unique_ptr< llvm::Module > getModuleFromSource (llvm::opt::ArgStringList CFlags, StringRef Path)
 
std::unique_ptr< llvm::SmallVectorImpl< char > > getBPFObjectFromModule (llvm::Module *Module)
 
std::unique_ptr< Module > getModuleFromSource (opt::ArgStringList CFlags, StringRef Name, StringRef Content)
 
std::unique_ptr< Module > getModuleFromSource (opt::ArgStringList CFlags, StringRef Path)
 

Variables

static std::unique_ptr< llvm::LLVMContext > LLVMCtx
 

Function Documentation

◆ createCompilerInvocation()

static CompilerInvocation* perf::createCompilerInvocation ( llvm::opt::ArgStringList  CFlags,
StringRef &  Path,
DiagnosticsEngine &  Diags 
)
static

Definition at line 39 of file clang.cpp.

◆ getBPFObjectFromModule()

std::unique_ptr< llvm::SmallVectorImpl< char > > perf::getBPFObjectFromModule ( llvm::Module *  Module)

Definition at line 124 of file clang.cpp.

◆ getModuleFromSource() [1/5]

std::unique_ptr<Module> perf::getModuleFromSource ( opt::ArgStringList  CFlags,
StringRef  Name,
StringRef  Content 
)

◆ getModuleFromSource() [2/5]

std::unique_ptr<Module> perf::getModuleFromSource ( opt::ArgStringList  CFlags,
StringRef  Path 
)

◆ getModuleFromSource() [3/5]

static std::unique_ptr<llvm::Module> perf::getModuleFromSource ( llvm::opt::ArgStringList  CFlags,
StringRef  Path,
IntrusiveRefCntPtr< vfs::FileSystem >  VFS 
)
static

Definition at line 68 of file clang.cpp.

Here is the call graph for this function:

◆ getModuleFromSource() [4/5]

std::unique_ptr<llvm::Module> perf::getModuleFromSource ( llvm::opt::ArgStringList  CFlags,
StringRef  Name,
StringRef  Content 
)

Definition at line 96 of file clang.cpp.

Here is the call graph for this function:

◆ getModuleFromSource() [5/5]

std::unique_ptr<llvm::Module> perf::getModuleFromSource ( llvm::opt::ArgStringList  CFlags,
StringRef  Path 
)

Definition at line 117 of file clang.cpp.

Here is the call graph for this function:

Variable Documentation

◆ LLVMCtx

std::unique_ptr<llvm::LLVMContext> perf::LLVMCtx
static

Definition at line 34 of file clang.cpp.