[Mlir-commits] [mlir] d1ba028 - Refactor TOSA Dialect CMake to use add_mlir_dialect/add_mlir_interface (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sat Nov 7 10:58:33 PST 2020
Author: Mehdi Amini
Date: 2020-11-07T18:58:18Z
New Revision: d1ba0285357493c1edd12688277116b44f7d0696
URL: https://github.com/llvm/llvm-project/commit/d1ba0285357493c1edd12688277116b44f7d0696
DIFF: https://github.com/llvm/llvm-project/commit/d1ba0285357493c1edd12688277116b44f7d0696.diff
LOG: Refactor TOSA Dialect CMake to use add_mlir_dialect/add_mlir_interface (NFC)
Added:
Modified:
mlir/include/mlir/Dialect/Tosa/IR/CMakeLists.txt
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.h
mlir/lib/Dialect/Tosa/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Tosa/IR/CMakeLists.txt b/mlir/include/mlir/Dialect/Tosa/IR/CMakeLists.txt
index 6b49fab778d7..b659959d1fc9 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/Tosa/IR/CMakeLists.txt
@@ -1,18 +1,9 @@
-set(LLVM_TARGET_DEFINITIONS TosaOps.td)
-mlir_tablegen(TosaDialect.h.inc -gen-dialect-decls)
-mlir_tablegen(TosaOps.h.inc -gen-op-decls)
-mlir_tablegen(TosaOps.cpp.inc -gen-op-defs)
-add_public_tablegen_target(MLIRTosaOpsIncGen)
+add_mlir_dialect(TosaOps tosa)
+add_mlir_doc(TosaOps -gen-op-doc TosaOps Dialects/)
+add_mlir_interface(TosaInterfaces)
set(LLVM_TARGET_DEFINITIONS TosaOps.td)
mlir_tablegen(TosaStructs.h.inc -gen-struct-attr-decls)
mlir_tablegen(TosaStructs.cpp.inc -gen-struct-attr-defs)
add_public_tablegen_target(MLIRTosaStructsIncGen)
-
-set(LLVM_TARGET_DEFINITIONS TosaInterfaces.td)
-mlir_tablegen(TosaInterfaces.h.inc -gen-op-interface-decls)
-mlir_tablegen(TosaInterfaces.cpp.inc -gen-op-interface-defs)
-add_public_tablegen_target(MLIRTosaInterfaceIncGen)
-
-add_mlir_doc(TosaOps -gen-op-doc TosaOps Dialects/)
diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.h b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.h
index 7af0b6dbb704..4208adf42f37 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.h
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.h
@@ -21,7 +21,7 @@
//===----------------------------------------------------------------------===//
// TOSA dialect and structs includes.
//===----------------------------------------------------------------------===//
-#include "mlir/Dialect/Tosa/IR/TosaDialect.h.inc"
+#include "mlir/Dialect/Tosa/IR/TosaOpsDialect.h.inc"
#include "mlir/Dialect/Tosa/IR/TosaStructs.h.inc"
namespace mlir {
diff --git a/mlir/lib/Dialect/Tosa/CMakeLists.txt b/mlir/lib/Dialect/Tosa/CMakeLists.txt
index ddfe25f80f17..3f68c48a8c4b 100644
--- a/mlir/lib/Dialect/Tosa/CMakeLists.txt
+++ b/mlir/lib/Dialect/Tosa/CMakeLists.txt
@@ -9,7 +9,7 @@ add_mlir_dialect_library(MLIRTosa
MLIRStandardOpsIncGen
MLIRTosaOpsIncGen
MLIRTosaStructsIncGen
- MLIRTosaInterfaceIncGen
+ MLIRTosaInterfacesIncGen
LINK_LIBS PUBLIC
MLIRIR
More information about the Mlir-commits
mailing list