aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm-project-overlay/llvm/BUILD.bazel51
-rw-r--r--utils/bazel/llvm-project-overlay/llvm/config.bzl1
-rw-r--r--utils/bazel/llvm-project-overlay/mlir/BUILD.bazel1
3 files changed, 53 insertions, 0 deletions
diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index 5357a6a..b415a36 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -5672,6 +5672,57 @@ cc_binary(
)
cc_binary(
+ name = "llvm-sim",
+ testonly = True,
+ srcs = glob([
+ "tools/llvm-sim/*.cpp",
+ ]),
+ copts = llvm_copts,
+ stamp = 0,
+ deps = [
+ ":Analysis",
+ ":Core",
+ ":IRReader",
+ ":Support",
+ ":config",
+ ],
+)
+
+cc_binary(
+ name = "llvm-ir2vec",
+ testonly = True,
+ srcs = glob([
+ "tools/llvm-ir2vec/*.cpp",
+ ]),
+ copts = llvm_copts,
+ stamp = 0,
+ deps = [
+ ":Analysis",
+ ":Core",
+ ":IRReader",
+ ":Support",
+ ":config",
+ ],
+)
+
+cc_binary(
+ name = "llvm-ctxprof-util",
+ testonly = True,
+ srcs = glob([
+ "tools/llvm-ctxprof-util/*.cpp",
+ ]),
+ copts = llvm_copts,
+ stamp = 0,
+ deps = [
+ ":Core",
+ ":Object",
+ ":ProfileData",
+ ":Support",
+ ":config",
+ ],
+)
+
+cc_binary(
name = "obj2yaml",
testonly = True,
srcs = glob([
diff --git a/utils/bazel/llvm-project-overlay/llvm/config.bzl b/utils/bazel/llvm-project-overlay/llvm/config.bzl
index 3e9c032..fbd6f6b 100644
--- a/utils/bazel/llvm-project-overlay/llvm/config.bzl
+++ b/utils/bazel/llvm-project-overlay/llvm/config.bzl
@@ -105,6 +105,7 @@ llvm_config_defines = os_defines + builtin_thread_pointer + select({
"@bazel_tools//src/conditions:darwin_x86_64": native_arch_defines("X86", "x86_64-unknown-darwin"),
"@bazel_tools//src/conditions:linux_aarch64": native_arch_defines("AArch64", "aarch64-unknown-linux-gnu"),
"@bazel_tools//src/conditions:linux_ppc64le": native_arch_defines("PowerPC", "powerpc64le-unknown-linux-gnu"),
+ "@bazel_tools//src/conditions:linux_riscv64": native_arch_defines("RISCV", "riscv64-unknown-linux-gnu"),
"@bazel_tools//src/conditions:linux_s390x": native_arch_defines("SystemZ", "systemz-unknown-linux_gnu"),
"//conditions:default": native_arch_defines("X86", "x86_64-unknown-linux-gnu"),
}) + [
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index a4724b9..b5f14ff 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -1280,6 +1280,7 @@ cc_binary(
deps = [
":CAPIIR",
":CAPILLVM",
+ ":CAPITarget",
":MLIRBindingsPythonNanobindHeadersAndDeps",
"@nanobind",
],