MLIR  20.0.0git
Public Member Functions | List of all members
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. More...
 
StorageUniquergetTypeUniquer ()
 Return the storage uniquer used for AST types. More...
 
ods::ContextgetODSContext ()
 Return the ODS context used by the AST. More...
 
const ods::ContextgetODSContext () const
 
DiagnosticEnginegetDiagEngine ()
 Return the diagnostic engine of this context. More...
 

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

◆ Context() [2/2]

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

Member Function Documentation

◆ getAllocator()

llvm::BumpPtrAllocator& mlir::pdll::ast::Context::getAllocator ( )
inline

◆ 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()

StorageUniquer& mlir::pdll::ast::Context::getTypeUniquer ( )
inline

◆ operator=()

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

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