-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathOneDNNGraphDialect.cpp
33 lines (27 loc) · 1.12 KB
/
OneDNNGraphDialect.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//===-- OneDNNGraphDialect.cpp - OneDNN input 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 "gc/Dialect/OneDNNGraph/OneDNNGraphDialect.h"
#include "gc/Dialect/OneDNNGraph/OneDNNGraphOps.h"
#include "gc/Dialect/OneDNNGraph/OneDNNGraphTypes.h"
using namespace mlir;
using namespace mlir::onednn_graph;
#include "gc/Dialect/OneDNNGraph/OneDNNGraphOpsDialect.cpp.inc"
//===----------------------------------------------------------------------===//
// OneDNNGraph dialect.
//===----------------------------------------------------------------------===//
void OneDNNGraphDialect::initialize() {
addOperations<
#define GET_OP_LIST
#include "gc/Dialect/OneDNNGraph/OneDNNGraphOps.cpp.inc"
>();
}
LogicalResult
OneDNNGraphDialect::verifyOperationAttribute(Operation *op,
NamedAttribute attr) {
return success();
}