MLIR
20.0.0git
lib
Tools
PDLL
AST
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
9
#include "
mlir/Tools/PDLL/AST/Context.h
"
10
#include "
TypeDetail.h
"
11
12
using namespace
mlir
;
13
using namespace
mlir::pdll::ast
;
14
15
Context::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.h
TypeDetail.h
mlir::StorageUniquer::registerSingletonStorageType
void registerSingletonStorageType(TypeID id, function_ref< void(Storage *)> initFn)
Register a new singleton storage class, this is necessary to get the singletone instance.
Definition:
StorageUniquer.h:169
mlir::StorageUniquer::registerParametricStorageType
void registerParametricStorageType(TypeID id)
Register a new parametric storage class, this is necessary to create instances of this class type.
Definition:
StorageUniquer.h:149
mlir::pdll::ast::Context::Context
Context(ods::Context &odsContext)
Definition:
Context.cpp:15
mlir::pdll::ods::Context
This class contains all of the registered ODS operation classes.
Definition:
Context.h:32
mlir::pdll::ast
Definition:
Context.h:21
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
mlir::pdll::ast::detail::AttributeTypeStorage
Definition:
TypeDetail.h:65
mlir::pdll::ast::detail::ConstraintTypeStorage
Definition:
TypeDetail.h:71
mlir::pdll::ast::detail::OperationTypeStorage
Definition:
TypeDetail.h:79
mlir::pdll::ast::detail::RangeTypeStorage
Definition:
TypeDetail.h:94
mlir::pdll::ast::detail::RewriteTypeStorage
Definition:
TypeDetail.h:102
mlir::pdll::ast::detail::TupleTypeStorage
Definition:
TypeDetail.h:110
mlir::pdll::ast::detail::TypeTypeStorage
Definition:
TypeDetail.h:128
mlir::pdll::ast::detail::ValueTypeStorage
Definition:
TypeDetail.h:134
Generated on Sat Dec 21 2024 12:34:02 for MLIR by
1.9.1