9#ifndef LLVM_CLANG_CODEGEN_CODEGENACTION_H
10#define LLVM_CLANG_CODEGEN_CODEGENACTION_H
32 std::unique_ptr<llvm::Module>
Module;
47 std::unique_ptr<llvm::Module> TheModule;
51 llvm::LLVMContext *VMContext;
54 std::unique_ptr<llvm::Module> loadModule(llvm::MemoryBufferRef MBRef);
60 CodeGenAction(
unsigned _Act, llvm::LLVMContext *_VMContext =
nullptr);
65 StringRef InFile)
override;
87 virtual void anchor();
93 virtual void anchor();
99 virtual void anchor();
105 virtual void anchor();
111 virtual void anchor();
117 virtual void anchor();
Defines the clang::FrontendAction interface and various convenience abstract classes (clang::ASTFront...
Abstract base class to use for AST consumer-based frontend actions.
std::unique_ptr< ASTConsumer > CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override
Create the AST consumer object for this action, if supported.
CodeGenerator * getCodeGenerator() const
void EndSourceFileAction() override
Callback at the end of processing a single input.
~CodeGenAction() override
llvm::LLVMContext * takeLLVMContext()
Take the LLVM context used by this action.
BackendConsumer * BEConsumer
bool hasIRSupport() const override
Does this action support use with IR files?
void ExecuteAction() override
Callback to run the program action, using the initialized compiler instance.
std::unique_ptr< llvm::Module > takeModule()
Take the generated LLVM module, for use after the action has been run.
The primary public interface to the Clang code generator.
CompilerInstance - Helper class for managing a single instance of the Clang compiler.
Describes a module or submodule.
YAML serialization mapping.