#include "clang/CodeGen/CodeGenAction.h"
Definition at line 24 of file CodeGenAction.h.
◆ CodeGenAction() CodeGenAction::CodeGenAction ( unsigned _Act, llvm::LLVMContext * _VMContext =nullptr
) protected
Create a new code generation action.
If the optional _VMContext
parameter is supplied, the action uses it without taking ownership, otherwise it creates a fresh LLVM context and takes ownership.
Definition at line 867 of file CodeGenAction.cpp.
◆ ~CodeGenAction() ◆ BeginSourceFileAction() ◆ CreateASTConsumer()Create the AST consumer object for this action, if supported.
This routine is called as part of BeginSourceFile(), which will fail if the AST consumer cannot be created. This will not be called if the action has indicated that it only uses the preprocessor.
Implements clang::FrontendAction.
Definition at line 958 of file CodeGenAction.cpp.
References clang::Preprocessor::addPPCallbacks(), clang::Backend_EmitNothing, BackendConsumer, BEConsumer, clang::FrontendOptions::GenReducedBMI, clang::BackendConsumer::getCodeGenerator(), clang::CompilerInstance::getCodeGenOpts(), clang::CompilerInstance::getFrontendOpts(), clang::CompilerInstance::getModuleCache(), GetOutputStream(), clang::CompilerInstance::getPreprocessor(), clang::CompilerInstance::getVirtualFileSystem(), clang::FrontendOptions::ModuleOutputPath, clang::Result, clang::CodeGen::CoverageMappingModuleGen::setUpCoverageCallbacks(), and clang::CompilerInstance::takeOutputStream().
◆ EndSourceFileAction() void CodeGenAction::EndSourceFileAction ( ) overrideprotectedvirtual ◆ ExecuteAction() void CodeGenAction::ExecuteAction ( ) overrideprotectedvirtualCallback to run the program action, using the initialized compiler instance.
This is guaranteed to only be called between BeginSourceFileAction() and EndSourceFileAction().
Implements clang::FrontendAction.
Definition at line 1099 of file CodeGenAction.cpp.
References clang::Backend_EmitNothing, clang::TargetOptions::CPU, E, clang::EmbedBitcode(), clang::EmbedObject(), clang::emitBackendOutput(), clang::ASTFrontendAction::ExecuteAction(), clang::TargetOptions::Features, clang::CompilerInstance::getCodeGenOpts(), clang::FrontendAction::getCompilerInstance(), clang::FrontendAction::getCurrentFileKind(), clang::FrontendAction::getCurrentFileOrBufferName(), clang::TargetInfo::getDataLayoutString(), clang::CompilerInstance::getDiagnostics(), clang::CompilerInstance::getFileManager(), GetOutputStream(), clang::CompilerInstance::getSourceManager(), clang::CompilerInstance::getTarget(), clang::CompilerInstance::getTargetOpts(), clang::CompilerInstance::getVirtualFileSystem(), clang::FileManager::getVirtualFileSystemPtr(), clang::LLVM_IR, clang::reportOptRecordError(), clang::Result, SM, and clang::TargetOptions::Triple.
◆ getCodeGenerator() ◆ hasIRSupport() bool CodeGenAction::hasIRSupport ( ) const overrideprotectedvirtual ◆ takeLLVMContext() llvm::LLVMContext * CodeGenAction::takeLLVMContext ( ) ◆ takeModule() std::unique_ptr< llvm::Module > CodeGenAction::takeModule ( )Take the generated LLVM module, for use after the action has been run.
The result may be null on failure.
Definition at line 918 of file CodeGenAction.cpp.
◆ BackendConsumer ◆ BEConsumerThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4