LLVM 20.0.0git
Public Attributes | List of all members
llvm::codelayout::CDSortConfig Struct Reference

Algorithm-specific params for Cache-Directed Sort. More...

#include "llvm/Transforms/Utils/CodeLayout.h"

Public Attributes

unsigned CacheEntries = 16
 The size of the cache.
 
unsigned CacheSize = 2048
 The size of a line in the cache.
 
unsigned MaxChainSize = 128
 The maximum size of a chain to create.
 
double DistancePower = 0.25
 The power exponent for the distance-based locality.
 
double FrequencyScale = 0.25
 The scale factor for the frequency-based locality.
 

Detailed Description

Algorithm-specific params for Cache-Directed Sort.

The values are tuned for the best performance of large-scale front-end bound binaries.

Definition at line 62 of file CodeLayout.h.

Member Data Documentation

◆ CacheEntries

unsigned llvm::codelayout::CDSortConfig::CacheEntries = 16

The size of the cache.

Definition at line 64 of file CodeLayout.h.

◆ CacheSize

unsigned llvm::codelayout::CDSortConfig::CacheSize = 2048

The size of a line in the cache.

Definition at line 66 of file CodeLayout.h.

◆ DistancePower

double llvm::codelayout::CDSortConfig::DistancePower = 0.25

The power exponent for the distance-based locality.

Definition at line 70 of file CodeLayout.h.

◆ FrequencyScale

double llvm::codelayout::CDSortConfig::FrequencyScale = 0.25

The scale factor for the frequency-based locality.

Definition at line 72 of file CodeLayout.h.

◆ MaxChainSize

unsigned llvm::codelayout::CDSortConfig::MaxChainSize = 128

The maximum size of a chain to create.

Definition at line 68 of file CodeLayout.h.


The documentation for this struct was generated from the following file: