[llvm] [CycleInfo] Add missing exports to symbols used in tests (PR #225737)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 17:08:11 PDT 2026


https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/225737

>From 340d27c69fe2b136b41e7630e9ad47409f2f9daf Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Tue, 15 Sep 2026 19:12:46 +0000
Subject: [PATCH 1/2] [CycleInfo] Add missing exports to symbols used in tests

---
 llvm/lib/CodeGen/MachineCycleAnalysis.cpp | 2 +-
 llvm/lib/IR/CycleInfo.cpp                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/CodeGen/MachineCycleAnalysis.cpp b/llvm/lib/CodeGen/MachineCycleAnalysis.cpp
index 21570d533b704..e1b7401fa6499 100644
--- a/llvm/lib/CodeGen/MachineCycleAnalysis.cpp
+++ b/llvm/lib/CodeGen/MachineCycleAnalysis.cpp
@@ -16,7 +16,7 @@
 
 using namespace llvm;
 
-template class llvm::GenericCycleInfo<llvm::MachineSSAContext>;
+template class LLVM_ABI_FOR_TEST llvm::GenericCycleInfo<llvm::MachineSSAContext>;
 
 char MachineCycleInfoWrapperPass::ID = 0;
 
diff --git a/llvm/lib/IR/CycleInfo.cpp b/llvm/lib/IR/CycleInfo.cpp
index 5353a303cb155..acfe2802fb222 100644
--- a/llvm/lib/IR/CycleInfo.cpp
+++ b/llvm/lib/IR/CycleInfo.cpp
@@ -12,4 +12,4 @@
 
 using namespace llvm;
 
-template class llvm::GenericCycleInfo<SSAContext>;
+template class LLVM_ABI_FOR_TEST llvm::GenericCycleInfo<SSAContext>;

>From e24d0d59e6f6b709c29859a42d701acd3502c896 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 23 Sep 2026 17:07:40 -0700
Subject: [PATCH 2/2] Formatting

---
 llvm/lib/CodeGen/MachineCycleAnalysis.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/llvm/lib/CodeGen/MachineCycleAnalysis.cpp b/llvm/lib/CodeGen/MachineCycleAnalysis.cpp
index e1b7401fa6499..ba1766b9792ed 100644
--- a/llvm/lib/CodeGen/MachineCycleAnalysis.cpp
+++ b/llvm/lib/CodeGen/MachineCycleAnalysis.cpp
@@ -16,7 +16,8 @@
 
 using namespace llvm;
 
-template class LLVM_ABI_FOR_TEST llvm::GenericCycleInfo<llvm::MachineSSAContext>;
+template class LLVM_ABI_FOR_TEST
+    llvm::GenericCycleInfo<llvm::MachineSSAContext>;
 
 char MachineCycleInfoWrapperPass::ID = 0;
 



More information about the llvm-commits mailing list