Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit d4877ca

Browse files
authored
Update BUILD files and submodule for [2f69975683f5](llvm/llvm-project@2f69975683f5)
1 parent 5031300 commit d4877ca

3 files changed

Lines changed: 66 additions & 8 deletions

File tree

‎llvm-bazel/llvm-project-overlay/llvm/BUILD‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,6 +3212,7 @@ cc_binary(
32123212
":ObjdumpOptsTableGen",
32133213
":Object",
32143214
":Option",
3215+
":OtoolOptsTableGen",
32153216
":Support",
32163217
":Symbolize",
32173218
":config",
@@ -3230,6 +3231,23 @@ gentbl(
32303231
td_srcs = ["include/llvm/Option/OptParser.td"],
32313232
)
32323233

3234+
binary_alias(
3235+
name = "llvm-otool",
3236+
binary = ":llvm-objdump",
3237+
)
3238+
3239+
gentbl(
3240+
name = "OtoolOptsTableGen",
3241+
strip_include_prefix = "tools/llvm-objdump",
3242+
tbl_outs = [(
3243+
"-gen-opt-parser-defs",
3244+
"tools/llvm-objdump/OtoolOpts.inc",
3245+
)],
3246+
tblgen = ":llvm-tblgen",
3247+
td_file = "tools/llvm-objdump/OtoolOpts.td",
3248+
td_srcs = ["include/llvm/Option/OptParser.td"],
3249+
)
3250+
32333251
cc_binary(
32343252
name = "llvm-opt-report",
32353253
srcs = glob([

‎llvm-bazel/llvm-project-overlay/mlir/BUILD‎

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,25 @@ cc_library(
288288
],
289289
)
290290

291+
cc_library(
292+
name = "CAPILinalg",
293+
srcs = [
294+
"lib/CAPI/Dialect/Linalg.cpp",
295+
"lib/CAPI/Dialect/LinalgPasses.cpp",
296+
],
297+
hdrs = [
298+
"include/mlir-c/Dialect/Linalg.h",
299+
],
300+
includes = ["include"],
301+
deps = [
302+
":CAPIIR",
303+
":LinalgOps",
304+
":LinalgPassIncGen",
305+
":LinalgTransforms",
306+
":Pass",
307+
],
308+
)
309+
291310
cc_library(
292311
name = "CAPIConversion",
293312
srcs = ["lib/CAPI/Conversion/Passes.cpp"],
@@ -301,6 +320,18 @@ cc_library(
301320
],
302321
)
303322

323+
cc_library(
324+
name = "CAPIDebug",
325+
srcs = ["lib/CAPI/Debug/Debug.cpp"],
326+
hdrs = ["include/mlir-c/Debug.h"],
327+
includes = ["include"],
328+
deps = [
329+
":CAPIIR",
330+
":Support",
331+
"//llvm:Support",
332+
],
333+
)
334+
304335
cc_library(
305336
name = "CAPIExecutionEngine",
306337
srcs = ["lib/CAPI/ExecutionEngine/ExecutionEngine.cpp"],
@@ -1238,7 +1269,7 @@ cc_library(
12381269
":LinalgToLLVM",
12391270
":LinalgToSPIRV",
12401271
":LinalgToStandard",
1241-
":MathToLLVM",
1272+
":MathToLibm",
12421273
":OpenMPToLLVM",
12431274
":PDLToPDLInterp",
12441275
":SCFToGPUPass",
@@ -4060,7 +4091,7 @@ cc_library(
40604091
":LinalgToStandard",
40614092
":LinalgTransforms",
40624093
":MathDialect",
4063-
":MathToLLVM",
4094+
":MathToLibm",
40644095
":MathTransforms",
40654096
":MemRefDialect",
40664097
":MemRefTransforms",
@@ -4983,6 +5014,14 @@ gentbl(
49835014
"-gen-pass-decls -name Linalg",
49845015
"include/mlir/Dialect/Linalg/Passes.h.inc",
49855016
),
5017+
(
5018+
"-gen-pass-capi-header --prefix Linalg",
5019+
"include/mlir/Dialect/Linalg/Passes.capi.h.inc",
5020+
),
5021+
(
5022+
"-gen-pass-capi-impl --prefix Linalg",
5023+
"include/mlir/Dialect/Linalg/Passes.capi.cpp.inc",
5024+
),
49865025
],
49875026
tblgen = ":mlir-tblgen",
49885027
td_file = "include/mlir/Dialect/Linalg/Passes.td",
@@ -5629,13 +5668,13 @@ cc_library(
56295668
)
56305669

56315670
cc_library(
5632-
name = "MathToLLVM",
5671+
name = "MathToLibm",
56335672
srcs = glob([
5634-
"lib/Conversion/MathToLLVM/*.cpp",
5635-
"lib/Conversion/MathToLLVM/*.h",
5673+
"lib/Conversion/MathToLibm/*.cpp",
5674+
"lib/Conversion/MathToLibm/*.h",
56365675
]) + ["lib/Conversion/PassDetail.h"],
56375676
hdrs = glob([
5638-
"include/mlir/Conversion/MathToLLVM/*.h",
5677+
"include/mlir/Conversion/MathToLibm/*.h",
56395678
]),
56405679
includes = ["include"],
56415680
deps = [
@@ -5644,9 +5683,10 @@ cc_library(
56445683
":LLVMDialect",
56455684
":MathDialect",
56465685
":Pass",
5647-
":StandardToLLVM",
5686+
":StandardOps",
56485687
":Support",
56495688
":Transforms",
5689+
":VectorOps",
56505690
"//llvm:Core",
56515691
"//llvm:Support",
56525692
],

‎third_party/llvm-project‎

Submodule llvm-project updated 1514 files

0 commit comments

Comments
 (0)