brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 6f2e4cd Raw
26 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9#include "mlir/Tools/PDLL/AST/Context.h"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}26