Lines Matching refs:SemaRef

3390 void ASTWriter::WriteSelectors(Sema &SemaRef) {  in WriteSelectors()  argument
3394 if (SemaRef.MethodPool.empty() && SelectorIDs.empty()) in WriteSelectors()
3408 Sema::GlobalMethodPool::iterator F = SemaRef.MethodPool.find(S); in WriteSelectors()
3414 if (F != SemaRef.MethodPool.end()) { in WriteSelectors()
3490 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) { in WriteReferencedSelectorsPool() argument
3493 if (SemaRef.ReferencedSelectors.empty()) in WriteReferencedSelectorsPool()
3502 for (auto &SelectorAndLocation : SemaRef.ReferencedSelectors) { in WriteReferencedSelectorsPool()
4260 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) { in WriteOpenCLExtensions() argument
4261 if (!SemaRef.Context.getLangOpts().OpenCL) in WriteOpenCLExtensions()
4264 const OpenCLOptions &Opts = SemaRef.getOpenCLOptions(); in WriteOpenCLExtensions()
4277 void ASTWriter::WriteOpenCLExtensionTypes(Sema &SemaRef) { in WriteOpenCLExtensionTypes() argument
4278 if (!SemaRef.Context.getLangOpts().OpenCL) in WriteOpenCLExtensionTypes()
4282 for (const auto &I : SemaRef.OpenCLTypeExtMap) { in WriteOpenCLExtensionTypes()
4292 void ASTWriter::WriteOpenCLExtensionDecls(Sema &SemaRef) { in WriteOpenCLExtensionDecls() argument
4293 if (!SemaRef.Context.getLangOpts().OpenCL) in WriteOpenCLExtensionDecls()
4297 for (const auto &I : SemaRef.OpenCLDeclExtMap) { in WriteOpenCLExtensionDecls()
4306 void ASTWriter::WriteCUDAPragmas(Sema &SemaRef) { in WriteCUDAPragmas() argument
4307 if (SemaRef.ForceCUDAHostDeviceDepth > 0) { in WriteCUDAPragmas()
4308 RecordData::value_type Record[] = {SemaRef.ForceCUDAHostDeviceDepth}; in WriteCUDAPragmas()
4365 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) { in WriteLateParsedTemplates() argument
4366 Sema::LateParsedTemplateMapT &LPTMap = SemaRef.LateParsedTemplateMap; in WriteLateParsedTemplates()
4387 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) { in WriteOptimizePragmaOptions() argument
4389 SourceLocation PragmaLoc = SemaRef.getOptimizeOffPragmaLocation(); in WriteOptimizePragmaOptions()
4395 void ASTWriter::WriteMSStructPragmaOptions(Sema &SemaRef) { in WriteMSStructPragmaOptions() argument
4397 Record.push_back(SemaRef.MSStructPragmaOn ? PMSST_ON : PMSST_OFF); in WriteMSStructPragmaOptions()
4403 void ASTWriter::WriteMSPointersToMembersPragmaOptions(Sema &SemaRef) { in WriteMSPointersToMembersPragmaOptions() argument
4405 Record.push_back(SemaRef.MSPointerToMemberRepresentationMethod); in WriteMSPointersToMembersPragmaOptions()
4406 AddSourceLocation(SemaRef.ImplicitMSInheritanceAttrLoc, Record); in WriteMSPointersToMembersPragmaOptions()
4411 void ASTWriter::WritePackPragmaOptions(Sema &SemaRef) { in WritePackPragmaOptions() argument
4418 Record.push_back(SemaRef.PackStack.CurrentValue); in WritePackPragmaOptions()
4419 AddSourceLocation(SemaRef.PackStack.CurrentPragmaLocation, Record); in WritePackPragmaOptions()
4420 Record.push_back(SemaRef.PackStack.Stack.size()); in WritePackPragmaOptions()
4421 for (const auto &StackEntry : SemaRef.PackStack.Stack) { in WritePackPragmaOptions()
4430 void ASTWriter::WriteModuleFileExtension(Sema &SemaRef, in WriteModuleFileExtension() argument
4459 Writer.writeExtensionContents(SemaRef, Stream); in WriteModuleFileExtension()
4595 ASTFileSignature ASTWriter::WriteAST(Sema &SemaRef, in WriteAST() argument
4611 Context = &SemaRef.Context; in WriteAST()
4612 PP = &SemaRef.PP; in WriteAST()
4615 WriteASTCore(SemaRef, isysroot, OutputFile, WritingModule); in WriteAST()
4622 if (SemaRef.Context.getLangOpts().ImplicitModules && WritingModule) { in WriteAST()
4640 ASTFileSignature ASTWriter::WriteASTCore(Sema &SemaRef, StringRef isysroot, in WriteASTCore() argument
4651 ASTContext &Context = SemaRef.Context; in WriteASTCore()
4652 Preprocessor &PP = SemaRef.PP; in WriteASTCore()
4690 AddLazyVectorDecls(*this, SemaRef.TentativeDefinitions, TentativeDefinitions); in WriteASTCore()
4695 AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls, in WriteASTCore()
4702 AddLazyVectorDecls(*this, SemaRef.DelegatingCtorDecls, DelegatingCtorDecls); in WriteASTCore()
4708 for (auto &WeakUndeclaredIdentifier : SemaRef.WeakUndeclaredIdentifiers) { in WriteASTCore()
4719 AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls); in WriteASTCore()
4723 if (!SemaRef.VTableUses.empty()) { in WriteASTCore()
4724 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I) { in WriteASTCore()
4725 AddDeclRef(SemaRef.VTableUses[I].first, VTableUses); in WriteASTCore()
4726 AddSourceLocation(SemaRef.VTableUses[I].second, VTableUses); in WriteASTCore()
4727 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]); in WriteASTCore()
4733 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates) in WriteASTCore()
4738 for (const auto &I : SemaRef.PendingInstantiations) { in WriteASTCore()
4742 assert(SemaRef.PendingLocalImplicitInstantiations.empty() && in WriteASTCore()
4747 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) { in WriteASTCore()
4748 AddDeclRef(SemaRef.getStdNamespace(), SemaDeclRefs); in WriteASTCore()
4749 AddDeclRef(SemaRef.getStdBadAlloc(), SemaDeclRefs); in WriteASTCore()
4750 AddDeclRef(SemaRef.getStdAlignValT(), SemaDeclRefs); in WriteASTCore()
4760 for (const auto &I : SemaRef.KnownNamespaces) { in WriteASTCore()
4769 SemaRef.getUndefinedButUsed(Undefined); in WriteASTCore()
4781 SemaRef.getMismatchingDeleteExpressions()) { in WriteASTCore()
4877 for (IdentifierResolver::iterator D = SemaRef.IdResolver.begin(II), in WriteASTCore()
4878 DEnd = SemaRef.IdResolver.end(); in WriteASTCore()
4896 SemaRef.updateOutOfDateSelector(Selector); in WriteASTCore()
5009 WriteSelectors(SemaRef); in WriteASTCore()
5010 WriteReferencedSelectorsPool(SemaRef); in WriteASTCore()
5011 WriteLateParsedTemplates(SemaRef); in WriteASTCore()
5012 WriteIdentifierTable(PP, SemaRef.IdResolver, isModule); in WriteASTCore()
5013 WriteFPPragmaOptions(SemaRef.getFPOptions()); in WriteASTCore()
5014 WriteOpenCLExtensions(SemaRef); in WriteASTCore()
5015 WriteOpenCLExtensionTypes(SemaRef); in WriteASTCore()
5016 WriteCUDAPragmas(SemaRef); in WriteASTCore()
5024 WriteOpenCLExtensionDecls(SemaRef); in WriteASTCore()
5134 WriteOptimizePragmaOptions(SemaRef); in WriteASTCore()
5135 WriteMSStructPragmaOptions(SemaRef); in WriteASTCore()
5136 WriteMSPointersToMembersPragmaOptions(SemaRef); in WriteASTCore()
5138 WritePackPragmaOptions(SemaRef); in WriteASTCore()
5148 WriteModuleFileExtension(SemaRef, *ExtWriter); in WriteASTCore()