9#ifndef LLVM_CLANG_CIR_CIRGENACTION_H
10#define LLVM_CLANG_CIR_CIRGENACTION_H
14#include "llvm/ADT/SmallVector.h"
16#include "mlir/IR/BuiltinOps.h"
17#include "mlir/IR/OwningOpRef.h"
45 mlir::OwningOpRef<mlir::ModuleOp> MLIRMod;
47 std::unique_ptr<llvm::LLVMContext> Ctx;
59 std::unique_ptr<clang::ASTConsumer>
61 llvm::StringRef InFile)
override;
70 virtual void anchor();
77 virtual void anchor();
84 virtual void anchor();
91 virtual void anchor();
98 virtual void anchor();
105 virtual void anchor();
Defines the clang::FrontendAction interface and various convenience abstract classes (clang::ASTFront...
bool hasCIRSupport() const override
Does this action support use with CIR files?
void ExecuteAction() override
Implement the ExecuteAction interface by running Sema on the already-initialized AST consumer.
bool BeginSourceFileAction(clang::CompilerInstance &CI) override
Callback at the start of processing a single input.
std::unique_ptr< clang::ASTConsumer > CreateASTConsumer(clang::CompilerInstance &CI, llvm::StringRef InFile) override
CIRGenAction(OutputType Action)
friend class CIRGenConsumer
Abstract base class to use for AST consumer-based frontend actions.
CompilerInstance - Helper class for managing a single instance of the Clang compiler.
Diagnostic wrappers for TextAPI types for error reporting.