Lines Matching refs:ModuleFile
189 virtual void ReadCounter(const serialization::ModuleFile &M, in ReadCounter()
261 void ReadCounter(const serialization::ModuleFile &M, unsigned Value) override;
293 void ReadCounter(const serialization::ModuleFile &M, unsigned Value) override;
391 using ModuleFile = serialization::ModuleFile; variable
448 ContinuousRangeMap<uint64_t, ModuleFile*, 4> GlobalBitOffsetsMap;
451 ContinuousRangeMap<unsigned, ModuleFile*, 64> GlobalSLocEntryMap;
454 ContinuousRangeMap<unsigned, ModuleFile *, 64>;
467 ContinuousRangeMap<serialization::TypeID, ModuleFile *, 4>;
481 ContinuousRangeMap<serialization::DeclID, ModuleFile *, 4>;
487 using FileOffset = std::pair<ModuleFile *, uint64_t>;
548 ModuleFile *Mod = nullptr;
552 FileDeclsInfo(ModuleFile *Mod, ArrayRef<serialization::LocalDeclID> Decls) in FileDeclsInfo()
564 llvm::DenseMap<const DeclContext*, std::pair<ModuleFile*, LexicalContents>>
568 std::vector<std::pair<ModuleFile*, LexicalContents>> TULexicalDecls;
579 ModuleFile *Mod;
606 bool ReadLexicalDeclContextStorage(ModuleFile &M,
611 bool ReadVisibleDeclContextStorage(ModuleFile &M,
624 ContinuousRangeMap<serialization::IdentID, ModuleFile *, 4>;
648 ContinuousRangeMap<serialization::MacroID, ModuleFile *, 4>;
662 ContinuousRangeMap<serialization::SubmoduleID, ModuleFile *, 4>;
680 ModuleFile *File;
710 ContinuousRangeMap<serialization::SelectorID, ModuleFile *, 4>;
725 ModuleFile *M;
729 PendingMacroInfo(ModuleFile *M, uint32_t MacroDirectivesOffset) in PendingMacroInfo()
741 ContinuousRangeMap<unsigned, ModuleFile *, 4>;
749 ContinuousRangeMap<unsigned, ModuleFile *, 4>;
904 SmallVector<std::pair<ModuleFile *, SmallVector<uint64_t, 1>>, 4>
1218 Stmt *ReadStmtFromStream(ModuleFile &F);
1231 InputFileInfo readInputFileInfo(ModuleFile &F, unsigned ID);
1235 serialization::InputFile getInputFile(ModuleFile &F, unsigned ID,
1239 void ResolveImportedPath(ModuleFile &M, std::string &Filename);
1278 ModuleFile *Mod;
1279 ModuleFile *ImportedBy;
1282 ImportedModule(ModuleFile *Mod, in ImportedModule()
1283 ModuleFile *ImportedBy, in ImportedModule()
1289 SourceLocation ImportLoc, ModuleFile *ImportedBy,
1294 ASTReadResult ReadControlBlock(ModuleFile &F,
1296 const ModuleFile *ImportedBy,
1307 ASTReadResult readUnhashedControlBlock(ModuleFile &F, bool WasImportedBy,
1311 readUnhashedControlBlockImpl(ModuleFile *F, llvm::StringRef StreamData,
1317 ASTReadResult ReadASTBlock(ModuleFile &F, unsigned ClientLoadCapabilities);
1318 ASTReadResult ReadExtensionBlock(ModuleFile &F);
1319 void ReadModuleOffsetMap(ModuleFile &F) const;
1320 bool ParseLineTable(ModuleFile &F, const RecordData &Record);
1321 bool ReadSourceManagerBlock(ModuleFile &F);
1323 SourceLocation getImportLocation(ModuleFile *F);
1324 ASTReadResult ReadModuleMapFileBlock(RecordData &Record, ModuleFile &F,
1325 const ModuleFile *ImportedBy,
1327 ASTReadResult ReadSubmoduleBlock(ModuleFile &F,
1346 ModuleFile *F;
1349 RecordLocation(ModuleFile *M, uint64_t O) : F(M), Offset(O) {} in RecordLocation()
1371 uint64_t getGlobalBitOffset(ModuleFile &M, uint64_t LocalOffset);
1390 std::pair<ModuleFile *, unsigned>
1396 getModulePreprocessedEntities(ModuleFile &Mod) const;
1405 ModuleFile *Mod = nullptr;
1410 ModuleDeclIterator(ASTReader *Reader, ModuleFile *Mod, in ModuleDeclIterator()
1427 getModuleFileLevelDecls(ModuleFile &Mod);
1788 QualType getLocalType(ModuleFile &F, unsigned LocalID);
1791 serialization::TypeID getGlobalTypeID(ModuleFile &F, unsigned LocalID) const;
1795 QualType readType(ModuleFile &F, const RecordData &Record, unsigned &Idx) { in readType()
1804 serialization::DeclID getGlobalDeclID(ModuleFile &F,
1808 bool isDeclIDFromModule(serialization::GlobalDeclID ID, ModuleFile &M) const;
1812 ModuleFile *getOwningModuleFile(const Decl *D);
1831 Decl *GetLocalDecl(ModuleFile &F, uint32_t LocalID) { in GetLocalDecl()
1839 T *GetLocalDeclAs(ModuleFile &F, uint32_t LocalID) { in GetLocalDeclAs()
1849 mapGlobalIDToModuleFileGlobalID(ModuleFile &M,
1856 serialization::DeclID ReadDeclID(ModuleFile &F, const RecordData &Record,
1861 Decl *ReadDecl(ModuleFile &F, const RecordData &R, unsigned &I) { in ReadDecl()
1871 T *ReadDeclAs(ModuleFile &F, const RecordData &R, unsigned &I) { in ReadDeclAs()
2040 IdentifierInfo *readIdentifier(ModuleFile &M, const RecordData &Record, in readIdentifier()
2052 IdentifierInfo *getLocalIdentifier(ModuleFile &M, unsigned LocalID);
2054 serialization::IdentifierID getGlobalIdentifierID(ModuleFile &M,
2064 serialization::MacroID getGlobalMacroID(ModuleFile &M, unsigned LocalID);
2076 getGlobalSubmoduleID(ModuleFile &M, unsigned LocalID);
2089 ModuleFile *getLocalModuleFile(ModuleFile &M, unsigned ID);
2092 unsigned getModuleFileID(ModuleFile *M);
2101 Selector getLocalSelector(ModuleFile &M, unsigned LocalID);
2108 Selector ReadSelector(ModuleFile &M, const RecordData &Record, unsigned &Idx) { in ReadSelector()
2114 serialization::SelectorID getGlobalSelectorID(ModuleFile &F,
2127 SourceLocation ReadSourceLocation(ModuleFile &ModuleFile, uint32_t Raw) const { in ReadSourceLocation() argument
2129 return TranslateSourceLocation(ModuleFile, Loc); in ReadSourceLocation()
2134 SourceLocation TranslateSourceLocation(ModuleFile &ModuleFile, in TranslateSourceLocation() argument
2136 if (!ModuleFile.ModuleOffsetMap.empty()) in TranslateSourceLocation()
2137 ReadModuleOffsetMap(ModuleFile); in TranslateSourceLocation()
2138 assert(ModuleFile.SLocRemap.find(Loc.getOffset()) != in TranslateSourceLocation()
2139 ModuleFile.SLocRemap.end() && in TranslateSourceLocation()
2141 int Remap = ModuleFile.SLocRemap.find(Loc.getOffset())->second; in TranslateSourceLocation()
2146 SourceLocation ReadSourceLocation(ModuleFile &ModuleFile, in ReadSourceLocation() argument
2149 return ReadSourceLocation(ModuleFile, Record[Idx++]); in ReadSourceLocation()
2153 SourceRange ReadSourceRange(ModuleFile &F,
2165 std::string ReadPath(ModuleFile &F, const RecordData &Record, unsigned &Idx);
2179 CXXTemporary *ReadCXXTemporary(ModuleFile &F, const RecordData &Record,
2183 Stmt *ReadStmt(ModuleFile &F);
2186 Expr *ReadExpr(ModuleFile &F);
2202 Token ReadToken(ModuleFile &M, const RecordDataImpl &Record, unsigned &Idx);
2205 MacroInfo *ReadMacroRecord(ModuleFile &F, uint64_t Offset);
2210 getGlobalPreprocessedEntityID(ModuleFile &M, unsigned LocalID) const;
2218 void addPendingMacro(IdentifierInfo *II, ModuleFile *M,
2268 serialization::ModuleFile *>, 8> CommentsCursors;
2274 void visitInputFiles(serialization::ModuleFile &MF,
2281 void visitTopLevelModuleMaps(serialization::ModuleFile &MF,