LLVM  4.0.0
Public Member Functions | List of all members
llvm::BitcodeWriter Class Reference

#include <BitcodeWriter.h>

Public Member Functions

 BitcodeWriter (SmallVectorImpl< char > &Buffer)
 Create a BitcodeWriter that writes to Buffer. More...
 
 ~BitcodeWriter ()
 
void writeModule (const Module *M, bool ShouldPreserveUseListOrder=false, const ModuleSummaryIndex *Index=nullptr, bool GenerateHash=false)
 Write the specified module to the buffer specified at construction time. More...
 

Detailed Description

Definition at line 25 of file BitcodeWriter.h.

Constructor & Destructor Documentation

BitcodeWriter::BitcodeWriter ( SmallVectorImpl< char > &  Buffer)

Create a BitcodeWriter that writes to Buffer.

Definition at line 3879 of file BitcodeWriter.cpp.

References writeBitcodeHeader().

BitcodeWriter::~BitcodeWriter ( )
default

Member Function Documentation

void BitcodeWriter::writeModule ( const Module M,
bool  ShouldPreserveUseListOrder = false,
const ModuleSummaryIndex Index = nullptr,
bool  GenerateHash = false 
)

Write the specified module to the buffer specified at construction time.

If ShouldPreserveUseListOrder, encode the use-list order for each Value in M. These will be reconstructed exactly when M is deserialized.

If Index is supplied, the bitcode will contain the summary index (currently for use in ThinLTO optimization).

GenerateHash enables hashing the Module and including the hash in the bitcode (currently for use in ThinLTO incremental build).

Definition at line 3886 of file BitcodeWriter.cpp.

Referenced by llvm::WriteBitcodeToFile().


The documentation for this class was generated from the following files: