|
clang 24.0.0git
|
#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/BackendConsumer.h"
Public Member Functions | |
| BackendConsumer (CompilerInstance &CI, BackendAction Action, IntrusiveRefCntPtr< llvm::vfs::FileSystem > VFS, llvm::LLVMContext &C, SmallVector< LinkModule, 4 > LinkModules, StringRef InFile, std::unique_ptr< raw_pwrite_stream > OS, CoverageSourceInfo *CoverageInfo, llvm::Module *CurLinkModule=nullptr) | |
| llvm::Module * | getModule () const |
| std::unique_ptr< llvm::Module > | takeModule () |
| CodeGenerator * | getCodeGenerator () |
| void | HandleCXXStaticMemberVarInstantiation (VarDecl *VD) override |
| HandleCXXStaticMemberVarInstantiation - Tell the consumer that this. | |
| void | Initialize (ASTContext &Ctx) override |
| Initialize - This is called to initialize the consumer, providing the ASTContext. | |
| bool | HandleTopLevelDecl (DeclGroupRef D) override |
| HandleTopLevelDecl - Handle the specified top-level declaration. | |
| void | HandleInlineFunctionDefinition (FunctionDecl *D) override |
| This callback is invoked each time an inline (method or friend) function definition in a class is completed. | |
| void | HandleInterestingDecl (DeclGroupRef D) override |
| HandleInterestingDecl - Handle the specified interesting declaration. | |
| void | HandleTranslationUnit (ASTContext &C) override |
| HandleTranslationUnit - This method is called when the ASTs for entire translation unit have been parsed. | |
| void | HandleTagDeclDefinition (TagDecl *D) override |
| HandleTagDeclDefinition - This callback is invoked each time a TagDecl (e.g. | |
| void | HandleTagDeclRequiredDefinition (const TagDecl *D) override |
| This callback is invoked the first time each TagDecl is required to be complete. | |
| void | CompleteTentativeDefinition (VarDecl *D) override |
| CompleteTentativeDefinition - Callback invoked at the end of a translation unit to notify the consumer that the given tentative definition should be completed. | |
| void | CompleteExternalDeclaration (DeclaratorDecl *D) override |
| CompleteExternalDeclaration - Callback invoked at the end of a translation unit to notify the consumer that the given external declaration should be completed. | |
| void | AssignInheritanceModel (CXXRecordDecl *RD) override |
| Callback invoked when an MSInheritanceAttr has been attached to a CXXRecordDecl. | |
| void | HandleVTable (CXXRecordDecl *RD) override |
| Callback involved at the end of a translation unit to notify the consumer that a vtable for the given C++ class is required. | |
| bool | LinkInModules (llvm::Module *M) |
| std::unique_ptr< llvm::DiagnosticHandler > | createDiagnosticHandler () |
| Create an llvm::DiagnosticHandler that routes LLVM backend diagnostics through this consumer's clang diagnostics. | |
| Public Member Functions inherited from clang::ASTConsumer | |
| ASTConsumer ()=default | |
| virtual | ~ASTConsumer () |
| virtual void | HandleCXXImplicitFunctionInstantiation (FunctionDecl *D) |
| Invoked when a function is implicitly instantiated. | |
| virtual void | HandleTopLevelDeclInObjCContainer (DeclGroupRef D) |
| Handle the specified top-level declaration that occurred inside and ObjC container. | |
| virtual void | HandleImplicitImportDecl (ImportDecl *D) |
| Handle an ImportDecl that was implicitly created due to an inclusion directive. | |
| virtual void | HandleOpenACCRoutineReference (const FunctionDecl *FD, const OpenACCRoutineDecl *RD) |
| Callback to handle the end-of-translation unit attachment of OpenACC routine declaration information. | |
| virtual ASTMutationListener * | GetASTMutationListener () |
| If the consumer is interested in entities getting modified after their initial creation, it should return a pointer to an ASTMutationListener here. | |
| virtual ASTDeserializationListener * | GetASTDeserializationListener () |
| If the consumer is interested in entities being deserialized from AST files, it should return a pointer to a ASTDeserializationListener here. | |
| virtual void | PrintStats () |
| PrintStats - If desired, print any statistics. | |
| virtual bool | shouldSkipFunctionBody (Decl *D) |
This callback is called for each function if the Parser was initialized with SkipFunctionBodies set to true. | |
Definition at line 24 of file BackendConsumer.h.
| clang::BackendConsumer::BackendConsumer | ( | CompilerInstance & | CI, |
| BackendAction | Action, | ||
| IntrusiveRefCntPtr< llvm::vfs::FileSystem > | VFS, | ||
| llvm::LLVMContext & | C, | ||
| SmallVector< LinkModule, 4 > | LinkModules, | ||
| StringRef | InFile, | ||
| std::unique_ptr< raw_pwrite_stream > | OS, | ||
| CoverageSourceInfo * | CoverageInfo, | ||
| llvm::Module * | CurLinkModule = nullptr ) |
Definition at line 85 of file CodeGenAction.cpp.
References clang::C, and clang::CreateLLVMCodeGen().
|
overridevirtual |
Callback invoked when an MSInheritanceAttr has been attached to a CXXRecordDecl.
Reimplemented from clang::ASTConsumer.
Definition at line 315 of file CodeGenAction.cpp.
|
overridevirtual |
CompleteExternalDeclaration - Callback invoked at the end of a translation unit to notify the consumer that the given external declaration should be completed.
Reimplemented from clang::ASTConsumer.
Definition at line 311 of file CodeGenAction.cpp.
|
overridevirtual |
CompleteTentativeDefinition - Callback invoked at the end of a translation unit to notify the consumer that the given tentative definition should be completed.
The variable declaration itself will be a tentative definition. If it had an incomplete array type, its type will have already been changed to an array of size 1. However, the declaration remains a tentative definition and has not been modified by the introduction of an implicit zero initializer.
Reimplemented from clang::ASTConsumer.
Definition at line 307 of file CodeGenAction.cpp.
| std::unique_ptr< llvm::DiagnosticHandler > BackendConsumer::createDiagnosticHandler | ( | ) |
Create an llvm::DiagnosticHandler that routes LLVM backend diagnostics through this consumer's clang diagnostics.
Definition at line 328 of file CodeGenAction.cpp.
Referenced by HandleTranslationUnit().
| CodeGenerator * clang::BackendConsumer::getCodeGenerator | ( | ) |
Definition at line 117 of file CodeGenAction.cpp.
| llvm::Module * clang::BackendConsumer::getModule | ( | ) | const |
Definition at line 109 of file CodeGenAction.cpp.
Referenced by HandleTranslationUnit().
|
overridevirtual |
HandleCXXStaticMemberVarInstantiation - Tell the consumer that this.
Reimplemented from clang::ASTConsumer.
Definition at line 121 of file CodeGenAction.cpp.
References clang::ASTConsumer::HandleCXXStaticMemberVarInstantiation().
|
overridevirtual |
This callback is invoked each time an inline (method or friend) function definition in a class is completed.
Reimplemented from clang::ASTConsumer.
Definition at line 157 of file CodeGenAction.cpp.
|
overridevirtual |
HandleInterestingDecl - Handle the specified interesting declaration.
This is called by the AST reader when deserializing things that might interest the consumer. The default implementation forwards to HandleTopLevelDecl.
Reimplemented from clang::ASTConsumer.
Definition at line 170 of file CodeGenAction.cpp.
References HandleTopLevelDecl().
|
overridevirtual |
HandleTagDeclDefinition - This callback is invoked each time a TagDecl (e.g.
struct, union, enum, class) is completed. This allows the client to hack on the type, which can occur at any point in the file (because these can be defined in declspecs).
Reimplemented from clang::ASTConsumer.
Definition at line 296 of file CodeGenAction.cpp.
|
overridevirtual |
This callback is invoked the first time each TagDecl is required to be complete.
Reimplemented from clang::ASTConsumer.
Definition at line 303 of file CodeGenAction.cpp.
|
overridevirtual |
HandleTopLevelDecl - Handle the specified top-level declaration.
This is called by the parser to process every top-level Decl*.
Reimplemented from clang::ASTConsumer.
Definition at line 140 of file CodeGenAction.cpp.
References clang::DeclGroupRef::begin().
Referenced by HandleInterestingDecl().
|
overridevirtual |
HandleTranslationUnit - This method is called when the ASTs for entire translation unit have been parsed.
Reimplemented from clang::ASTConsumer.
Definition at line 211 of file CodeGenAction.cpp.
References clang::C, createDiagnosticHandler(), clang::EmbedBitcode(), clang::emitBackendOutput(), clang::Error, getModule(), LinkInModules(), and clang::reportOptRecordError().
|
overridevirtual |
Callback involved at the end of a translation unit to notify the consumer that a vtable for the given C++ class is required.
| RD | The class whose vtable was used. |
Reimplemented from clang::ASTConsumer.
Definition at line 319 of file CodeGenAction.cpp.
|
overridevirtual |
Initialize - This is called to initialize the consumer, providing the ASTContext.
Reimplemented from clang::ASTConsumer.
Definition at line 125 of file CodeGenAction.cpp.
References clang::ASTContext::getSourceManager().
| bool clang::BackendConsumer::LinkInModules | ( | llvm::Module * | M | ) |
Definition at line 175 of file CodeGenAction.cpp.
References clang::Function, and clang::CodeGen::mergeDefaultFunctionDefinitionAttributes().
Referenced by HandleTranslationUnit().
| std::unique_ptr< llvm::Module > clang::BackendConsumer::takeModule | ( | ) |
Definition at line 113 of file CodeGenAction.cpp.