[Mlir-commits] [mlir] 5217498 - [mlir][bazel] Port for 660f714e26999d266232a1fbb02712bb879bd34e
Haojian Wu
llvmlistbot at llvm.org
Fri May 26 23:05:55 PDT 2023
Author: Haojian Wu
Date: 2023-05-27T08:05:19+02:00
New Revision: 5217498dc88aa2de2b728462205ffa8b01d96cab
URL: https://github.com/llvm/llvm-project/commit/5217498dc88aa2de2b728462205ffa8b01d96cab
DIFF: https://github.com/llvm/llvm-project/commit/5217498dc88aa2de2b728462205ffa8b01d96cab.diff
LOG: [mlir][bazel] Port for 660f714e26999d266232a1fbb02712bb879bd34e
Added:
Modified:
mlir/lib/Bytecode/Writer/IRNumbering.h
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
Removed:
################################################################################
diff --git a/mlir/lib/Bytecode/Writer/IRNumbering.h b/mlir/lib/Bytecode/Writer/IRNumbering.h
index 329ca2db8a80a..c10e09ade6e48 100644
--- a/mlir/lib/Bytecode/Writer/IRNumbering.h
+++ b/mlir/lib/Bytecode/Writer/IRNumbering.h
@@ -18,7 +18,6 @@
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/StringMap.h"
-#include "llvm/CodeGen/NonRelocatableStringpool.h"
#include <cstdint>
namespace mlir {
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 11a4a25d3b9ff..08d71f6bc1fa0 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -3979,6 +3979,40 @@ cc_library(
],
)
+gentbl_cc_library(
+ name = "BytecodeOpInterfaceIncGen",
+ strip_include_prefix = "include",
+ tbl_outs = [
+ (
+ ["-gen-op-interface-decls"],
+ "include/mlir/Bytecode/BytecodeOpInterface.h.inc",
+ ),
+ (
+ ["-gen-op-interface-defs"],
+ "include/mlir/Bytecode/BytecodeOpInterface.cpp.inc",
+ ),
+ ],
+ tblgen = ":mlir-tblgen",
+ td_file = "include/mlir/Bytecode/BytecodeOpInterface.td",
+ deps = [":LLVMOpsTdFiles"],
+)
+
+cc_library(
+ name = "BytecodeOpInterface",
+ srcs = glob([
+ "lib/Bytecode/BytecodeOpInterface.cpp",
+ ]),
+ hdrs = glob([
+ "include/mlir/Bytecode/*.h",
+ ]),
+ includes = ["include"],
+ deps = [
+ ":BytecodeOpInterfaceIncGen",
+ ":IR",
+ ":Support",
+ ],
+)
+
cc_library(
name = "BytecodeReader",
srcs = glob([
@@ -4010,6 +4044,7 @@ cc_library(
]),
includes = ["include"],
deps = [
+ ":BytecodeOpInterface",
":IR",
":Support",
"//llvm:Support",
More information about the Mlir-commits
mailing list