brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · a0ff315 Raw
42 lines · cpp
1//===- PythonTestDialect.cpp - PythonTest dialect definition --------------===//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 "PythonTestDialect.h"10#include "mlir/IR/DialectImplementation.h"11#include "mlir/IR/OpImplementation.h"12#include "llvm/ADT/TypeSwitch.h"13 14#include "PythonTestDialect.cpp.inc"15 16#define GET_ATTRDEF_CLASSES17#include "PythonTestAttributes.cpp.inc"18 19#define GET_TYPEDEF_CLASSES20#include "PythonTestTypes.cpp.inc"21 22#define GET_OP_CLASSES23#include "PythonTestOps.cpp.inc"24 25namespace python_test {26void PythonTestDialect::initialize() {27  addOperations<28#define GET_OP_LIST29#include "PythonTestOps.cpp.inc"30      >();31  addAttributes<32#define GET_ATTRDEF_LIST33#include "PythonTestAttributes.cpp.inc"34      >();35  addTypes<36#define GET_TYPEDEF_LIST37#include "PythonTestTypes.cpp.inc"38      >();39}40 41} // namespace python_test42