[Mlir-commits] [mlir] f570cc1 - [mlir][NFC] Move CodeGenHelpers.cpp from mlir-tblgen to TableGen library
Markus Böck
llvmlistbot at llvm.org
Mon Sep 5 04:06:15 PDT 2022
Author: Markus Böck
Date: 2022-09-05T13:05:57+02:00
New Revision: f570cc173def519b1421fd35034c9b20b97dfd72
URL: https://github.com/llvm/llvm-project/commit/f570cc173def519b1421fd35034c9b20b97dfd72
DIFF: https://github.com/llvm/llvm-project/commit/f570cc173def519b1421fd35034c9b20b97dfd72.diff
LOG: [mlir][NFC] Move CodeGenHelpers.cpp from mlir-tblgen to TableGen library
Its header was already part of the TableGen library, but unusable as uses of its functions or classes would lead to undefined references when linking. This fixes that.
Added:
mlir/lib/TableGen/CodeGenHelpers.cpp
Modified:
mlir/lib/TableGen/CMakeLists.txt
mlir/tools/mlir-tblgen/CMakeLists.txt
Removed:
mlir/tools/mlir-tblgen/CodeGenHelpers.cpp
################################################################################
diff --git a/mlir/lib/TableGen/CMakeLists.txt b/mlir/lib/TableGen/CMakeLists.txt
index 55a2e355d6a39..74c6cdc834abd 100644
--- a/mlir/lib/TableGen/CMakeLists.txt
+++ b/mlir/lib/TableGen/CMakeLists.txt
@@ -14,6 +14,7 @@ llvm_add_library(MLIRTableGen STATIC
AttrOrTypeDef.cpp
Builder.cpp
Class.cpp
+ CodeGenHelpers.cpp
Constraint.cpp
Dialect.cpp
Format.cpp
diff --git a/mlir/tools/mlir-tblgen/CodeGenHelpers.cpp b/mlir/lib/TableGen/CodeGenHelpers.cpp
similarity index 100%
rename from mlir/tools/mlir-tblgen/CodeGenHelpers.cpp
rename to mlir/lib/TableGen/CodeGenHelpers.cpp
diff --git a/mlir/tools/mlir-tblgen/CMakeLists.txt b/mlir/tools/mlir-tblgen/CMakeLists.txt
index afc3ab1853986..fe217450d6fb6 100644
--- a/mlir/tools/mlir-tblgen/CMakeLists.txt
+++ b/mlir/tools/mlir-tblgen/CMakeLists.txt
@@ -9,7 +9,6 @@ add_tablegen(mlir-tblgen MLIR
EXPORT MLIR
AttrOrTypeDefGen.cpp
AttrOrTypeFormatGen.cpp
- CodeGenHelpers.cpp
DialectGen.cpp
DirectiveCommonGen.cpp
EnumsGen.cpp
More information about the Mlir-commits
mailing list