Lines Matching defs:Cursor
999 BitstreamCursor &Cursor,
1002 SavedStreamPosition SavedPosition(Cursor);
1005 Cursor.JumpToBit(Offsets.first);
1009 unsigned Code = Cursor.ReadCode();
1010 unsigned RecCode = Cursor.readRecord(Code, Record, &Blob);
1022 Cursor.JumpToBit(Offsets.second);
1026 unsigned Code = Cursor.ReadCode();
1027 unsigned RecCode = Cursor.readRecord(Code, Record, &Blob);
1112 // Set the source-location entry cursor to the current position in
1113 // the stream. This cursor will be used to read the contents of the
1359 /// specified cursor. Read the abbreviations that are at the top of the block
1360 /// and then leave the cursor pointing into the block.
1361 bool ASTReader::ReadBlockAbbrevs(BitstreamCursor &Cursor, unsigned BlockID) {
1362 if (Cursor.EnterSubBlock(BlockID)) {
1368 uint64_t Offset = Cursor.GetCurrentBitNo();
1369 unsigned Code = Cursor.ReadCode();
1373 Cursor.JumpToBit(Offset);
1376 Cursor.ReadAbbrevRecord();
1407 // pop it (removing all the abbreviations from the cursor) since we want to
1656 BitstreamCursor Cursor = MacroCursor;
1657 Cursor.JumpToBit((*I)->MacroStartOffset);
1661 llvm::BitstreamEntry E = Cursor.advanceSkippingSubblocks();
1673 switch (Cursor.readRecord(E.ID, Record)) {
1874 BitstreamCursor &Cursor = M.MacroCursor;
1875 SavedStreamPosition SavedPosition(Cursor);
1876 Cursor.JumpToBit(Offset);
1879 Cursor.advance(BitstreamCursor::AF_DontPopBlockAtEnd);
1887 (PreprocessorRecordTypes)Cursor.readRecord(Entry.ID, Record);
2116 BitstreamCursor &Cursor = F.InputFilesCursor;
2117 SavedStreamPosition SavedPosition(Cursor);
2118 Cursor.JumpToBit(F.InputFileOffsets[ID-1]);
2120 unsigned Code = Cursor.ReadCode();
2124 unsigned Result = Cursor.readRecord(Code, Record, &Blob);
2162 BitstreamCursor &Cursor = F.InputFilesCursor;
2163 SavedStreamPosition SavedPosition(Cursor);
2164 Cursor.JumpToBit(F.InputFileOffsets[ID-1]);
2373 if (Stream.SkipBlock() || // Skip with the main cursor
2628 // DeclsCursor cursor to point into it. Clone our current bitcode
2629 // cursor to it, enter the block and read the abbrevs in that block.
2630 // With the main cursor, we just skip over it.
2632 if (Stream.SkipBlock() || // Skip with the main cursor.
4102 /// \brief Given a cursor at the start of an AST file, scan ahead and drop the
4103 /// cursor into the start of the given block ID, returning false on success and
4105 static bool SkipCursorToBlock(BitstreamCursor &Cursor, unsigned BlockID) {
4107 llvm::BitstreamEntry Entry = Cursor.advance();
4115 Cursor.skipRecord(Entry.ID);
4120 if (Cursor.EnterSubBlock(BlockID))
4126 if (Cursor.SkipBlock())
4391 BitstreamCursor &Cursor = InputFilesCursor;
4392 SavedStreamPosition SavedPosition(Cursor);
4393 Cursor.JumpToBit(InputFileOffs[I]);
4395 unsigned Code = Cursor.ReadCode();
4399 switch ((InputFileRecordTypes)Cursor.readRecord(Code, Record, &Blob)) {
5215 /// \brief Get the correct cursor and offset for loading a type.
6210 BitstreamCursor &Cursor = Loc.F->DeclsCursor;
6211 SavedStreamPosition SavedPosition(Cursor);
6212 Cursor.JumpToBit(Loc.Offset);
6216 unsigned Code = Cursor.ReadCode();
6217 unsigned RecCode = Cursor.readRecord(Code, Record);
6241 BitstreamCursor &Cursor = Loc.F->DeclsCursor;
6242 SavedStreamPosition SavedPosition(Cursor);
6243 Cursor.JumpToBit(Loc.Offset);
6246 unsigned Code = Cursor.ReadCode();
6247 unsigned RecCode = Cursor.readRecord(Code, Record);
8259 BitstreamCursor &Cursor = I->first;
8261 SavedStreamPosition SavedPosition(Cursor);
8266 Cursor.advanceSkippingSubblocks(BitstreamCursor::AF_DontPopBlockAtEnd);
8282 switch ((CommentRecordTypes)Cursor.readRecord(Entry.ID, Record)) {