MLIR  20.0.0git
Context.cpp
Go to the documentation of this file.
1 //===- Context.cpp --------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
10 #include "TypeDetail.h"
11 
12 using namespace mlir;
13 using namespace mlir::pdll::ast;
14 
15 Context::Context(ods::Context &odsContext) : odsContext(odsContext) {
21 
25 }
void registerSingletonStorageType(TypeID id, function_ref< void(Storage *)> initFn)
Register a new singleton storage class, this is necessary to get the singletone instance.
void registerParametricStorageType(TypeID id)
Register a new parametric storage class, this is necessary to create instances of this class type.
Context(ods::Context &odsContext)
Definition: Context.cpp:15
This class contains all of the registered ODS operation classes.
Definition: Context.h:32
Include the generated interface declarations.