MCPcopy Create free account
hub / github.com/GANGE666/xVMP / isBitcode

Function isBitcode

src/include/llvm/Bitcode/BitcodeReader.h:218–222  ·  view source on GitHub ↗

isBitcode - Return true if the given bytes are the magic bytes for LLVM IR bitcode, either with or without a wrapper.

Source from the content-addressed store, hash-verified

216 /// isBitcode - Return true if the given bytes are the magic bytes for
217 /// LLVM IR bitcode, either with or without a wrapper.
218 inline bool isBitcode(const unsigned char *BufPtr,
219 const unsigned char *BufEnd) {
220 return isBitcodeWrapper(BufPtr, BufEnd) ||
221 isRawBitcode(BufPtr, BufEnd);
222 }
223
224 /// SkipBitcodeWrapperHeader - Some systems wrap bc files with a special
225 /// header for padding or other reasons. The format of this header is:

Callers 3

EmbedBitcodeMethod · 0.85
getLazyIRModuleFunction · 0.85
parseIRMethod · 0.85

Calls 2

isBitcodeWrapperFunction · 0.85
isRawBitcodeFunction · 0.85

Tested by

no test coverage detected