MLIR 22.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
12using namespace mlir;
13using namespace mlir::pdll::ast;
14
15Context::Context(ods::Context &odsContext) : odsContext(odsContext) {
16 typeUniquer.registerSingletonStorageType<detail::AttributeTypeStorage>();
17 typeUniquer.registerSingletonStorageType<detail::ConstraintTypeStorage>();
18 typeUniquer.registerSingletonStorageType<detail::RewriteTypeStorage>();
19 typeUniquer.registerSingletonStorageType<detail::TypeTypeStorage>();
20 typeUniquer.registerSingletonStorageType<detail::ValueTypeStorage>();
21
22 typeUniquer.registerParametricStorageType<detail::OperationTypeStorage>();
23 typeUniquer.registerParametricStorageType<detail::RangeTypeStorage>();
24 typeUniquer.registerParametricStorageType<detail::TupleTypeStorage>();
25}
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.