From d5aa8124a432476b20f9871e050ae3baa7a521b4 Mon Sep 17 00:00:00 2001 From: h2h Date: Mon, 13 Oct 2025 10:27:15 -0700 Subject: [PATCH] [Bazel] Add more llvm tools --- .../llvm-project-overlay/llvm/BUILD.bazel | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel index 5357a6abe0ca1..b415a367d2c19 100644 --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -5671,6 +5671,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,