)
cc_library(
+ name = "BytecodeReader",
+ srcs = glob([
+ "lib/Bytecode/Reader/*.cpp",
+ "lib/Bytecode/Reader/*.h",
+ "lib/Bytecode/*.h",
+ ]),
+ hdrs = glob([
+ "include/mlir/Bytecode/*.h",
+ ]),
+ includes = ["include"],
+ deps = [
+ ":AsmParser",
+ ":IR",
+ ":Support",
+ "//llvm:Support",
+ ],
+)
+
+cc_library(
+ name = "BytecodeWriter",
+ srcs = glob([
+ "lib/Bytecode/Writer/*.cpp",
+ "lib/Bytecode/Writer/*.h",
+ "lib/Bytecode/*.h",
+ ]),
+ hdrs = glob([
+ "include/mlir/Bytecode/*.h",
+ ]),
+ includes = ["include"],
+ deps = [
+ ":IR",
+ ":Support",
+ "//llvm:Support",
+ ],
+)
+
+cc_library(
name = "Parser",
srcs = glob([
"lib/Parser/*.cpp",
":AsmParser",
":IR",
":Support",
+ ":BytecodeReader",
"//llvm:Support",
],
)
hdrs = ["include/mlir/Tools/mlir-opt/MlirOptMain.h"],
includes = ["include"],
deps = [
+ ":BytecodeWriter",
":IR",
":Parser",
":Pass",