Skip to content

Commit da2bc32

Browse files
committed
[llvm] manual fixups to export annotations
1 parent fe5a1cd commit da2bc32

26 files changed

+79
-59
lines changed

llvm/include/llvm/Analysis/AssumptionCache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class AssumptionCache {
174174
class AssumptionAnalysis : public AnalysisInfoMixin<AssumptionAnalysis> {
175175
friend AnalysisInfoMixin<AssumptionAnalysis>;
176176

177-
static AnalysisKey Key;
177+
LLVM_ABI static AnalysisKey Key;
178178

179179
public:
180180
using Result = AssumptionCache;

llvm/include/llvm/Analysis/BlockFrequencyInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class BlockFrequencyAnalysis
120120
: public AnalysisInfoMixin<BlockFrequencyAnalysis> {
121121
friend AnalysisInfoMixin<BlockFrequencyAnalysis>;
122122

123-
static AnalysisKey Key;
123+
LLVM_ABI static AnalysisKey Key;
124124

125125
public:
126126
/// Provide the result type for this analysis pass.

llvm/include/llvm/Analysis/BranchProbabilityInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ class BranchProbabilityAnalysis
428428
: public AnalysisInfoMixin<BranchProbabilityAnalysis> {
429429
friend AnalysisInfoMixin<BranchProbabilityAnalysis>;
430430

431-
static AnalysisKey Key;
431+
LLVM_ABI static AnalysisKey Key;
432432

433433
public:
434434
/// Provide the result type for this analysis pass.

llvm/include/llvm/Analysis/CGSCCPassManager.h

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ class Module;
109109
#define DEBUG_TYPE "cgscc"
110110

111111
/// Extern template declaration for the analysis set for this IR unit.
112-
extern template class AllAnalysesOn<LazyCallGraph::SCC>;
112+
extern template class LLVM_TEMPLATE_ABI AllAnalysesOn<LazyCallGraph::SCC>;
113113

114-
extern template class AnalysisManager<LazyCallGraph::SCC, LazyCallGraph &>;
114+
extern template class LLVM_TEMPLATE_ABI
115+
AnalysisManager<LazyCallGraph::SCC, LazyCallGraph &>;
115116

116117
/// The CGSCC analysis manager.
117118
///
@@ -204,9 +205,10 @@ CGSCCAnalysisManagerModuleProxy::run(Module &M, ModuleAnalysisManager &AM);
204205

205206
// Ensure the \c CGSCCAnalysisManagerModuleProxy is provided as an extern
206207
// template.
207-
extern template class InnerAnalysisManagerProxy<CGSCCAnalysisManager, Module>;
208+
extern template class LLVM_TEMPLATE_ABI
209+
InnerAnalysisManagerProxy<CGSCCAnalysisManager, Module>;
208210

209-
extern template class OuterAnalysisManagerProxy<
211+
extern template class LLVM_TEMPLATE_ABI OuterAnalysisManagerProxy<
210212
ModuleAnalysisManager, LazyCallGraph::SCC, LazyCallGraph &>;
211213

212214
/// A proxy from a \c ModuleAnalysisManager to an \c SCC.
@@ -403,10 +405,11 @@ class FunctionAnalysisManagerCGSCCProxy
403405
private:
404406
friend AnalysisInfoMixin<FunctionAnalysisManagerCGSCCProxy>;
405407

406-
static AnalysisKey Key;
408+
LLVM_ABI static AnalysisKey Key;
407409
};
408410

409-
extern template class OuterAnalysisManagerProxy<CGSCCAnalysisManager, Function>;
411+
extern template class LLVM_TEMPLATE_ABI
412+
OuterAnalysisManagerProxy<CGSCCAnalysisManager, Function>;
410413

411414
/// A proxy from a \c CGSCCAnalysisManager to a \c Function.
412415
using CGSCCAnalysisManagerFunctionProxy =

llvm/include/llvm/Analysis/DomTreeUpdater.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@
2323

2424
namespace llvm {
2525

26+
class DomTreeUpdater;
2627
class PostDominatorTree;
2728

29+
extern template class LLVM_TEMPLATE_ABI
30+
GenericDomTreeUpdater<DomTreeUpdater, DominatorTree, PostDominatorTree>;
31+
2832
class DomTreeUpdater
2933
: public GenericDomTreeUpdater<DomTreeUpdater, DominatorTree,
3034
PostDominatorTree> {
@@ -114,17 +118,14 @@ class DomTreeUpdater
114118
bool forceFlushDeletedBB();
115119
};
116120

117-
extern template class GenericDomTreeUpdater<DomTreeUpdater, DominatorTree,
118-
PostDominatorTree>;
119-
120-
extern template void
121+
extern template LLVM_TEMPLATE_ABI void
121122
GenericDomTreeUpdater<DomTreeUpdater, DominatorTree,
122123
PostDominatorTree>::recalculate(Function &F);
123124

124-
extern template void
125+
extern template LLVM_TEMPLATE_ABI void
125126
GenericDomTreeUpdater<DomTreeUpdater, DominatorTree, PostDominatorTree>::
126127
applyUpdatesImpl</*IsForward=*/true>();
127-
extern template void
128+
extern template LLVM_TEMPLATE_ABI void
128129
GenericDomTreeUpdater<DomTreeUpdater, DominatorTree, PostDominatorTree>::
129130
applyUpdatesImpl</*IsForward=*/false>();
130131
} // namespace llvm

llvm/include/llvm/Analysis/GlobalsModRef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class GlobalsAAResult : public AAResultBase {
130130
/// Analysis pass providing a never-invalidated alias analysis result.
131131
class GlobalsAA : public AnalysisInfoMixin<GlobalsAA> {
132132
friend AnalysisInfoMixin<GlobalsAA>;
133-
static AnalysisKey Key;
133+
LLVM_ABI static AnalysisKey Key;
134134

135135
public:
136136
typedef GlobalsAAResult Result;

llvm/include/llvm/Analysis/LastRunTrackingAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class LastRunTrackingInfo {
9292
class LastRunTrackingAnalysis final
9393
: public AnalysisInfoMixin<LastRunTrackingAnalysis> {
9494
friend AnalysisInfoMixin<LastRunTrackingAnalysis>;
95-
static AnalysisKey Key;
95+
LLVM_ABI static AnalysisKey Key;
9696

9797
public:
9898
using Result = LastRunTrackingInfo;

llvm/include/llvm/Analysis/LazyCallGraph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ template <> struct GraphTraits<LazyCallGraph *> {
12631263
class LazyCallGraphAnalysis : public AnalysisInfoMixin<LazyCallGraphAnalysis> {
12641264
friend AnalysisInfoMixin<LazyCallGraphAnalysis>;
12651265

1266-
static AnalysisKey Key;
1266+
LLVM_ABI static AnalysisKey Key;
12671267

12681268
public:
12691269
/// Inform generic clients of the result type.

llvm/include/llvm/Analysis/LoopAnalysisManager.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ struct LoopStandardAnalysisResults {
6565
};
6666

6767
/// Extern template declaration for the analysis set for this IR unit.
68-
extern template class AllAnalysesOn<Loop>;
68+
extern template class LLVM_TEMPLATE_ABI AllAnalysesOn<Loop>;
6969

70-
extern template class AnalysisManager<Loop, LoopStandardAnalysisResults &>;
70+
extern template class LLVM_TEMPLATE_ABI
71+
AnalysisManager<Loop, LoopStandardAnalysisResults &>;
7172
/// The loop analysis manager.
7273
///
7374
/// See the documentation for the AnalysisManager template for detail
@@ -149,10 +150,11 @@ LoopAnalysisManagerFunctionProxy::run(Function &F, FunctionAnalysisManager &AM);
149150

150151
// Ensure the \c LoopAnalysisManagerFunctionProxy is provided as an extern
151152
// template.
152-
extern template class InnerAnalysisManagerProxy<LoopAnalysisManager, Function>;
153+
extern template class LLVM_TEMPLATE_ABI
154+
InnerAnalysisManagerProxy<LoopAnalysisManager, Function>;
153155

154-
extern template class OuterAnalysisManagerProxy<FunctionAnalysisManager, Loop,
155-
LoopStandardAnalysisResults &>;
156+
extern template class LLVM_TEMPLATE_ABI OuterAnalysisManagerProxy<
157+
FunctionAnalysisManager, Loop, LoopStandardAnalysisResults &>;
156158
/// A proxy from a \c FunctionAnalysisManager to a \c Loop.
157159
typedef OuterAnalysisManagerProxy<FunctionAnalysisManager, Loop,
158160
LoopStandardAnalysisResults &>

llvm/include/llvm/Analysis/LoopInfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ScalarEvolution;
3333
class raw_ostream;
3434

3535
// Implementation in Support/GenericLoopInfoImpl.h
36-
extern template class LoopBase<BasicBlock, Loop>;
36+
extern template class LLVM_TEMPLATE_ABI LoopBase<BasicBlock, Loop>;
3737

3838
/// Represents a single loop in the control flow graph. Note that not all SCCs
3939
/// in the CFG are necessarily loops.
@@ -403,7 +403,7 @@ class LLVM_ABI Loop : public LoopBase<BasicBlock, Loop> {
403403
};
404404

405405
// Implementation in Support/GenericLoopInfoImpl.h
406-
extern template class LoopInfoBase<BasicBlock, Loop>;
406+
extern template class LLVM_TEMPLATE_ABI LoopInfoBase<BasicBlock, Loop>;
407407

408408
class LoopInfo : public LoopInfoBase<BasicBlock, Loop> {
409409
typedef LoopInfoBase<BasicBlock, Loop> BaseT;
@@ -568,7 +568,7 @@ template <> struct GraphTraits<Loop *> {
568568
/// Analysis pass that exposes the \c LoopInfo for a function.
569569
class LoopAnalysis : public AnalysisInfoMixin<LoopAnalysis> {
570570
friend AnalysisInfoMixin<LoopAnalysis>;
571-
static AnalysisKey Key;
571+
LLVM_ABI static AnalysisKey Key;
572572

573573
public:
574574
typedef LoopInfo Result;

0 commit comments

Comments
 (0)