Home
last modified time | relevance | path

Searched refs:BufPtr (Results 1 – 2 of 2) sorted by relevance

/frameworks/compile/slang/BitWriter_2_9/
DReaderWriter_2_9.h70 static inline bool isBitcodeWrapper(const unsigned char *BufPtr, in isBitcodeWrapper() argument
74 return BufPtr != BufEnd && in isBitcodeWrapper()
75 BufPtr[0] == 0xDE && in isBitcodeWrapper()
76 BufPtr[1] == 0xC0 && in isBitcodeWrapper()
77 BufPtr[2] == 0x17 && in isBitcodeWrapper()
78 BufPtr[3] == 0x0B; in isBitcodeWrapper()
84 static inline bool isRawBitcode(const unsigned char *BufPtr, in isRawBitcode() argument
88 return BufPtr != BufEnd && in isRawBitcode()
89 BufPtr[0] == 'B' && in isRawBitcode()
90 BufPtr[1] == 'C' && in isRawBitcode()
[all …]
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.cpp1819 unsigned char *BufPtr = (unsigned char *)Buffer->getBufferStart(); in ParseBitcodeInto() local
1820 unsigned char *BufEnd = BufPtr+Buffer->getBufferSize(); in ParseBitcodeInto()
1823 if (!isRawBitcode(BufPtr, BufEnd) && !isBitcodeWrapper(BufPtr, BufEnd)) in ParseBitcodeInto()
1831 if (isBitcodeWrapper(BufPtr, BufEnd)) in ParseBitcodeInto()
1832 if (SkipBitcodeWrapperHeader(BufPtr, BufEnd)) in ParseBitcodeInto()
1835 StreamFile.init(BufPtr, BufEnd); in ParseBitcodeInto()
1950 unsigned char *BufPtr = (unsigned char *)Buffer->getBufferStart(); in ParseTriple() local
1951 unsigned char *BufEnd = BufPtr+Buffer->getBufferSize(); in ParseTriple()
1955 if (isBitcodeWrapper(BufPtr, BufEnd)) in ParseTriple()
1956 if (SkipBitcodeWrapperHeader(BufPtr, BufEnd)) in ParseTriple()
[all …]