From 148faa62a91bd9ea5f0f35d636bda96fddce6b3c Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Wed, 19 Nov 2025 17:25:45 -0800 Subject: [PATCH 1/2] [bazel] Fix #165009 --- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel index c936670168b94..4ba3f90a4e047 100644 --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -784,6 +784,14 @@ cc_binary( ], ) +gentbl_cc_library( + name = "target_library_info_gen", + tbl_outs = {"include/llvm/Analysis/TargetLibraryInfo.inc": ["-gen-target-library-info"]}, + tblgen = ":llvm-tblgen", + td_file = "include/llvm/Analysis/TargetLibraryInfo.td", + deps = [":CommonTargetTdFiles"], +) + gentbl_cc_library( name = "intrinsic_enums_gen", tbl_outs = {"include/llvm/IR/IntrinsicEnums.inc": ["-gen-intrinsic-enums"]}, @@ -1260,6 +1268,7 @@ cc_library( ":Support", ":TargetParser", ":config", + ":target_library_info_gen" ], ) @@ -1293,6 +1302,7 @@ cc_library( ":Support", ":TargetParser", ":config", + ":target_library_info_gen" ], ) @@ -1352,6 +1362,7 @@ cc_library( filegroup( name = "common_target_td_sources", srcs = glob([ + "include/llvm/Analysis/*.td", "include/llvm/CodeGen/*.td", "include/llvm/Frontend/Directive/*.td", "include/llvm/IR/Intrinsics*.td", From be68c42e10cf7bfa165551bcf551c0703bebd2b1 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Wed, 19 Nov 2025 17:38:33 -0800 Subject: [PATCH 2/2] buildifier fix --- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel index 4ba3f90a4e047..b33749d6a404c 100644 --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -1268,7 +1268,7 @@ cc_library( ":Support", ":TargetParser", ":config", - ":target_library_info_gen" + ":target_library_info_gen", ], ) @@ -1302,7 +1302,7 @@ cc_library( ":Support", ":TargetParser", ":config", - ":target_library_info_gen" + ":target_library_info_gen", ], )