Skip to content

Commit b108fbe

Browse files
committed
[bazel] Fixes for 7f37b34, 0165e33 and 3c64f86
1 parent a4d17c4 commit b108fbe

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,32 @@ cc_library(
2626
),
2727
)
2828

29+
libc_support_library(
30+
name = "mp_common",
31+
srcs = ["MPCommon.cpp"],
32+
hdrs = ["MPCommon.h"],
33+
# Disable layering check when using mpfr_system.
34+
features = select(
35+
{
36+
"//conditions:default": [],
37+
"//libc:mpfr_system": ["-layering_check"],
38+
},
39+
),
40+
deps = [
41+
"//libc:__support_common",
42+
"//libc:__support_cpp_string",
43+
"//libc:__support_cpp_string_view",
44+
"//libc:__support_cpp_type_traits",
45+
"//libc:__support_fputil_cast",
46+
"//libc:__support_fputil_fp_bits",
47+
"//libc:__support_macros_config",
48+
"//libc:__support_macros_properties_types",
49+
"//libc/test/UnitTest:fp_test_helpers",
50+
"//libc/utils/MPFRWrapper:mpfr_impl",
51+
"@gmp//:gmp_",
52+
],
53+
)
54+
2955
libc_support_library(
3056
name = "mpfr_wrapper",
3157
srcs = ["MPFRUtils.cpp"],
@@ -38,6 +64,7 @@ libc_support_library(
3864
},
3965
),
4066
deps = [
67+
":mp_common",
4168
"//libc:__support_common",
4269
"//libc:__support_cpp_array",
4370
"//libc:__support_cpp_bit",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ cc_test(
536536
"//llvm:Support",
537537
"//llvm:TargetParser",
538538
"//llvm:TestingSupport",
539+
"//third-party/unittest:gmock",
539540
"//third-party/unittest:gtest",
540541
"//third-party/unittest:gtest_main",
541542
],

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,36 @@ exports_files(glob(["include/**/*.td"]))
8888
deps = [":OpBaseTdFiles"],
8989
)
9090
for name in [
91-
"OpAsmInterface",
9291
"RegionKindInterface",
9392
"SymbolInterfaces",
9493
]
9594
]
9695

96+
gentbl_cc_library(
97+
name = "OpAsmInterfaceIncGen",
98+
tbl_outs = [
99+
(
100+
["-gen-op-interface-decls"],
101+
"include/mlir/IR/OpAsmOpInterface.h.inc",
102+
),
103+
(
104+
["-gen-op-interface-defs"],
105+
"include/mlir/IR/OpAsmOpInterface.cpp.inc",
106+
),
107+
(
108+
["-gen-type-interface-decls"],
109+
"include/mlir/IR/OpAsmTypeInterface.h.inc",
110+
),
111+
(
112+
["-gen-type-interface-defs"],
113+
"include/mlir/IR/OpAsmTypeInterface.cpp.inc",
114+
),
115+
],
116+
tblgen = ":mlir-tblgen",
117+
td_file = "include/mlir/IR/OpAsmInterface.td",
118+
deps = [":OpBaseTdFiles"],
119+
)
120+
97121
gentbl_cc_library(
98122
name = "TensorEncodingIncGen",
99123
tbl_outs = [
@@ -356,6 +380,7 @@ cc_library(
356380
hdrs = glob([
357381
"include/mlir/IR/*.h",
358382
]) + [
383+
"include/mlir/IR/OpAsmOpInterface.h.inc",
359384
"include/mlir/Interfaces/FoldInterfaces.h",
360385
],
361386
includes = ["include"],

0 commit comments

Comments
 (0)