Lines Matching refs:SemaRef

3397 void ASTWriter::WriteSelectors(Sema &SemaRef) {  in WriteSelectors()  argument
3401 if (SemaRef.MethodPool.empty() && SelectorIDs.empty()) in WriteSelectors()
3415 Sema::GlobalMethodPool::iterator F = SemaRef.MethodPool.find(S); in WriteSelectors()
3421 if (F != SemaRef.MethodPool.end()) { in WriteSelectors()
3503 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) { in WriteReferencedSelectorsPool() argument
3506 if (SemaRef.ReferencedSelectors.empty()) in WriteReferencedSelectorsPool()
3515 for (auto &SelectorAndLocation : SemaRef.ReferencedSelectors) { in WriteReferencedSelectorsPool()
4247 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) { in WriteOpenCLExtensions() argument
4248 if (!SemaRef.Context.getLangOpts().OpenCL) in WriteOpenCLExtensions()
4251 const OpenCLOptions &Opts = SemaRef.getOpenCLOptions(); in WriteOpenCLExtensions()
4265 void ASTWriter::WriteCUDAPragmas(Sema &SemaRef) { in WriteCUDAPragmas() argument
4266 if (SemaRef.ForceCUDAHostDeviceDepth > 0) { in WriteCUDAPragmas()
4267 RecordData::value_type Record[] = {SemaRef.ForceCUDAHostDeviceDepth}; in WriteCUDAPragmas()
4324 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) { in WriteLateParsedTemplates() argument
4325 Sema::LateParsedTemplateMapT &LPTMap = SemaRef.LateParsedTemplateMap; in WriteLateParsedTemplates()
4347 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) { in WriteOptimizePragmaOptions() argument
4349 SourceLocation PragmaLoc = SemaRef.getOptimizeOffPragmaLocation(); in WriteOptimizePragmaOptions()
4355 void ASTWriter::WriteMSStructPragmaOptions(Sema &SemaRef) { in WriteMSStructPragmaOptions() argument
4357 Record.push_back(SemaRef.MSStructPragmaOn ? PMSST_ON : PMSST_OFF); in WriteMSStructPragmaOptions()
4363 void ASTWriter::WriteMSPointersToMembersPragmaOptions(Sema &SemaRef) { in WriteMSPointersToMembersPragmaOptions() argument
4365 Record.push_back(SemaRef.MSPointerToMemberRepresentationMethod); in WriteMSPointersToMembersPragmaOptions()
4366 AddSourceLocation(SemaRef.ImplicitMSInheritanceAttrLoc, Record); in WriteMSPointersToMembersPragmaOptions()
4371 void ASTWriter::WritePackPragmaOptions(Sema &SemaRef) { in WritePackPragmaOptions() argument
4378 AddAlignPackInfo(SemaRef.AlignPackStack.CurrentValue, Record); in WritePackPragmaOptions()
4379 AddSourceLocation(SemaRef.AlignPackStack.CurrentPragmaLocation, Record); in WritePackPragmaOptions()
4380 Record.push_back(SemaRef.AlignPackStack.Stack.size()); in WritePackPragmaOptions()
4381 for (const auto &StackEntry : SemaRef.AlignPackStack.Stack) { in WritePackPragmaOptions()
4391 void ASTWriter::WriteFloatControlPragmaOptions(Sema &SemaRef) { in WriteFloatControlPragmaOptions() argument
4398 Record.push_back(SemaRef.FpPragmaStack.CurrentValue.getAsOpaqueInt()); in WriteFloatControlPragmaOptions()
4399 AddSourceLocation(SemaRef.FpPragmaStack.CurrentPragmaLocation, Record); in WriteFloatControlPragmaOptions()
4400 Record.push_back(SemaRef.FpPragmaStack.Stack.size()); in WriteFloatControlPragmaOptions()
4401 for (const auto &StackEntry : SemaRef.FpPragmaStack.Stack) { in WriteFloatControlPragmaOptions()
4410 void ASTWriter::WriteModuleFileExtension(Sema &SemaRef, in WriteModuleFileExtension() argument
4439 Writer.writeExtensionContents(SemaRef, Stream); in WriteModuleFileExtension()
4625 ASTFileSignature ASTWriter::WriteAST(Sema &SemaRef, StringRef OutputFile, in WriteAST() argument
4632 SemaRef.PP.getDiagnostics().hasUncompilableErrorOccurred(); in WriteAST()
4642 Context = &SemaRef.Context; in WriteAST()
4643 PP = &SemaRef.PP; in WriteAST()
4645 ASTFileSignature Signature = WriteASTCore(SemaRef, isysroot, WritingModule); in WriteAST()
4732 ASTFileSignature ASTWriter::WriteASTCore(Sema &SemaRef, StringRef isysroot, in WriteASTCore() argument
4742 ASTContext &Context = SemaRef.Context; in WriteASTCore()
4743 Preprocessor &PP = SemaRef.PP; in WriteASTCore()
4789 AddLazyVectorDecls(*this, SemaRef.TentativeDefinitions, TentativeDefinitions); in WriteASTCore()
4794 AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls, in WriteASTCore()
4801 AddLazyVectorDecls(*this, SemaRef.DelegatingCtorDecls, DelegatingCtorDecls); in WriteASTCore()
4808 SemaRef.WeakUndeclaredIdentifiers) { in WriteASTCore()
4819 AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls); in WriteASTCore()
4823 if (!SemaRef.VTableUses.empty()) { in WriteASTCore()
4824 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I) { in WriteASTCore()
4825 AddDeclRef(SemaRef.VTableUses[I].first, VTableUses); in WriteASTCore()
4826 AddSourceLocation(SemaRef.VTableUses[I].second, VTableUses); in WriteASTCore()
4827 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]); in WriteASTCore()
4833 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates) in WriteASTCore()
4838 for (const auto &I : SemaRef.PendingInstantiations) { in WriteASTCore()
4842 assert(SemaRef.PendingLocalImplicitInstantiations.empty() && in WriteASTCore()
4847 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) { in WriteASTCore()
4848 AddDeclRef(SemaRef.getStdNamespace(), SemaDeclRefs); in WriteASTCore()
4849 AddDeclRef(SemaRef.getStdBadAlloc(), SemaDeclRefs); in WriteASTCore()
4850 AddDeclRef(SemaRef.getStdAlignValT(), SemaDeclRefs); in WriteASTCore()
4860 for (const auto &I : SemaRef.KnownNamespaces) { in WriteASTCore()
4869 SemaRef.getUndefinedButUsed(Undefined); in WriteASTCore()
4881 SemaRef.getMismatchingDeleteExpressions()) { in WriteASTCore()
4980 for (const Decl *D : SemaRef.IdResolver.decls(II)) in WriteASTCore()
4995 SemaRef.updateOutOfDateSelector(Selector); in WriteASTCore()
5076 for (auto *D : SemaRef.DeclsToCheckForDeferredDiags) in WriteASTCore()
5111 WriteSelectors(SemaRef); in WriteASTCore()
5112 WriteReferencedSelectorsPool(SemaRef); in WriteASTCore()
5113 WriteLateParsedTemplates(SemaRef); in WriteASTCore()
5114 WriteIdentifierTable(PP, SemaRef.IdResolver, isModule); in WriteASTCore()
5115 WriteFPPragmaOptions(SemaRef.CurFPFeatureOverrides()); in WriteASTCore()
5116 WriteOpenCLExtensions(SemaRef); in WriteASTCore()
5117 WriteCUDAPragmas(SemaRef); in WriteASTCore()
5236 WriteOptimizePragmaOptions(SemaRef); in WriteASTCore()
5237 WriteMSStructPragmaOptions(SemaRef); in WriteASTCore()
5238 WriteMSPointersToMembersPragmaOptions(SemaRef); in WriteASTCore()
5240 WritePackPragmaOptions(SemaRef); in WriteASTCore()
5241 WriteFloatControlPragmaOptions(SemaRef); in WriteASTCore()
5253 WriteModuleFileExtension(SemaRef, *ExtWriter); in WriteASTCore()