Skip to content

Commit f3d53a8

Browse files
HighW4y2H3llaokblast
authored andcommitted
[Bazel] Add more llvm tools (llvm#163228)
Adding llvm-ir2vec, llvm-ctxprof-util (and llvm-sim) in the Bazel configs. llvm-ctxprof-util and llvm-ir2vec are used in several LIT unit tests, and the missing binary is causing unit test failures. llvm-ctxprof-util: https://github.com/llvm/llvm-project/blob/15cde999d47c3edc7647faf5fd967f5d5d88416a/llvm/test/Analysis/CtxProfAnalysis/flatten-icp.ll#L2 llvm-ir2vec: https://github.com/llvm/llvm-project/blob/55d4e92c8821d5543469118a76fe38db866377b7/llvm/utils/mlgo-utils/IR2Vec/generateTriplets.py#L60 llvm-sim: https://github.com/llvm/llvm-project/blob/894eaf481542adefde861a7e39f769f21d3f4fa4/llvm/test/lit.cfg.py#L268
1 parent 16713e7 commit f3d53a8

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5671,6 +5671,57 @@ cc_binary(
56715671
],
56725672
)
56735673

5674+
cc_binary(
5675+
name = "llvm-sim",
5676+
testonly = True,
5677+
srcs = glob([
5678+
"tools/llvm-sim/*.cpp",
5679+
]),
5680+
copts = llvm_copts,
5681+
stamp = 0,
5682+
deps = [
5683+
":Analysis",
5684+
":Core",
5685+
":IRReader",
5686+
":Support",
5687+
":config",
5688+
],
5689+
)
5690+
5691+
cc_binary(
5692+
name = "llvm-ir2vec",
5693+
testonly = True,
5694+
srcs = glob([
5695+
"tools/llvm-ir2vec/*.cpp",
5696+
]),
5697+
copts = llvm_copts,
5698+
stamp = 0,
5699+
deps = [
5700+
":Analysis",
5701+
":Core",
5702+
":IRReader",
5703+
":Support",
5704+
":config",
5705+
],
5706+
)
5707+
5708+
cc_binary(
5709+
name = "llvm-ctxprof-util",
5710+
testonly = True,
5711+
srcs = glob([
5712+
"tools/llvm-ctxprof-util/*.cpp",
5713+
]),
5714+
copts = llvm_copts,
5715+
stamp = 0,
5716+
deps = [
5717+
":Core",
5718+
":Object",
5719+
":ProfileData",
5720+
":Support",
5721+
":config",
5722+
],
5723+
)
5724+
56745725
cc_binary(
56755726
name = "obj2yaml",
56765727
testonly = True,

0 commit comments

Comments
 (0)