Lines Matching refs:SemaRef
3294 void ASTWriter::WriteSelectors(Sema &SemaRef) { in WriteSelectors() argument
3298 if (SemaRef.MethodPool.empty() && SelectorIDs.empty()) in WriteSelectors()
3312 Sema::GlobalMethodPool::iterator F = SemaRef.MethodPool.find(S); in WriteSelectors()
3318 if (F != SemaRef.MethodPool.end()) { in WriteSelectors()
3400 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) { in WriteReferencedSelectorsPool() argument
3403 if (SemaRef.ReferencedSelectors.empty()) in WriteReferencedSelectorsPool()
3412 for (auto &SelectorAndLocation : SemaRef.ReferencedSelectors) { in WriteReferencedSelectorsPool()
4147 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) { in WriteOpenCLExtensions() argument
4148 if (!SemaRef.Context.getLangOpts().OpenCL) in WriteOpenCLExtensions()
4151 const OpenCLOptions &Opts = SemaRef.getOpenCLOptions(); in WriteOpenCLExtensions()
4165 void ASTWriter::WriteCUDAPragmas(Sema &SemaRef) { in WriteCUDAPragmas() argument
4166 if (SemaRef.ForceCUDAHostDeviceDepth > 0) { in WriteCUDAPragmas()
4167 RecordData::value_type Record[] = {SemaRef.ForceCUDAHostDeviceDepth}; in WriteCUDAPragmas()
4224 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) { in WriteLateParsedTemplates() argument
4225 Sema::LateParsedTemplateMapT &LPTMap = SemaRef.LateParsedTemplateMap; in WriteLateParsedTemplates()
4246 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) { in WriteOptimizePragmaOptions() argument
4248 SourceLocation PragmaLoc = SemaRef.getOptimizeOffPragmaLocation(); in WriteOptimizePragmaOptions()
4254 void ASTWriter::WriteMSStructPragmaOptions(Sema &SemaRef) { in WriteMSStructPragmaOptions() argument
4256 Record.push_back(SemaRef.MSStructPragmaOn ? PMSST_ON : PMSST_OFF); in WriteMSStructPragmaOptions()
4262 void ASTWriter::WriteMSPointersToMembersPragmaOptions(Sema &SemaRef) { in WriteMSPointersToMembersPragmaOptions() argument
4264 Record.push_back(SemaRef.MSPointerToMemberRepresentationMethod); in WriteMSPointersToMembersPragmaOptions()
4265 AddSourceLocation(SemaRef.ImplicitMSInheritanceAttrLoc, Record); in WriteMSPointersToMembersPragmaOptions()
4270 void ASTWriter::WritePackPragmaOptions(Sema &SemaRef) { in WritePackPragmaOptions() argument
4277 AddAlignPackInfo(SemaRef.AlignPackStack.CurrentValue, Record); in WritePackPragmaOptions()
4278 AddSourceLocation(SemaRef.AlignPackStack.CurrentPragmaLocation, Record); in WritePackPragmaOptions()
4279 Record.push_back(SemaRef.AlignPackStack.Stack.size()); in WritePackPragmaOptions()
4280 for (const auto &StackEntry : SemaRef.AlignPackStack.Stack) { in WritePackPragmaOptions()
4290 void ASTWriter::WriteFloatControlPragmaOptions(Sema &SemaRef) { in WriteFloatControlPragmaOptions() argument
4297 Record.push_back(SemaRef.FpPragmaStack.CurrentValue.getAsOpaqueInt()); in WriteFloatControlPragmaOptions()
4298 AddSourceLocation(SemaRef.FpPragmaStack.CurrentPragmaLocation, Record); in WriteFloatControlPragmaOptions()
4299 Record.push_back(SemaRef.FpPragmaStack.Stack.size()); in WriteFloatControlPragmaOptions()
4300 for (const auto &StackEntry : SemaRef.FpPragmaStack.Stack) { in WriteFloatControlPragmaOptions()
4309 void ASTWriter::WriteModuleFileExtension(Sema &SemaRef, in WriteModuleFileExtension() argument
4338 Writer.writeExtensionContents(SemaRef, Stream); in WriteModuleFileExtension()
4484 ASTFileSignature ASTWriter::WriteAST(Sema &SemaRef, in WriteAST() argument
4501 Context = &SemaRef.Context; in WriteAST()
4502 PP = &SemaRef.PP; in WriteAST()
4505 WriteASTCore(SemaRef, isysroot, OutputFile, WritingModule); in WriteAST()
4530 ASTFileSignature ASTWriter::WriteASTCore(Sema &SemaRef, StringRef isysroot, in WriteASTCore() argument
4541 ASTContext &Context = SemaRef.Context; in WriteASTCore()
4542 Preprocessor &PP = SemaRef.PP; in WriteASTCore()
4582 AddLazyVectorDecls(*this, SemaRef.TentativeDefinitions, TentativeDefinitions); in WriteASTCore()
4587 AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls, in WriteASTCore()
4594 AddLazyVectorDecls(*this, SemaRef.DelegatingCtorDecls, DelegatingCtorDecls); in WriteASTCore()
4601 SemaRef.WeakUndeclaredIdentifiers) { in WriteASTCore()
4612 AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls); in WriteASTCore()
4616 if (!SemaRef.VTableUses.empty()) { in WriteASTCore()
4617 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I) { in WriteASTCore()
4618 AddDeclRef(SemaRef.VTableUses[I].first, VTableUses); in WriteASTCore()
4619 AddSourceLocation(SemaRef.VTableUses[I].second, VTableUses); in WriteASTCore()
4620 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]); in WriteASTCore()
4626 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates) in WriteASTCore()
4631 for (const auto &I : SemaRef.PendingInstantiations) { in WriteASTCore()
4635 assert(SemaRef.PendingLocalImplicitInstantiations.empty() && in WriteASTCore()
4640 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) { in WriteASTCore()
4641 AddDeclRef(SemaRef.getStdNamespace(), SemaDeclRefs); in WriteASTCore()
4642 AddDeclRef(SemaRef.getStdBadAlloc(), SemaDeclRefs); in WriteASTCore()
4643 AddDeclRef(SemaRef.getStdAlignValT(), SemaDeclRefs); in WriteASTCore()
4653 for (const auto &I : SemaRef.KnownNamespaces) { in WriteASTCore()
4662 SemaRef.getUndefinedButUsed(Undefined); in WriteASTCore()
4674 SemaRef.getMismatchingDeleteExpressions()) { in WriteASTCore()
4773 for (IdentifierResolver::iterator D = SemaRef.IdResolver.begin(II), in WriteASTCore()
4774 DEnd = SemaRef.IdResolver.end(); in WriteASTCore()
4792 SemaRef.updateOutOfDateSelector(Selector); in WriteASTCore()
4873 for (auto *D : SemaRef.DeclsToCheckForDeferredDiags) in WriteASTCore()
4908 WriteSelectors(SemaRef); in WriteASTCore()
4909 WriteReferencedSelectorsPool(SemaRef); in WriteASTCore()
4910 WriteLateParsedTemplates(SemaRef); in WriteASTCore()
4911 WriteIdentifierTable(PP, SemaRef.IdResolver, isModule); in WriteASTCore()
4912 WriteFPPragmaOptions(SemaRef.CurFPFeatureOverrides()); in WriteASTCore()
4913 WriteOpenCLExtensions(SemaRef); in WriteASTCore()
4914 WriteCUDAPragmas(SemaRef); in WriteASTCore()
5033 WriteOptimizePragmaOptions(SemaRef); in WriteASTCore()
5034 WriteMSStructPragmaOptions(SemaRef); in WriteASTCore()
5035 WriteMSPointersToMembersPragmaOptions(SemaRef); in WriteASTCore()
5037 WritePackPragmaOptions(SemaRef); in WriteASTCore()
5038 WriteFloatControlPragmaOptions(SemaRef); in WriteASTCore()
5050 WriteModuleFileExtension(SemaRef, *ExtWriter); in WriteASTCore()