Lines Matching defs:Cursor
1158 BitstreamCursor &Cursor,
1163 SavedStreamPosition SavedPosition(Cursor);
1164 if (llvm::Error Err = Cursor.JumpToBit(Offset)) {
1171 Expected<unsigned> MaybeCode = Cursor.ReadCode();
1178 Expected<unsigned> MaybeRecCode = Cursor.readRecord(Code, Record, &Blob);
1208 BitstreamCursor &Cursor,
1213 SavedStreamPosition SavedPosition(Cursor);
1214 if (llvm::Error Err = Cursor.JumpToBit(Offset)) {
1221 Expected<unsigned> MaybeCode = Cursor.ReadCode();
1228 Expected<unsigned> MaybeRecCode = Cursor.readRecord(Code, Record, &Blob);
1323 // Set the source-location entry cursor to the current position in
1324 // the stream. This cursor will be used to read the contents of the
1630 /// Enter a subblock of the specified BlockID with the specified cursor. Read
1631 /// the abbreviations that are at the top of the block and then leave the cursor
1633 bool ASTReader::ReadBlockAbbrevs(BitstreamCursor &Cursor, unsigned BlockID,
1635 if (llvm::Error Err = Cursor.EnterSubBlock(BlockID)) {
1642 *StartOfBlockOffset = Cursor.GetCurrentBitNo();
1645 uint64_t Offset = Cursor.GetCurrentBitNo();
1646 Expected<unsigned> MaybeCode = Cursor.ReadCode();
1656 if (llvm::Error Err = Cursor.JumpToBit(Offset)) {
1663 if (llvm::Error Err = Cursor.ReadAbbrevRecord()) {
1702 // pop it (removing all the abbreviations from the cursor) since we want to
1954 BitstreamCursor Cursor = MacroCursor;
1955 if (llvm::Error Err = Cursor.JumpToBit(I.MacroStartOffset)) {
1962 Expected<llvm::BitstreamEntry> MaybeE = Cursor.advanceSkippingSubblocks();
1979 Expected<unsigned> MaybeRecord = Cursor.readRecord(E.ID, Record);
2101 BitstreamCursor &Cursor = M.MacroCursor;
2102 SavedStreamPosition SavedPosition(Cursor);
2104 Cursor.JumpToBit(M.MacroOffsetsBase + PMInfo.MacroDirectivesOffset)) {
2122 Cursor.advance(BitstreamCursor::AF_DontPopBlockAtEnd);
2135 Expected<unsigned> MaybePP = Cursor.readRecord(Entry.ID, Record);
2247 BitstreamCursor &Cursor = F.InputFilesCursor;
2248 SavedStreamPosition SavedPosition(Cursor);
2249 if (llvm::Error Err = Cursor.JumpToBit(F.InputFileOffsets[ID - 1])) {
2254 Expected<unsigned> MaybeCode = Cursor.ReadCode();
2263 if (Expected<unsigned> Maybe = Cursor.readRecord(Code, Record, &Blob))
2281 Expected<llvm::BitstreamEntry> MaybeEntry = Cursor.advance();
2289 if (Expected<unsigned> Maybe = Cursor.readRecord(Entry.ID, Record))
2315 BitstreamCursor &Cursor = F.InputFilesCursor;
2316 SavedStreamPosition SavedPosition(Cursor);
2317 if (llvm::Error Err = Cursor.JumpToBit(F.InputFileOffsets[ID - 1])) {
2991 // DeclsCursor cursor to point into it. Clone our current bitcode
2992 // cursor to it, enter the block and read the abbrevs in that block.
2993 // With the main cursor, we just skip over it.
4160 /// Given a cursor at the start of an AST file, scan ahead and drop the
4161 /// cursor into the start of the given block ID, returning false on success and
4163 static bool SkipCursorToBlock(BitstreamCursor &Cursor, unsigned BlockID) {
4165 Expected<llvm::BitstreamEntry> MaybeEntry = Cursor.advance();
4180 if (Expected<unsigned> Skipped = Cursor.skipRecord(Entry.ID))
4190 if (llvm::Error Err = Cursor.EnterSubBlock(BlockID)) {
4199 if (llvm::Error Err = Cursor.SkipBlock()) {
5295 BitstreamCursor &Cursor = InputFilesCursor;
5296 SavedStreamPosition SavedPosition(Cursor);
5297 if (llvm::Error Err = Cursor.JumpToBit(InputFileOffs[I])) {
5302 Expected<unsigned> MaybeCode = Cursor.ReadCode();
5313 Cursor.readRecord(Code, Record, &Blob);
6369 /// Get the correct cursor and offset for loading a type.
7222 BitstreamCursor &Cursor = Loc.F->DeclsCursor;
7223 SavedStreamPosition SavedPosition(Cursor);
7224 if (llvm::Error Err = Cursor.JumpToBit(Loc.Offset)) {
7230 Expected<unsigned> MaybeCode = Cursor.ReadCode();
7238 Expected<unsigned> MaybeRecCode = Record.readRecord(Cursor, Code);
7256 BitstreamCursor &Cursor = Loc.F->DeclsCursor;
7257 SavedStreamPosition SavedPosition(Cursor);
7258 if (llvm::Error Err = Cursor.JumpToBit(Loc.Offset)) {
7264 Expected<unsigned> MaybeCode = Cursor.ReadCode();
7272 Expected<unsigned> MaybeRecCode = Record.readRecord(Cursor, Code);
9054 BitstreamCursor &Cursor = I->first;
9056 SavedStreamPosition SavedPosition(Cursor);
9061 Cursor.advanceSkippingSubblocks(
9083 Expected<unsigned> MaybeComment = Cursor.readRecord(Entry.ID, Record);
11665 Expected<unsigned> ASTRecordReader::readRecord(llvm::BitstreamCursor &Cursor,
11669 return Cursor.readRecord(AbbrevID, Record);