Lines Matching defs:ASTWriter
1 //===- ASTWriter.cpp - AST File Writer ------------------------------------===//
9 // This file defines the ASTWriter class, which writes AST files.
313 ASTWriter &Writer;
314 ASTWriter::RecordData Record;
318 ASTTypeWriter(ASTContext &Context, ASTWriter &Writer)
711 void ASTWriter::WriteTypeAbbrevs() {
725 // ASTWriter Implementation
730 ASTWriter::RecordDataImpl &Record) {
746 ASTWriter::RecordDataImpl &Record) {
755 ASTWriter::RecordDataImpl &Record) {
889 void ASTWriter::WriteBlockInfoBlock() {
1224 ASTWriter::createSignature() const {
1244 ASTFileSignature ASTWriter::createSignatureForNamedModule() const {
1292 ASTFileSignature ASTWriter::backpatchSignature() {
1314 void ASTWriter::writeUnhashedControlBlock(Preprocessor &PP) {
1447 void ASTWriter::WriteControlBlock(Preprocessor &PP, StringRef isysroot) {
1776 SourceLocation ASTWriter::getAffectingIncludeLoc(const SourceManager &SourceMgr,
1788 void ASTWriter::WriteInputFiles(SourceManager &SourceMgr,
2020 ASTWriter &Writer;
2023 HeaderFileInfoTrait(ASTWriter &Writer) : Writer(Writer) {}
2127 void ASTWriter::WriteHeaderSearch(const HeaderSearch &HS) {
2264 using RecordDataType = ASTWriter::RecordData::value_type;
2298 void ASTWriter::WriteSourceManagerBlock(SourceManager &SourceMgr) {
2521 void ASTWriter::WritePreprocessor(const Preprocessor &PP, bool IsModule) {
2775 void ASTWriter::WritePreprocessorDetail(PreprocessingRecord &PPRec,
2855 llvm_unreachable("Unhandled PreprocessedEntity in ASTWriter");
2902 unsigned ASTWriter::getLocalOrImportedSubmoduleID(const Module *Mod) {
2919 unsigned ASTWriter::getSubmoduleID(Module *Mod) {
2939 void ASTWriter::WriteSubmodules(Module *WritingModule, ASTContext *Context) {
3218 void ASTWriter::WritePragmaDiagnosticMappings(const DiagnosticsEngine &Diag,
3328 void ASTWriter::WriteType(ASTContext &Context, QualType T) {
3373 uint64_t ASTWriter::WriteDeclContextLexicalBlock(ASTContext &Context,
3408 void ASTWriter::WriteTypeDeclOffsets() {
3434 void ASTWriter::WriteFileDeclIDsMap() {
3463 void ASTWriter::WriteComments(ASTContext &Context) {
3497 ASTWriter &Writer;
3512 explicit ASTMethodPoolTrait(ASTWriter &Writer) : Writer(Writer) {}
3612 void ASTWriter::WriteSelectors(Sema &SemaRef) {
3719 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) {
3803 ASTWriter &Writer) {
3810 ASTWriter &Writer;
3815 ASTWriter::RecordData *InterestingIdentifierOffsets;
3836 ASTIdentifierTableTrait(ASTWriter &Writer, Preprocessor &PP,
3838 ASTWriter::RecordData *InterestingIdentifierOffsets)
3941 void ASTWriter::WriteIdentifierTable(Preprocessor &PP,
4018 void ASTWriter::handleVTable(CXXRecordDecl *RD) {
4033 ASTWriter &Writer;
4046 explicit ASTDeclContextNameLookupTraitBase(ASTWriter &Writer)
4156 explicit ModuleLevelNameLookupTrait(ASTWriter &Writer)
4246 explicit ASTDeclContextNameLookupTrait(ASTWriter &Writer)
4260 // See comments in ASTWriter::WriteDeclContextLexicalBlock for details.
4330 ASTWriter &Writer;
4344 explicit LazySpecializationInfoLookupTrait(ASTWriter &Writer)
4429 void ASTWriter::GenerateSpecializationInfoLookupTable(
4479 uint64_t ASTWriter::WriteSpecializationInfoLookupTable(
4497 bool ASTWriter::isLookupResultExternal(StoredDeclsList &Result,
4507 static bool isLookupResultNotInteresting(ASTWriter &Writer,
4529 void ASTWriter::GenerateNameLookupTable(
4765 void ASTWriter::WriteDeclContextVisibleBlock(ASTContext &Context,
4823 // See comments in ASTWriter::WriteDeclContextLexicalBlock for details.
4898 void ASTWriter::WriteDeclContextVisibleUpdate(ASTContext &Context,
4938 void ASTWriter::WriteFPPragmaOptions(const FPOptionsOverride &Opts) {
4944 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) {
4962 void ASTWriter::WriteCUDAPragmas(Sema &SemaRef) {
4969 void ASTWriter::WriteObjCCategories() {
5021 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) {
5044 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) {
5052 void ASTWriter::WriteMSStructPragmaOptions(Sema &SemaRef) {
5060 void ASTWriter::WriteMSPointersToMembersPragmaOptions(Sema &SemaRef) {
5068 void ASTWriter::WritePackPragmaOptions(Sema &SemaRef) {
5088 void ASTWriter::WriteFloatControlPragmaOptions(Sema &SemaRef) {
5108 void ASTWriter::WriteDeclsWithEffectsToVerify(Sema &SemaRef) {
5118 void ASTWriter::WriteModuleFileExtension(Sema &SemaRef,
5187 void ASTWriter::AddToken(const Token &Tok, RecordDataImpl &Record) {
5233 void ASTWriter::AddString(StringRef Str, RecordDataImpl &Record) {
5238 void ASTWriter::AddStringBlob(StringRef Str, RecordDataImpl &Record,
5244 bool ASTWriter::PreparePathForOutput(SmallVectorImpl<char> &Path) {
5266 void ASTWriter::AddPath(StringRef Path, RecordDataImpl &Record) {
5272 void ASTWriter::AddPathBlob(StringRef Path, RecordDataImpl &Record,
5279 void ASTWriter::EmitRecordWithPath(unsigned Abbrev, RecordDataRef Record,
5286 void ASTWriter::AddVersionTuple(const VersionTuple &Version,
5301 void ASTWriter::SetIdentifierOffset(const IdentifierInfo *II, uint32_t Offset) {
5318 void ASTWriter::SetSelectorOffset(Selector Sel, uint32_t Offset) {
5328 ASTWriter::ASTWriter(llvm::BitstreamWriter &Stream,
5344 ASTWriter::~ASTWriter() = default;
5346 const LangOptions &ASTWriter::getLangOpts() const {
5351 time_t ASTWriter::getTimestampForOutput(const FileEntry *E) const {
5356 ASTWriter::WriteAST(llvm::PointerUnion<Sema *, Preprocessor *> Subject,
5400 static void AddLazyVectorDecls(ASTWriter &Writer, Vector &Vec) {
5408 static void AddLazyVectorEmiitedDecls(ASTWriter &Writer, Vector &Vec,
5409 ASTWriter::RecordData &Record) {
5416 void ASTWriter::computeNonAffectingInputFiles() {
5512 void ASTWriter::PrepareWritingSpecialDecls(Sema &SemaRef) {
5688 void ASTWriter::WriteSpecialDeclRecords(Sema &SemaRef) {
5853 ASTFileSignature ASTWriter::WriteASTCore(Sema *SemaPtr, StringRef isysroot,
6136 void ASTWriter::EnteringModulePurview() {
6146 void ASTWriter::AddedManglingNumber(const Decl *D, unsigned Number) {
6152 void ASTWriter::AddedStaticLocalNumbers(const Decl *D, unsigned Number) {
6159 void ASTWriter::AddedAnonymousNamespace(const TranslationUnitDecl *TU,
6165 ASTWriter::UpdateRecord &Record = DeclUpdates[TU];
6171 void ASTWriter::WriteDeclAndTypes(ASTContext &Context) {
6326 void ASTWriter::WriteSpecializationsUpdates(bool IsPartial) {
6353 void ASTWriter::WriteDeclUpdatesBlocks(ASTContext &Context,
6528 void ASTWriter::AddAlignPackInfo(const Sema::AlignPackInfo &Info,
6534 FileID ASTWriter::getAdjustedFileID(FileID FID) const {
6544 unsigned ASTWriter::getAdjustedNumCreatedFIDs(FileID FID) const {
6557 SourceLocation ASTWriter::getAdjustedLocation(SourceLocation Loc) const {
6563 SourceRange ASTWriter::getAdjustedRange(SourceRange Range) const {
6569 ASTWriter::getAdjustedOffset(SourceLocation::UIntTy Offset) const {
6574 ASTWriter::getAdjustment(SourceLocation::UIntTy Offset) const {
6596 void ASTWriter::AddFileID(FileID FID, RecordDataImpl &Record) {
6601 ASTWriter::getRawSourceLocationEncoding(SourceLocation Loc, LocSeq *Seq) {
6623 void ASTWriter::AddSourceLocation(SourceLocation Loc, RecordDataImpl &Record,
6629 void ASTWriter::AddSourceRange(SourceRange Range, RecordDataImpl &Record,
6639 void ASTWriter::AddIdentifierRef(const IdentifierInfo *II, RecordDataImpl &Record) {
6643 IdentifierID ASTWriter::getIdentifierRef(const IdentifierInfo *II) {
6653 MacroID ASTWriter::getMacroRef(MacroInfo *MI, const IdentifierInfo *Name) {
6669 MacroID ASTWriter::getMacroID(MacroInfo *MI) {
6677 uint32_t ASTWriter::getMacroDirectivesOffset(const IdentifierInfo *Name) {
6685 SelectorID ASTWriter::getSelectorRef(Selector Sel) {
6767 void ASTWriter::AddTypeRef(ASTContext &Context, QualType T,
6797 TypeID ASTWriter::GetOrCreateTypeID(ASTContext &Context, QualType T) {
6819 void ASTWriter::AddEmittedDeclRef(const Decl *D, RecordDataImpl &Record) {
6826 void ASTWriter::AddDeclRef(const Decl *D, RecordDataImpl &Record) {
6830 LocalDeclID ASTWriter::GetDeclRef(const Decl *D) {
6871 LocalDeclID ASTWriter::getDeclID(const Decl *D) {
6884 bool ASTWriter::wasDeclEmitted(const Decl *D) const {
6900 void ASTWriter::associateDeclWithFile(const Decl *D, LocalDeclID ID) {
6938 unsigned ASTWriter::getAnonymousDeclarationNumber(const NamedDecl *D) {
7113 static uint64_t EmitCXXBaseSpecifiers(ASTContext &Context, ASTWriter &W,
7115 ASTWriter::RecordData Record;
7131 EmitCXXCtorInitializers(ASTContext &Context, ASTWriter &W,
7133 ASTWriter::RecordData Record;
7290 void ASTWriter::ReaderInitialized(ASTReader *Reader) {
7313 void ASTWriter::IdentifierRead(IdentifierID ID, IdentifierInfo *II) {
7333 void ASTWriter::MacroRead(serialization::MacroID ID, MacroInfo *MI) {
7340 void ASTWriter::TypeRead(TypeIdx Idx, QualType T) {
7367 void ASTWriter::PredefinedDeclBuilt(PredefinedDeclIDs ID, const Decl *D) {
7373 void ASTWriter::SelectorRead(SelectorID ID, Selector S) {
7380 void ASTWriter::MacroDefinitionRead(serialization::PreprocessedEntityID ID,
7386 void ASTWriter::ModuleRead(serialization::SubmoduleID ID, Module *Mod) {
7391 void ASTWriter::CompletedTagDefinition(const TagDecl *D) {
7418 void ASTWriter::AddedVisibleDecl(const DeclContext *DC, const Decl *D) {
7452 void ASTWriter::AddedCXXImplicitMember(const CXXRecordDecl *RD, const Decl *D) {
7470 void ASTWriter::ResolvedExceptionSpec(const FunctionDecl *FD) {
7485 void ASTWriter::DeducedReturnType(const FunctionDecl *FD, QualType ReturnType) {
7495 void ASTWriter::ResolvedOperatorDelete(const CXXDestructorDecl *DD,
7507 void ASTWriter::CompletedImplicitDefinition(const FunctionDecl *D) {
7521 void ASTWriter::VariableDefinitionInstantiated(const VarDecl *D) {
7530 void ASTWriter::FunctionDefinitionInstantiated(const FunctionDecl *D) {
7543 void ASTWriter::InstantiationRequested(const ValueDecl *D) {
7559 void ASTWriter::DefaultArgumentInstantiated(const ParmVarDecl *D) {
7569 void ASTWriter::DefaultMemberInitializerInstantiated(const FieldDecl *D) {
7578 void ASTWriter::AddedObjCCategoryToInterface(const ObjCCategoryDecl *CatD,
7590 void ASTWriter::DeclarationMarkedUsed(const Decl *D) {
7604 void ASTWriter::DeclarationMarkedOpenMPThreadPrivate(const Decl *D) {
7613 void ASTWriter::DeclarationMarkedOpenMPAllocate(const Decl *D, const Attr *A) {
7622 void ASTWriter::DeclarationMarkedOpenMPDeclareTarget(const Decl *D,
7633 void ASTWriter::RedefinedHiddenDefinition(const NamedDecl *D, Module *M) {
7640 void ASTWriter::AddedAttributeToRecord(const Attr *Attr,
7649 void ASTWriter::AddedCXXTemplateSpecialization(
7661 void ASTWriter::AddedCXXTemplateSpecialization(
7673 void ASTWriter::AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD,