MLIR
20.0.0git
|
This class represents the main context of the PDLL AST. More...
#include "mlir/Tools/PDLL/AST/Context.h"
Public Member Functions | |
Context (ods::Context &odsContext) | |
Context (const Context &)=delete | |
Context & | operator= (const Context &)=delete |
llvm::BumpPtrAllocator & | getAllocator () |
Return the allocator owned by this context. More... | |
StorageUniquer & | getTypeUniquer () |
Return the storage uniquer used for AST types. More... | |
ods::Context & | getODSContext () |
Return the ODS context used by the AST. More... | |
const ods::Context & | getODSContext () const |
DiagnosticEngine & | getDiagEngine () |
Return the diagnostic engine of this context. More... | |
This class represents the main context of the PDLL AST.
It handles allocating all of the AST constructs, and manages all state necessary for the AST.
|
explicit |
Definition at line 15 of file Context.cpp.
References mlir::StorageUniquer::registerParametricStorageType(), and mlir::StorageUniquer::registerSingletonStorageType().
|
delete |
|
inline |
Return the allocator owned by this context.
Definition at line 32 of file Context.h.
Referenced by copyStringWithNull(), mlir::pdll::ast::OpNameDecl::create(), mlir::pdll::ast::NamedAttributeDecl::create(), mlir::pdll::ast::VariableDecl::create(), mlir::pdll::ast::Module::create(), mlir::pdll::ast::TypeConstraintDecl::create(), mlir::pdll::ast::TypeRangeConstraintDecl::create(), mlir::pdll::ast::TupleExpr::create(), mlir::pdll::ast::RangeExpr::create(), mlir::pdll::ast::MemberAccessExpr::create(), mlir::pdll::ast::OperationExpr::create(), mlir::pdll::ast::OpConstraintDecl::create(), mlir::pdll::ast::DeclRefExpr::create(), mlir::pdll::ast::CallExpr::create(), mlir::pdll::ast::ReturnStmt::create(), mlir::pdll::ast::EraseStmt::create(), mlir::pdll::ast::ReplaceStmt::create(), mlir::pdll::ast::RewriteStmt::create(), mlir::pdll::ast::ValueConstraintDecl::create(), mlir::pdll::ast::AttrConstraintDecl::create(), mlir::pdll::ast::ValueRangeConstraintDecl::create(), mlir::pdll::ast::AttributeExpr::create(), mlir::pdll::ast::TypeExpr::create(), mlir::pdll::ast::LetStmt::create(), mlir::pdll::ast::CompoundStmt::create(), mlir::pdll::ast::PatternDecl::create(), mlir::pdll::ast::Name::create(), and mlir::pdll::ast::Decl::setDocComment().
|
inline |
Return the diagnostic engine of this context.
Definition at line 42 of file Context.h.
Referenced by mlir::parseSourceFile().
|
inline |
|
inline |
|
inline |
Return the storage uniquer used for AST types.
Definition at line 35 of file Context.h.
Referenced by mlir::pdll::ast::AttributeType::get(), mlir::pdll::ast::ConstraintType::get(), mlir::pdll::ast::RewriteType::get(), mlir::pdll::ast::TypeType::get(), mlir::pdll::ast::ValueType::get(), mlir::pdll::ast::TupleType::get(), mlir::pdll::ast::OperationType::get(), and mlir::pdll::ast::RangeType::get().