xref: /llvm-project/mlir/examples/standalone/lib/Standalone/StandaloneDialect.cpp (revision 83e9ef7e519a2eac56609268a10e88b251d87e15)
1 //===- StandaloneDialect.cpp - Standalone dialect ---------------*- C++ -*-===//
2 //
3 // This file is licensed 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 "Standalone/StandaloneDialect.h"
10 #include "Standalone/StandaloneOps.h"
11 #include "Standalone/StandaloneTypes.h"
12 
13 using namespace mlir;
14 using namespace mlir::standalone;
15 
16 #include "Standalone/StandaloneOpsDialect.cpp.inc"
17 
18 //===----------------------------------------------------------------------===//
19 // Standalone dialect.
20 //===----------------------------------------------------------------------===//
21 
initialize()22 void StandaloneDialect::initialize() {
23   addOperations<
24 #define GET_OP_LIST
25 #include "Standalone/StandaloneOps.cpp.inc"
26       >();
27   registerTypes();
28 }
29