LLVM API Documentation

BitcodeReader.cpp File Reference

#include "llvm/Bitcode/ReaderWriter.h"
#include "BitcodeReader.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/InlineAsm.h"
#include "llvm/Instructions.h"
#include "llvm/LLVMContext.h"
#include "llvm/Metadata.h"
#include "llvm/Module.h"
#include "llvm/Operator.h"
#include "llvm/AutoUpgrade.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/OperandTraits.h"

Include dependency graph for BitcodeReader.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm

Classes

struct  llvm::OperandTraits< ConstantPlaceHolder >

Functions

template<typename StrTy>
static bool ConvertToString (SmallVector< uint64_t, 64 > &Record, unsigned Idx, StrTy &Result)
static GlobalValue::LinkageTypes GetDecodedLinkage (unsigned Val)
static GlobalValue::VisibilityTypes GetDecodedVisibility (unsigned Val)
static int GetDecodedCastOpcode (unsigned Val)
static int GetDecodedBinaryOpcode (unsigned Val, const Type *Ty)
static uint64_t DecodeSignRotatedValue (uint64_t V)
static void SetOptimizationFlags (Value *V, uint64_t Flags)
ModuleProvider * llvm::getBitcodeModuleProvider (MemoryBuffer *Buffer, LLVMContext &Context, std::string *ErrMsg=0)
Module * llvm::ParseBitcodeFile (MemoryBuffer *Buffer, LLVMContext &Context, std::string *ErrMsg=0)


Function Documentation

template<typename StrTy>
static bool ConvertToString ( SmallVector< uint64_t, 64 > &  Record,
unsigned  Idx,
StrTy &  Result 
) [inline, static]

ConvertToString - Convert a string from a record into an std::string, return true on failure.

Definition at line 52 of file BitcodeReader.cpp.

References llvm::SmallVectorImpl< T >::size().

static uint64_t DecodeSignRotatedValue ( uint64_t  V  )  [static]

DecodeSignRotatedValue - Decode a signed value stored with the sign bit in the LSB for dense VBR encoding.

Definition at line 836 of file BitcodeReader.cpp.

static int GetDecodedBinaryOpcode ( unsigned  Val,
const Type *  Ty 
) [static]

static int GetDecodedCastOpcode ( unsigned  Val  )  [static]

static GlobalValue::LinkageTypes GetDecodedLinkage ( unsigned  Val  )  [static]

static GlobalValue::VisibilityTypes GetDecodedVisibility ( unsigned  Val  )  [static]

static void SetOptimizationFlags ( Value *  V,
uint64_t  Flags 
) [static]