Skip to content

Commit d76fca4

Browse files
committed
Manual: Add ABI annotations to cl opts used by MemoryProfile unittests
1 parent 413f292 commit d76fca4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Analysis/MemoryProfileInfo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ using namespace llvm::memprof;
2020

2121
// Upper bound on lifetime access density (accesses per byte per lifetime sec)
2222
// for marking an allocation cold.
23+
LLVM_FUNC_ABI // Used by unittests.
2324
cl::opt<float> MemProfLifetimeAccessDensityColdThreshold(
2425
"memprof-lifetime-access-density-cold-threshold", cl::init(0.05),
2526
cl::Hidden,
@@ -28,13 +29,15 @@ cl::opt<float> MemProfLifetimeAccessDensityColdThreshold(
2829

2930
// Lower bound on lifetime to mark an allocation cold (in addition to accesses
3031
// per byte per sec above). This is to avoid pessimizing short lived objects.
32+
LLVM_FUNC_ABI // Used by unittests.
3133
cl::opt<unsigned> MemProfAveLifetimeColdThreshold(
3234
"memprof-ave-lifetime-cold-threshold", cl::init(200), cl::Hidden,
3335
cl::desc("The average lifetime (s) for an allocation to be considered "
3436
"cold"));
3537

3638
// Lower bound on average lifetime accesses density (total life time access
3739
// density / alloc count) for marking an allocation hot.
40+
LLVM_FUNC_ABI // Used by unittests.
3841
cl::opt<unsigned> MemProfMinAveLifetimeAccessDensityHotThreshold(
3942
"memprof-min-ave-lifetime-access-density-hot-threshold", cl::init(1000),
4043
cl::Hidden,

0 commit comments

Comments
 (0)