forked from llvm/torch-mlir
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate dialect and type for Dialect/ONNX with Tablegen (llvm#1141)
* compiled without type Signed-off-by: Tong Chen <chentong@us.ibm.com> * change ONNXOpsDialect to ONNXDialect Signed-off-by: Tong Chen <chentong@us.ibm.com> * new CMAKE Signed-off-by: Tong Chen <chentong@us.ibm.com> * first step to add type Signed-off-by: Tong Chen <chentong@us.ibm.com> * ONNXOps.td compiled with type Signed-off-by: Tong Chen <chentong@us.ibm.com> * refine CMake Signed-off-by: Tong Chen <chentong@us.ibm.com> * compiled with stringtype conflict Signed-off-by: Tong Chen <chentong@us.ibm.com> * chang StringType and pass lit test Signed-off-by: Tong Chen <chentong@us.ibm.com> * cleanup Signed-off-by: Tong Chen <chentong@us.ibm.com> * format Signed-off-by: Tong Chen <chentong@us.ibm.com> * change MLIR.cmake Signed-off-by: Tong Chen <chentong@us.ibm.com> * split files Signed-off-by: Tong Chen <chentong@us.ibm.com> * fix Signed-off-by: Tong Chen <chentong@us.ibm.com> * format Signed-off-by: Tong Chen <chentong@us.ibm.com> * fix cmake Signed-off-by: Tong Chen <chentong@us.ibm.com> * comments Signed-off-by: Tong Chen <chentong@us.ibm.com> * line length Signed-off-by: Tong Chen <chentong@us.ibm.com> * typo Signed-off-by: Tong Chen <chentong@us.ibm.com> * cmake order Signed-off-by: Tong Chen <chentong@us.ibm.com> * change for new llvm Signed-off-by: Tong Chen <chentong@us.ibm.com>
- Loading branch information
1 parent
31648cf
commit 099493f
Showing
25 changed files
with
219 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
//===------------------ ONNXDialect.cpp - ONNX Operations -----------------===// | ||
// | ||
// Copyright 2019-2020 The IBM Research Authors. | ||
// | ||
// ============================================================================= | ||
// | ||
// This file provides definition of ONNX dialect. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "mlir/Dialect/Traits.h" | ||
#include "mlir/IR/DialectImplementation.h" | ||
|
||
#include "src/Dialect/ONNX/ONNXDialect.hpp" | ||
|
||
using namespace mlir; | ||
|
||
// Code for ONNX_Dialect class | ||
#include "src/Dialect/ONNX/ONNXDialect.cpp.inc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
//===---------------- ONNXDialect.hpp - ONNX Operations -------------------===// | ||
// | ||
// Copyright 2019 The IBM Research Authors. | ||
// | ||
// ============================================================================= | ||
// | ||
// This file defines ONNX Dialect class. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#pragma once | ||
|
||
#include "mlir/IR/Dialect.h" | ||
|
||
#include "src/Dialect/ONNX/ONNXDialect.hpp.inc" |
Oops, something went wrong.