Skip to content

Fix build for GenericFloatingPointPredicateUtils #140254 #141095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025

Conversation

tgymnich
Copy link
Member

@tgymnich tgymnich commented May 22, 2025

Fixes linker issue with #140254 / #140254

@llvmbot
Copy link
Member

llvmbot commented May 22, 2025

@llvm/pr-subscribers-llvm-globalisel

Author: Tim Gymnich (tgymnich)

Changes

Fixes linker issue with #140254


Full diff: https://github.com/llvm/llvm-project/pull/141095.diff

4 Files Affected:

  • (renamed) llvm/include/llvm/CodeGen/GlobalISel/MachineFloatingPointPredicateUtils.h ()
  • (modified) llvm/lib/CodeGen/CMakeLists.txt (-1)
  • (modified) llvm/lib/CodeGen/GlobalISel/CMakeLists.txt (+1)
  • (renamed) llvm/lib/CodeGen/GlobalISel/MachineFloatingPointPredicateUtils.cpp (+1-1)
diff --git a/llvm/include/llvm/CodeGen/MachineFloatingPointPredicateUtils.h b/llvm/include/llvm/CodeGen/GlobalISel/MachineFloatingPointPredicateUtils.h
similarity index 100%
rename from llvm/include/llvm/CodeGen/MachineFloatingPointPredicateUtils.h
rename to llvm/include/llvm/CodeGen/GlobalISel/MachineFloatingPointPredicateUtils.h
diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt
index dcf7c08d499e1..5dd6413431255 100644
--- a/llvm/lib/CodeGen/CMakeLists.txt
+++ b/llvm/lib/CodeGen/CMakeLists.txt
@@ -119,7 +119,6 @@ add_llvm_component_library(LLVMCodeGen
   MachineCycleAnalysis.cpp
   MachineDebugify.cpp
   MachineDomTreeUpdater.cpp
-  MachineFloatingPointPredicateUtils.cpp
   MachineDominanceFrontier.cpp
   MachineDominators.cpp
   MachineFrameInfo.cpp
diff --git a/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt b/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt
index 554a2367eb835..27b6ea745921a 100644
--- a/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt
+++ b/llvm/lib/CodeGen/GlobalISel/CMakeLists.txt
@@ -25,6 +25,7 @@ add_llvm_component_library(LLVMGlobalISel
   LoadStoreOpt.cpp
   Localizer.cpp
   LostDebugLocObserver.cpp
+  MachineFloatingPointPredicateUtils.cpp
   MachineIRBuilder.cpp
   RegBankSelect.cpp
   Utils.cpp
diff --git a/llvm/lib/CodeGen/MachineFloatingPointPredicateUtils.cpp b/llvm/lib/CodeGen/GlobalISel/MachineFloatingPointPredicateUtils.cpp
similarity index 95%
rename from llvm/lib/CodeGen/MachineFloatingPointPredicateUtils.cpp
rename to llvm/lib/CodeGen/GlobalISel/MachineFloatingPointPredicateUtils.cpp
index 3f640ded22c55..8c3035ad91e87 100644
--- a/llvm/lib/CodeGen/MachineFloatingPointPredicateUtils.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/MachineFloatingPointPredicateUtils.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/CodeGen/MachineFloatingPointPredicateUtils.h"
+#include "llvm/CodeGen/GlobalISel/MachineFloatingPointPredicateUtils.h"
 #include "llvm/CodeGen/GlobalISel/MIPatternMatch.h"
 #include "llvm/CodeGen/LowLevelTypeUtils.h"
 #include "llvm/CodeGen/MachineRegisterInfo.h"

@tgymnich tgymnich requested review from jplehr and arsenm May 22, 2025 16:00
@tgymnich tgymnich merged commit ed75e21 into llvm:main May 22, 2025
10 of 13 checks passed
@tgymnich tgymnich deleted the tim/fix-build branch May 22, 2025 16:41
tgymnich added a commit to tgymnich/llvm-project that referenced this pull request May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants