torch-mlir/lib/Dialect/Numpy/NumpyDialect.cpp

22 lines
713 B
C++
Raw Normal View History

2020-04-27 08:20:58 +08:00
//===- NumpyDialect.cpp - Core numpy dialect --------------------*- C++ -*-===//
//
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "npcomp/Dialect/Numpy/NumpyDialect.h"
#include "npcomp/Dialect/Numpy/NumpyOps.h"
using namespace mlir;
using namespace mlir::NPCOMP::numpy;
2020-04-27 08:20:58 +08:00
NumpyDialect::NumpyDialect(MLIRContext *context)
: Dialect(getDialectNamespace(), context) {
addOperations<
#define GET_OP_LIST
#include "npcomp/Dialect/Numpy/NumpyOps.cpp.inc"
>();
}