[llvm] [Target] Remove unneeded deps after 050470e75fb67bfb059a88db87ab5b2be… (PR #218840)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 22:51:16 PDT 2026


https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/218840

…96e7515

After 050470e75fb67bfb059a88db87ab5b2be96e7515, these dependencies are no longer needed as the need for them is no specific to the Passes library given that's where a big chunk of the CodeGenPassBuilder implementation lives now.

>From d7a858b393812920ba663202c82c783a6ec5676f Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 26 Aug 2026 05:49:53 +0000
Subject: [PATCH] [Target] Remove unneeded deps after
 050470e75fb67bfb059a88db87ab5b2be96e7515

After 050470e75fb67bfb059a88db87ab5b2be96e7515, these dependencies are
no longer needed as the need for them is no specific to the Passes
library given that's where a big chunk of the CodeGenPassBuilder
implementation lives now.
---
 llvm/lib/Target/BPF/CMakeLists.txt         | 2 --
 llvm/lib/Target/Lanai/CMakeLists.txt       | 3 ---
 llvm/lib/Target/MSP430/CMakeLists.txt      | 5 -----
 llvm/lib/Target/NVPTX/CMakeLists.txt       | 2 --
 llvm/lib/Target/RISCV/CMakeLists.txt       | 2 --
 llvm/lib/Target/WebAssembly/CMakeLists.txt | 2 --
 llvm/lib/Target/X86/CMakeLists.txt         | 2 --
 7 files changed, 18 deletions(-)

diff --git a/llvm/lib/Target/BPF/CMakeLists.txt b/llvm/lib/Target/BPF/CMakeLists.txt
index 2fb60e0b7591a..ddff969890eff 100644
--- a/llvm/lib/Target/BPF/CMakeLists.txt
+++ b/llvm/lib/Target/BPF/CMakeLists.txt
@@ -54,11 +54,9 @@ add_llvm_target(BPFCodeGen
   CodeGen
   CodeGenTypes
   Core
-  IRPrinter
   GlobalISel
   IPO
   MC
-  ObjCARC
   Passes
   Scalar
   SelectionDAG
diff --git a/llvm/lib/Target/Lanai/CMakeLists.txt b/llvm/lib/Target/Lanai/CMakeLists.txt
index 79ac0d049d533..65dab116b2cc0 100644
--- a/llvm/lib/Target/Lanai/CMakeLists.txt
+++ b/llvm/lib/Target/Lanai/CMakeLists.txt
@@ -38,14 +38,11 @@ add_llvm_target(LanaiCodeGen
   CodeGen
   CodeGenTypes
   Core
-  IRPrinter
   LanaiAsmParser
   LanaiDesc
   LanaiInfo
   MC
-  ObjCARC
   Passes
-  Scalar
   SelectionDAG
   Support
   Target
diff --git a/llvm/lib/Target/MSP430/CMakeLists.txt b/llvm/lib/Target/MSP430/CMakeLists.txt
index efe0222fe42ec..e1a741c251a30 100644
--- a/llvm/lib/Target/MSP430/CMakeLists.txt
+++ b/llvm/lib/Target/MSP430/CMakeLists.txt
@@ -31,23 +31,18 @@ add_llvm_target(MSP430CodeGen
   MSP430MCInstLower.cpp
 
   LINK_COMPONENTS
-  Analysis
   AsmPrinter
   CodeGen
   CodeGenTypes
   Core
-  IRPrinter
   MC
   MSP430Desc
   MSP430Info
-  ObjCARC
   Passes
-  Scalar
   SelectionDAG
   Support
   Target
   TargetParser
-  TransformUtils
 
   ADD_TO_COMPONENT
   MSP430
diff --git a/llvm/lib/Target/NVPTX/CMakeLists.txt b/llvm/lib/Target/NVPTX/CMakeLists.txt
index 1887fa0999844..8eb3471fa4fb2 100644
--- a/llvm/lib/Target/NVPTX/CMakeLists.txt
+++ b/llvm/lib/Target/NVPTX/CMakeLists.txt
@@ -62,11 +62,9 @@ add_llvm_target(NVPTXCodeGen
   CodeGenTypes
   Core
   IPO
-  IRPrinter
   MC
   NVPTXDesc
   NVPTXInfo
-  ObjCARC
   Passes
   Scalar
   SelectionDAG
diff --git a/llvm/lib/Target/RISCV/CMakeLists.txt b/llvm/lib/Target/RISCV/CMakeLists.txt
index a3423acbde89c..e1e705ede1af0 100644
--- a/llvm/lib/Target/RISCV/CMakeLists.txt
+++ b/llvm/lib/Target/RISCV/CMakeLists.txt
@@ -96,9 +96,7 @@ add_llvm_target(RISCVCodeGen
   Core
   GlobalISel
   IPO
-  IRPrinter
   MC
-  ObjCARC
   Passes
   RISCVDesc
   RISCVInfo
diff --git a/llvm/lib/Target/WebAssembly/CMakeLists.txt b/llvm/lib/Target/WebAssembly/CMakeLists.txt
index 6bd8988d10363..e96ac48aa00cb 100644
--- a/llvm/lib/Target/WebAssembly/CMakeLists.txt
+++ b/llvm/lib/Target/WebAssembly/CMakeLists.txt
@@ -88,10 +88,8 @@ add_llvm_target(WebAssemblyCodeGen
   CodeGen
   CodeGenTypes
   Core
-  IRPrinter
   GlobalISel
   MC
-  ObjCARC
   Passes
   Scalar
   SelectionDAG
diff --git a/llvm/lib/Target/X86/CMakeLists.txt b/llvm/lib/Target/X86/CMakeLists.txt
index bbf9b7d0c1767..a053eb8501701 100644
--- a/llvm/lib/Target/X86/CMakeLists.txt
+++ b/llvm/lib/Target/X86/CMakeLists.txt
@@ -108,13 +108,11 @@ add_llvm_target(X86CodeGen ${sources}
   CodeGenTypes
   Core
   GlobalISel
-  IRPrinter
   Instrumentation
   MC
   ObjCARC
   Passes
   ProfileData
-  Scalar
   SelectionDAG
   Support
   Target



More information about the llvm-commits mailing list