LLVM API Documentation

Classes | Namespaces | Enumerations | Functions
ReaderWriter.h File Reference
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/MemoryBuffer.h"
#include <memory>
#include <string>
Include dependency graph for ReaderWriter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::is_error_code_enum< llvm::BitcodeError >

Namespaces

namespace  llvm
 

List of target independent CodeGen pass IDs.


namespace  std

Enumerations

enum  llvm::BitcodeError {
  llvm::ConflictingMETADATA_KINDRecords, llvm::CouldNotFindFunctionInStream, llvm::ExpectedConstant, llvm::InsufficientFunctionProtos,
  llvm::InvalidBitcodeSignature, llvm::InvalidBitcodeWrapperHeader, llvm::InvalidConstantReference, llvm::InvalidID,
  llvm::InvalidInstructionWithNoBB, llvm::InvalidRecord, llvm::InvalidTypeForValue, llvm::InvalidTYPETable,
  llvm::InvalidType, llvm::MalformedBlock, llvm::MalformedGlobalInitializerSet, llvm::InvalidMultipleBlocks,
  llvm::NeverResolvedValueFoundInFunction, llvm::NeverResolvedFunctionFromBlockAddress, llvm::InvalidValue
}

Functions

ErrorOr< Module * > llvm::getLazyBitcodeModule (std::unique_ptr< MemoryBuffer > &&Buffer, LLVMContext &Context)
Modulellvm::getStreamedBitcodeModule (const std::string &name, DataStreamer *streamer, LLVMContext &Context, std::string *ErrMsg=nullptr)
std::string llvm::getBitcodeTargetTriple (MemoryBufferRef Buffer, LLVMContext &Context)
ErrorOr< Module * > llvm::parseBitcodeFile (MemoryBufferRef Buffer, LLVMContext &Context)
 Read the specified bitcode file, returning the module.
void llvm::WriteBitcodeToFile (const Module *M, raw_ostream &Out)
bool llvm::isBitcodeWrapper (const unsigned char *BufPtr, const unsigned char *BufEnd)
bool llvm::isRawBitcode (const unsigned char *BufPtr, const unsigned char *BufEnd)
bool llvm::isBitcode (const unsigned char *BufPtr, const unsigned char *BufEnd)
bool llvm::SkipBitcodeWrapperHeader (const unsigned char *&BufPtr, const unsigned char *&BufEnd, bool VerifyBufferSize)
const std::error_category & llvm::BitcodeErrorCategory ()
std::error_code llvm::make_error_code (BitcodeError E)