Lines Matching refs:SemaRef
3100 void ASTWriter::WriteSelectors(Sema &SemaRef) { in WriteSelectors() argument
3104 if (SemaRef.MethodPool.empty() && SelectorIDs.empty()) in WriteSelectors()
3118 Sema::GlobalMethodPool::iterator F = SemaRef.MethodPool.find(S); in WriteSelectors()
3124 if (F != SemaRef.MethodPool.end()) { in WriteSelectors()
3200 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) { in WriteReferencedSelectorsPool() argument
3203 if (SemaRef.ReferencedSelectors.empty()) in WriteReferencedSelectorsPool()
3212 for (auto &SelectorAndLocation : SemaRef.ReferencedSelectors) { in WriteReferencedSelectorsPool()
3950 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) { in WriteOpenCLExtensions() argument
3951 if (!SemaRef.Context.getLangOpts().OpenCL) in WriteOpenCLExtensions()
3954 const OpenCLOptions &Opts = SemaRef.getOpenCLOptions(); in WriteOpenCLExtensions()
3968 void ASTWriter::WriteCUDAPragmas(Sema &SemaRef) { in WriteCUDAPragmas() argument
3969 if (SemaRef.ForceCUDAHostDeviceDepth > 0) { in WriteCUDAPragmas()
3970 RecordData::value_type Record[] = {SemaRef.ForceCUDAHostDeviceDepth}; in WriteCUDAPragmas()
4027 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) { in WriteLateParsedTemplates() argument
4028 Sema::LateParsedTemplateMapT &LPTMap = SemaRef.LateParsedTemplateMap; in WriteLateParsedTemplates()
4049 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) { in WriteOptimizePragmaOptions() argument
4051 SourceLocation PragmaLoc = SemaRef.getOptimizeOffPragmaLocation(); in WriteOptimizePragmaOptions()
4057 void ASTWriter::WriteMSStructPragmaOptions(Sema &SemaRef) { in WriteMSStructPragmaOptions() argument
4059 Record.push_back(SemaRef.MSStructPragmaOn ? PMSST_ON : PMSST_OFF); in WriteMSStructPragmaOptions()
4065 void ASTWriter::WriteMSPointersToMembersPragmaOptions(Sema &SemaRef) { in WriteMSPointersToMembersPragmaOptions() argument
4067 Record.push_back(SemaRef.MSPointerToMemberRepresentationMethod); in WriteMSPointersToMembersPragmaOptions()
4068 AddSourceLocation(SemaRef.ImplicitMSInheritanceAttrLoc, Record); in WriteMSPointersToMembersPragmaOptions()
4073 void ASTWriter::WritePackPragmaOptions(Sema &SemaRef) { in WritePackPragmaOptions() argument
4080 AddAlignPackInfo(SemaRef.AlignPackStack.CurrentValue, Record); in WritePackPragmaOptions()
4081 AddSourceLocation(SemaRef.AlignPackStack.CurrentPragmaLocation, Record); in WritePackPragmaOptions()
4082 Record.push_back(SemaRef.AlignPackStack.Stack.size()); in WritePackPragmaOptions()
4083 for (const auto &StackEntry : SemaRef.AlignPackStack.Stack) { in WritePackPragmaOptions()
4093 void ASTWriter::WriteFloatControlPragmaOptions(Sema &SemaRef) { in WriteFloatControlPragmaOptions() argument
4100 Record.push_back(SemaRef.FpPragmaStack.CurrentValue.getAsOpaqueInt()); in WriteFloatControlPragmaOptions()
4101 AddSourceLocation(SemaRef.FpPragmaStack.CurrentPragmaLocation, Record); in WriteFloatControlPragmaOptions()
4102 Record.push_back(SemaRef.FpPragmaStack.Stack.size()); in WriteFloatControlPragmaOptions()
4103 for (const auto &StackEntry : SemaRef.FpPragmaStack.Stack) { in WriteFloatControlPragmaOptions()
4112 void ASTWriter::WriteModuleFileExtension(Sema &SemaRef, in WriteModuleFileExtension() argument
4141 Writer.writeExtensionContents(SemaRef, Stream); in WriteModuleFileExtension()
4283 ASTFileSignature ASTWriter::WriteAST(Sema &SemaRef, in WriteAST() argument
4300 Context = &SemaRef.Context; in WriteAST()
4301 PP = &SemaRef.PP; in WriteAST()
4304 WriteASTCore(SemaRef, isysroot, OutputFile, WritingModule); in WriteAST()
4329 ASTFileSignature ASTWriter::WriteASTCore(Sema &SemaRef, StringRef isysroot, in WriteASTCore() argument
4340 ASTContext &Context = SemaRef.Context; in WriteASTCore()
4341 Preprocessor &PP = SemaRef.PP; in WriteASTCore()
4381 AddLazyVectorDecls(*this, SemaRef.TentativeDefinitions, TentativeDefinitions); in WriteASTCore()
4386 AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls, in WriteASTCore()
4393 AddLazyVectorDecls(*this, SemaRef.DelegatingCtorDecls, DelegatingCtorDecls); in WriteASTCore()
4399 for (auto &WeakUndeclaredIdentifier : SemaRef.WeakUndeclaredIdentifiers) { in WriteASTCore()
4410 AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls); in WriteASTCore()
4414 if (!SemaRef.VTableUses.empty()) { in WriteASTCore()
4415 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I) { in WriteASTCore()
4416 AddDeclRef(SemaRef.VTableUses[I].first, VTableUses); in WriteASTCore()
4417 AddSourceLocation(SemaRef.VTableUses[I].second, VTableUses); in WriteASTCore()
4418 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]); in WriteASTCore()
4424 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates) in WriteASTCore()
4429 for (const auto &I : SemaRef.PendingInstantiations) { in WriteASTCore()
4433 assert(SemaRef.PendingLocalImplicitInstantiations.empty() && in WriteASTCore()
4438 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) { in WriteASTCore()
4439 AddDeclRef(SemaRef.getStdNamespace(), SemaDeclRefs); in WriteASTCore()
4440 AddDeclRef(SemaRef.getStdBadAlloc(), SemaDeclRefs); in WriteASTCore()
4441 AddDeclRef(SemaRef.getStdAlignValT(), SemaDeclRefs); in WriteASTCore()
4451 for (const auto &I : SemaRef.KnownNamespaces) { in WriteASTCore()
4460 SemaRef.getUndefinedButUsed(Undefined); in WriteASTCore()
4472 SemaRef.getMismatchingDeleteExpressions()) { in WriteASTCore()
4571 for (IdentifierResolver::iterator D = SemaRef.IdResolver.begin(II), in WriteASTCore()
4572 DEnd = SemaRef.IdResolver.end(); in WriteASTCore()
4590 SemaRef.updateOutOfDateSelector(Selector); in WriteASTCore()
4671 for (auto *D : SemaRef.DeclsToCheckForDeferredDiags) in WriteASTCore()
4706 WriteSelectors(SemaRef); in WriteASTCore()
4707 WriteReferencedSelectorsPool(SemaRef); in WriteASTCore()
4708 WriteLateParsedTemplates(SemaRef); in WriteASTCore()
4709 WriteIdentifierTable(PP, SemaRef.IdResolver, isModule); in WriteASTCore()
4710 WriteFPPragmaOptions(SemaRef.CurFPFeatureOverrides()); in WriteASTCore()
4711 WriteOpenCLExtensions(SemaRef); in WriteASTCore()
4712 WriteCUDAPragmas(SemaRef); in WriteASTCore()
4831 WriteOptimizePragmaOptions(SemaRef); in WriteASTCore()
4832 WriteMSStructPragmaOptions(SemaRef); in WriteASTCore()
4833 WriteMSPointersToMembersPragmaOptions(SemaRef); in WriteASTCore()
4835 WritePackPragmaOptions(SemaRef); in WriteASTCore()
4836 WriteFloatControlPragmaOptions(SemaRef); in WriteASTCore()
4848 WriteModuleFileExtension(SemaRef, *ExtWriter); in WriteASTCore()