1 //===- SparseTensorDialect.cpp - Sparse tensor dialect implementation -----===//
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/Dialect/SparseTensor/IR/SparseTensor.h"
10 
11 #include "mlir/IR/Builders.h"
12 #include "mlir/IR/OpImplementation.h"
13 
14 using namespace mlir;
15 using namespace mlir::sparse_tensor;
16 
17 void SparseTensorDialect::initialize() {
18   addOperations<
19 #define GET_OP_LIST
20 #include "mlir/Dialect/SparseTensor/IR/SparseTensorOps.cpp.inc"
21       >();
22 }
23 
24 #define GET_OP_CLASSES
25 #include "mlir/Dialect/SparseTensor/IR/SparseTensorOps.cpp.inc"
26