|
LLVM
4.0.0
|
#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... | |
Definition at line 25 of file BitcodeWriter.h.
| BitcodeWriter::BitcodeWriter | ( | SmallVectorImpl< char > & | Buffer | ) |
Create a BitcodeWriter that writes to Buffer.
Definition at line 3879 of file BitcodeWriter.cpp.
References writeBitcodeHeader().
|
default |
| 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().
1.8.6