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
13using namespace mlir;
14using namespace mlir::standalone;
15
16#include "Standalone/StandaloneOpsDialect.cpp.inc"
17
18//===----------------------------------------------------------------------===//
19// Standalone dialect.
20//===----------------------------------------------------------------------===//
21
22void StandaloneDialect::initialize() {
23 addOperations<
24#define GET_OP_LIST
25#include "Standalone/StandaloneOps.cpp.inc"
26 >();
27 registerTypes();
28}
29

source code of mlir/examples/standalone/lib/Standalone/StandaloneDialect.cpp