LLVM 23.0.0git
InstrumentorConfigFile.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::instrumentor

Functions

static Expected< std::unique_ptr< MemoryBuffer > > setupMemoryBuffer (const Twine &Filename, vfs::FileSystem &FS)
void llvm::instrumentor::writeConfigToJSON (InstrumentationConfig &IConf, StringRef OutputFile, LLVMContext &Ctx)
 Write the configuration in /p IConf to the file with path OutputFile.
bool llvm::instrumentor::readConfigFromJSON (InstrumentationConfig &IConf, StringRef InputFile, LLVMContext &Ctx, vfs::FileSystem &FS)
 Read the configuration from the file with path InputFile into /p IConf.
bool llvm::instrumentor::readConfigPathsFile (StringRef InputFile, cl::list< std::string > &Configs, LLVMContext &Ctx, vfs::FileSystem &FS)
 Read the configuration paths from the file with path InputFile into Configs.

Function Documentation

◆ setupMemoryBuffer()

Expected< std::unique_ptr< MemoryBuffer > > setupMemoryBuffer ( const Twine & Filename,
vfs::FileSystem & FS )
static