Skip to content

Commit 7e9db96

Browse files
authored
[bazel] Fix compilation for AlignmentAttrInterface and BPF. (#166872)
1 parent 83d6077 commit 7e9db96

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,6 +2317,7 @@ llvm_target_lib_list = [lib for lib in [
23172317
"lib/Target/BPF/BPFGenInstrInfo.inc": ["-gen-instr-info"],
23182318
"lib/Target/BPF/BPFGenRegisterInfo.inc": ["-gen-register-info"],
23192319
"lib/Target/BPF/BPFGenSubtargetInfo.inc": ["-gen-subtarget"],
2320+
"lib/Target/BPF/BPFGenSDNodeInfo.inc": ["-gen-sd-node-info"],
23202321
},
23212322
},
23222323
{

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,34 @@ cc_library(
357357
],
358358
)
359359

360+
td_library(
361+
name = "AlignmentAttrInterfaceTdFiles",
362+
srcs = ["include/mlir/Interfaces/AlignmentAttrInterface.td"],
363+
includes = ["include"],
364+
deps = [":OpBaseTdFiles"],
365+
)
366+
367+
gentbl_cc_library(
368+
name = "AlignmentAttrInterfaceIncGen",
369+
tbl_outs = {
370+
"include/mlir/Interfaces/AlignmentAttrInterface.h.inc": ["-gen-op-interface-decls"],
371+
"include/mlir/Interfaces/AlignmentAttrInterface.cpp.inc": ["-gen-op-interface-defs"],
372+
},
373+
tblgen = ":mlir-tblgen",
374+
td_file = "include/mlir/Interfaces/AlignmentAttrInterface.td",
375+
deps = [":OpBaseTdFiles"],
376+
)
377+
378+
cc_library(
379+
name = "AlignmentAttrInterface",
380+
hdrs = ["include/mlir/Interfaces/AlignmentAttrInterface.h"],
381+
deps = [
382+
":AlignmentAttrInterfaceIncGen",
383+
":IR",
384+
"//llvm:Support",
385+
],
386+
)
387+
360388
cc_library(
361389
name = "IR",
362390
srcs = glob([
@@ -6836,6 +6864,7 @@ td_library(
68366864
srcs = glob(["include/mlir/Dialect/SPIRV/IR/*.td"]),
68376865
includes = ["include"],
68386866
deps = [
6867+
":AlignmentAttrInterfaceTdFiles",
68396868
":BuiltinDialectTdFiles",
68406869
":CallInterfacesTdFiles",
68416870
":ControlFlowInterfacesTdFiles",
@@ -11327,6 +11356,7 @@ td_library(
1132711356
],
1132811357
includes = ["include"],
1132911358
deps = [
11359+
":AlignmentAttrInterfaceTdFiles",
1133011360
":ControlFlowInterfacesTdFiles",
1133111361
":DestinationStyleOpInterfaceTdFiles",
1133211362
":IndexingMapOpInterfaceTdFiles",
@@ -12907,6 +12937,7 @@ td_library(
1290712937
],
1290812938
includes = ["include"],
1290912939
deps = [
12940+
":AlignmentAttrInterfaceTdFiles",
1291012941
":ArithOpsTdFiles",
1291112942
":CastInterfacesTdFiles",
1291212943
":ControlFlowInterfacesTdFiles",
@@ -12988,6 +13019,7 @@ cc_library(
1298813019
],
1298913020
includes = ["include"],
1299013021
deps = [
13022+
":AlignmentAttrInterface",
1299113023
":AllocationOpInterface",
1299213024
":ArithDialect",
1299313025
":ArithUtils",

0 commit comments

Comments
 (0)