MLIR 22.0.0git
mlir::pdll::ast::Context Class Reference

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
Contextoperator= (const Context &)=delete
llvm::BumpPtrAllocator & getAllocator ()
 Return the allocator owned by this context.
StorageUniquergetTypeUniquer ()
 Return the storage uniquer used for AST types.
ods::ContextgetODSContext ()
 Return the ODS context used by the AST.
const ods::ContextgetODSContext () const
DiagnosticEnginegetDiagEngine ()
 Return the diagnostic engine of this context.

Detailed Description

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.

Definition at line 25 of file Context.h.

Constructor & Destructor Documentation

◆ Context() [1/2]

Context::Context ( ods::Context & odsContext)
explicit

Definition at line 15 of file Context.cpp.

Referenced by Context(), and operator=().

◆ Context() [2/2]

mlir::pdll::ast::Context::Context ( const Context & )
delete

References Context().

Member Function Documentation

◆ getAllocator()

◆ getDiagEngine()

DiagnosticEngine & mlir::pdll::ast::Context::getDiagEngine ( )
inline

Return the diagnostic engine of this context.

Definition at line 42 of file Context.h.

Referenced by mlir::parseSourceFile().

◆ getODSContext() [1/2]

ods::Context & mlir::pdll::ast::Context::getODSContext ( )
inline

Return the ODS context used by the AST.

Definition at line 38 of file Context.h.

◆ getODSContext() [2/2]

const ods::Context & mlir::pdll::ast::Context::getODSContext ( ) const
inline

Definition at line 39 of file Context.h.

◆ getTypeUniquer()

◆ operator=()

Context & mlir::pdll::ast::Context::operator= ( const Context & )
delete

References Context().


The documentation for this class was generated from the following files: