Lines Matching refs:SemaRef

3313 void ASTWriter::WriteSelectors(Sema &SemaRef) {  in WriteSelectors()  argument
3317 if (SemaRef.MethodPool.empty() && SelectorIDs.empty()) in WriteSelectors()
3331 Sema::GlobalMethodPool::iterator F = SemaRef.MethodPool.find(S); in WriteSelectors()
3337 if (F != SemaRef.MethodPool.end()) { in WriteSelectors()
3419 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) { in WriteReferencedSelectorsPool() argument
3422 if (SemaRef.ReferencedSelectors.empty()) in WriteReferencedSelectorsPool()
3431 for (auto &SelectorAndLocation : SemaRef.ReferencedSelectors) { in WriteReferencedSelectorsPool()
4166 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) { in WriteOpenCLExtensions() argument
4167 if (!SemaRef.Context.getLangOpts().OpenCL) in WriteOpenCLExtensions()
4170 const OpenCLOptions &Opts = SemaRef.getOpenCLOptions(); in WriteOpenCLExtensions()
4184 void ASTWriter::WriteCUDAPragmas(Sema &SemaRef) { in WriteCUDAPragmas() argument
4185 if (SemaRef.ForceCUDAHostDeviceDepth > 0) { in WriteCUDAPragmas()
4186 RecordData::value_type Record[] = {SemaRef.ForceCUDAHostDeviceDepth}; in WriteCUDAPragmas()
4243 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) { in WriteLateParsedTemplates() argument
4244 Sema::LateParsedTemplateMapT &LPTMap = SemaRef.LateParsedTemplateMap; in WriteLateParsedTemplates()
4265 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) { in WriteOptimizePragmaOptions() argument
4267 SourceLocation PragmaLoc = SemaRef.getOptimizeOffPragmaLocation(); in WriteOptimizePragmaOptions()
4273 void ASTWriter::WriteMSStructPragmaOptions(Sema &SemaRef) { in WriteMSStructPragmaOptions() argument
4275 Record.push_back(SemaRef.MSStructPragmaOn ? PMSST_ON : PMSST_OFF); in WriteMSStructPragmaOptions()
4281 void ASTWriter::WriteMSPointersToMembersPragmaOptions(Sema &SemaRef) { in WriteMSPointersToMembersPragmaOptions() argument
4283 Record.push_back(SemaRef.MSPointerToMemberRepresentationMethod); in WriteMSPointersToMembersPragmaOptions()
4284 AddSourceLocation(SemaRef.ImplicitMSInheritanceAttrLoc, Record); in WriteMSPointersToMembersPragmaOptions()
4289 void ASTWriter::WritePackPragmaOptions(Sema &SemaRef) { in WritePackPragmaOptions() argument
4296 AddAlignPackInfo(SemaRef.AlignPackStack.CurrentValue, Record); in WritePackPragmaOptions()
4297 AddSourceLocation(SemaRef.AlignPackStack.CurrentPragmaLocation, Record); in WritePackPragmaOptions()
4298 Record.push_back(SemaRef.AlignPackStack.Stack.size()); in WritePackPragmaOptions()
4299 for (const auto &StackEntry : SemaRef.AlignPackStack.Stack) { in WritePackPragmaOptions()
4309 void ASTWriter::WriteFloatControlPragmaOptions(Sema &SemaRef) { in WriteFloatControlPragmaOptions() argument
4316 Record.push_back(SemaRef.FpPragmaStack.CurrentValue.getAsOpaqueInt()); in WriteFloatControlPragmaOptions()
4317 AddSourceLocation(SemaRef.FpPragmaStack.CurrentPragmaLocation, Record); in WriteFloatControlPragmaOptions()
4318 Record.push_back(SemaRef.FpPragmaStack.Stack.size()); in WriteFloatControlPragmaOptions()
4319 for (const auto &StackEntry : SemaRef.FpPragmaStack.Stack) { in WriteFloatControlPragmaOptions()
4328 void ASTWriter::WriteModuleFileExtension(Sema &SemaRef, in WriteModuleFileExtension() argument
4357 Writer.writeExtensionContents(SemaRef, Stream); in WriteModuleFileExtension()
4526 ASTFileSignature ASTWriter::WriteAST(Sema &SemaRef, StringRef OutputFile, in WriteAST() argument
4543 Context = &SemaRef.Context; in WriteAST()
4544 PP = &SemaRef.PP; in WriteAST()
4546 ASTFileSignature Signature = WriteASTCore(SemaRef, isysroot, WritingModule); in WriteAST()
4633 ASTFileSignature ASTWriter::WriteASTCore(Sema &SemaRef, StringRef isysroot, in WriteASTCore() argument
4643 ASTContext &Context = SemaRef.Context; in WriteASTCore()
4644 Preprocessor &PP = SemaRef.PP; in WriteASTCore()
4686 AddLazyVectorDecls(*this, SemaRef.TentativeDefinitions, TentativeDefinitions); in WriteASTCore()
4691 AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls, in WriteASTCore()
4698 AddLazyVectorDecls(*this, SemaRef.DelegatingCtorDecls, DelegatingCtorDecls); in WriteASTCore()
4705 SemaRef.WeakUndeclaredIdentifiers) { in WriteASTCore()
4716 AddLazyVectorDecls(*this, SemaRef.ExtVectorDecls, ExtVectorDecls); in WriteASTCore()
4720 if (!SemaRef.VTableUses.empty()) { in WriteASTCore()
4721 for (unsigned I = 0, N = SemaRef.VTableUses.size(); I != N; ++I) { in WriteASTCore()
4722 AddDeclRef(SemaRef.VTableUses[I].first, VTableUses); in WriteASTCore()
4723 AddSourceLocation(SemaRef.VTableUses[I].second, VTableUses); in WriteASTCore()
4724 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]); in WriteASTCore()
4730 for (const TypedefNameDecl *TD : SemaRef.UnusedLocalTypedefNameCandidates) in WriteASTCore()
4735 for (const auto &I : SemaRef.PendingInstantiations) { in WriteASTCore()
4739 assert(SemaRef.PendingLocalImplicitInstantiations.empty() && in WriteASTCore()
4744 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) { in WriteASTCore()
4745 AddDeclRef(SemaRef.getStdNamespace(), SemaDeclRefs); in WriteASTCore()
4746 AddDeclRef(SemaRef.getStdBadAlloc(), SemaDeclRefs); in WriteASTCore()
4747 AddDeclRef(SemaRef.getStdAlignValT(), SemaDeclRefs); in WriteASTCore()
4757 for (const auto &I : SemaRef.KnownNamespaces) { in WriteASTCore()
4766 SemaRef.getUndefinedButUsed(Undefined); in WriteASTCore()
4778 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()
4977 for (auto *D : SemaRef.DeclsToCheckForDeferredDiags) in WriteASTCore()
5012 WriteSelectors(SemaRef); in WriteASTCore()
5013 WriteReferencedSelectorsPool(SemaRef); in WriteASTCore()
5014 WriteLateParsedTemplates(SemaRef); in WriteASTCore()
5015 WriteIdentifierTable(PP, SemaRef.IdResolver, isModule); in WriteASTCore()
5016 WriteFPPragmaOptions(SemaRef.CurFPFeatureOverrides()); in WriteASTCore()
5017 WriteOpenCLExtensions(SemaRef); in WriteASTCore()
5018 WriteCUDAPragmas(SemaRef); in WriteASTCore()
5137 WriteOptimizePragmaOptions(SemaRef); in WriteASTCore()
5138 WriteMSStructPragmaOptions(SemaRef); in WriteASTCore()
5139 WriteMSPointersToMembersPragmaOptions(SemaRef); in WriteASTCore()
5141 WritePackPragmaOptions(SemaRef); in WriteASTCore()
5142 WriteFloatControlPragmaOptions(SemaRef); in WriteASTCore()
5154 WriteModuleFileExtension(SemaRef, *ExtWriter); in WriteASTCore()