Skip to content

Commit 2743543

Browse files
[mlir][bazel] Add apfloat test library (llvm#168115)
The apfloat code was added in llvm#167848, and some bazel was added in llvm#167916 but the runtime library for test-apfloat-emulation.mlir was missed. This patch adds the appropriate target.
1 parent 944278f commit 2743543

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9794,6 +9794,29 @@ cc_binary(
97949794
deps = [":mlir_float16_utils"],
97959795
)
97969796

9797+
cc_library(
9798+
name = "_mlir_apfloat_utils",
9799+
srcs = ["lib/ExecutionEngine/APFloatWrappers.cpp"],
9800+
defines = ["mlir_apfloat_wrappers_EXPORTS"],
9801+
includes = ["include"],
9802+
deps = [
9803+
"//llvm:Support",
9804+
],
9805+
)
9806+
9807+
# Indirection to avoid 'libmlir_apfloat_utils.so' filename clash.
9808+
alias(
9809+
name = "mlir_apfloat_utils",
9810+
actual = "_mlir_apfloat_utils",
9811+
)
9812+
9813+
cc_binary(
9814+
name = "libmlir_apfloat_utils.so",
9815+
linkshared = True,
9816+
linkstatic = False,
9817+
deps = [":mlir_apfloat_utils"],
9818+
)
9819+
97979820
# Unlike mlir_float16_utils, mlir_c_runner_utils, etc, we do *not* make
97989821
# this a shared library: because on the CMake side, doing so causes issues
97999822
# when building on Windows. In particular, various functions take/return

0 commit comments

Comments
 (0)