#include "BitReaderTestCode.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/Bitcode/BitcodeReader.h"
#include "llvm/Bitcode/BitcodeWriter.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace {
std::unique_ptr<Module> parseAssembly(LLVMContext &Context,
const char *Assembly) { … }
static void writeModuleToBuffer(std::unique_ptr<Module> Mod,
SmallVectorImpl<char> &Buffer) { … }
static std::unique_ptr<Module> getLazyModuleFromAssembly(LLVMContext &Context,
SmallString<1024> &Mem,
const char *Assembly) { … }
TEST(BitReaderTest, MaterializeFunctionsOutOfOrder) { … }
TEST(BitReaderTest, MaterializeFunctionsStrictFP) { … }
TEST(BitReaderTest, MaterializeConstrainedFPStrictFP) { … }
TEST(BitReaderTest, MaterializeFunctionsForBlockAddr) { … }
TEST(BitReaderTest, MaterializeFunctionsForBlockAddrInFunctionBefore) { … }
TEST(BitReaderTest, MaterializeFunctionsForBlockAddrInFunctionAfter) { … }
static std::string mdToString(Metadata *MD) { … }
static Metadata *getTypeMetadataEntry(unsigned TypeID, LLVMContext &Context,
GetTypeByIDTy GetTypeByID,
GetContainedTypeIDTy GetContainedTypeID) { … }
TEST(BitReaderTest, AccessFunctionTypeInfo) { … }
TEST(BitReaderTest, AccessMetadataTypeInfo) { … }
}