LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ReaderWrappers.cpp File Reference

#include "llvm/Bytecode/Analyzer.h"
#include "llvm/Bytecode/Reader.h"
#include "Reader.h"
#include "llvm/Module.h"
#include "llvm/Instructions.h"
#include "llvm/Support/FileUtilities.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Config/unistd.h"
#include <cerrno>

Include dependency graph for ReaderWrappers.cpp:

Go to the source code of this file.

Functions

static std::string ErrnoMessage (int savedErrNum, std::string descr)
static ModuleProviderCheckVarargs (ModuleProvider *MP)
ModuleProviderllvm::getBytecodeBufferModuleProvider (const unsigned char *Buffer, unsigned Length, const std::string &ModuleID, BytecodeHandler *H)
Modulellvm::ParseBytecodeBuffer (const unsigned char *Buffer, unsigned Length, const std::string &ModuleID, std::string *ErrorStr)
 Parse a given bytecode buffer.
ModuleProviderllvm::getBytecodeModuleProvider (const std::string &Filename, BytecodeHandler *H)
Modulellvm::ParseBytecodeFile (const std::string &Filename, std::string *ErrorStr)
 Parse the given bytecode file.
Modulellvm::AnalyzeBytecodeFile (const std::string &Filename, BytecodeAnalysis &bca, std::string *ErrorStr, std::ostream *output)
 Analyze contents of a bytecode File.
Modulellvm::AnalyzeBytecodeBuffer (const unsigned char *Buffer, unsigned Length, const std::string &ModuleID, BytecodeAnalysis &bca, std::string *ErrorStr, std::ostream *output)
 Analyze contents of a bytecode buffer.
bool llvm::GetBytecodeDependentLibraries (const std::string &fname, Module::LibraryListType &deplibs)
void getSymbols (Module *M, std::vector< std::string > &symbols)
bool llvm::GetBytecodeSymbols (const sys::Path &fName, std::vector< std::string > &symbols)
 Get a bytecode file's externally visibile defined global symbols.
ModuleProviderllvm::GetBytecodeSymbols (const unsigned char *Buffer, unsigned Length, const std::string &ModuleID, std::vector< std::string > &symbols)
 Get a bytecode file's externally visibile defined global symbols.


Function Documentation

static ModuleProvider* CheckVarargs ModuleProvider MP  )  [static]
 

Definition at line 175 of file ReaderWrappers.cpp.

References llvm::Function::asize(), E, F, llvm::Function::getFunctionType(), llvm::ModuleProvider::getModule(), llvm::Module::getNamedFunction(), llvm::FunctionType::getNumParams(), llvm::Constant::getOperand(), llvm::Module::getOrInsertFunction(), llvm::FunctionType::getParamType(), I, M, llvm::ModuleProvider::materializeModule(), llvm::Function::setName(), llvm::Value::use_begin(), llvm::Value::use_end(), and V.

Referenced by llvm::getBytecodeBufferModuleProvider(), and llvm::getBytecodeModuleProvider().

static std::string ErrnoMessage int  savedErrNum,
std::string  descr
[static]
 

Definition at line 47 of file ReaderWrappers.cpp.

void @3::getSymbols Module M,
std::vector< std::string > &  symbols
[static]
 

Definition at line 350 of file ReaderWrappers.cpp.

References llvm::Module::begin(), llvm::Module::end(), llvm::Module::gbegin(), llvm::Module::gend(), and name.

Referenced by llvm::GetBytecodeSymbols().