LLVM API Documentation
#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"
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) |
| 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.
Definition at line 108 of file BitcodeReader.cpp.
References llvm::APIntOps::And(), llvm::bitc::BINOP_ADD, llvm::bitc::BINOP_AND, llvm::bitc::BINOP_ASHR, llvm::bitc::BINOP_LSHR, llvm::bitc::BINOP_MUL, llvm::bitc::BINOP_OR, llvm::bitc::BINOP_SDIV, llvm::bitc::BINOP_SHL, llvm::bitc::BINOP_SREM, llvm::bitc::BINOP_SUB, llvm::bitc::BINOP_UDIV, llvm::bitc::BINOP_UREM, llvm::bitc::BINOP_XOR, llvm::Type::isFPOrFPVector(), LShr, llvm::APIntOps::Or(), and llvm::APIntOps::Xor().
| static int GetDecodedCastOpcode | ( | unsigned | Val | ) | [static] |
Definition at line 91 of file BitcodeReader.cpp.
References BitCast, llvm::bitc::CAST_BITCAST, llvm::bitc::CAST_FPEXT, llvm::bitc::CAST_FPTOSI, llvm::bitc::CAST_FPTOUI, llvm::bitc::CAST_FPTRUNC, llvm::bitc::CAST_INTTOPTR, llvm::bitc::CAST_PTRTOINT, llvm::bitc::CAST_SEXT, llvm::bitc::CAST_SITOFP, llvm::bitc::CAST_TRUNC, llvm::bitc::CAST_UITOFP, llvm::bitc::CAST_ZEXT, FPToUI, FPTrunc, PtrToInt, llvm::Attribute::SExt, UIToFP, and ZExt.
| static GlobalValue::LinkageTypes GetDecodedLinkage | ( | unsigned | Val | ) | [static] |
Definition at line 62 of file BitcodeReader.cpp.
References llvm::GlobalValue::AppendingLinkage, llvm::GlobalValue::AvailableExternallyLinkage, llvm::GlobalValue::CommonLinkage, llvm::GlobalValue::DLLExportLinkage, llvm::GlobalValue::DLLImportLinkage, llvm::GlobalValue::ExternalLinkage, llvm::GlobalValue::ExternalWeakLinkage, llvm::GlobalValue::InternalLinkage, llvm::GlobalValue::LinkerPrivateLinkage, llvm::GlobalValue::LinkOnceAnyLinkage, llvm::GlobalValue::LinkOnceODRLinkage, llvm::GlobalValue::PrivateLinkage, llvm::GlobalValue::WeakAnyLinkage, and llvm::GlobalValue::WeakODRLinkage.
| static GlobalValue::VisibilityTypes GetDecodedVisibility | ( | unsigned | Val | ) | [static] |
Definition at line 82 of file BitcodeReader.cpp.
References llvm::GlobalValue::DefaultVisibility, llvm::GlobalValue::HiddenVisibility, and llvm::GlobalValue::ProtectedVisibility.
| static void SetOptimizationFlags | ( | Value * | V, | |
| uint64_t | Flags | |||
| ) | [static] |
Definition at line 883 of file BitcodeReader.cpp.
References llvm::bitc::OBO_NO_SIGNED_WRAP, llvm::bitc::OBO_NO_UNSIGNED_WRAP, and llvm::bitc::SDIV_EXACT.