Skip to content

Commit

Permalink
[CodeLayout] Changed option names cds to cdsort (#69668)
Browse files Browse the repository at this point in the history
Renaming cds-> cdsort for consistency. This is NFC unless somebody uses
older names
  • Loading branch information
spupyrev committed Oct 27, 2023
1 parent 7cfac1b commit f61179f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions llvm/lib/Transforms/Utils/CodeLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,23 @@ static cl::opt<double> MaxMergeDensityRatio(
"ext-tsp-max-merge-density-ratio", cl::ReallyHidden, cl::init(100),
cl::desc("The maximum ratio between densities of two chains for merging"));

// Algorithm-specific options for CDS.
static cl::opt<unsigned> CacheEntries("cds-cache-entries", cl::ReallyHidden,
// Algorithm-specific options for CDSort.
static cl::opt<unsigned> CacheEntries("cdsort-cache-entries", cl::ReallyHidden,
cl::desc("The size of the cache"));

static cl::opt<unsigned> CacheSize("cds-cache-size", cl::ReallyHidden,
static cl::opt<unsigned> CacheSize("cdsort-cache-size", cl::ReallyHidden,
cl::desc("The size of a line in the cache"));

static cl::opt<unsigned>
CDMaxChainSize("cdsort-max-chain-size", cl::ReallyHidden,
cl::desc("The maximum size of a chain to create"));

static cl::opt<double> DistancePower(
"cds-distance-power", cl::ReallyHidden,
"cdsort-distance-power", cl::ReallyHidden,
cl::desc("The power exponent for the distance-based locality"));

static cl::opt<double> FrequencyScale(
"cds-frequency-scale", cl::ReallyHidden,
"cdsort-frequency-scale", cl::ReallyHidden,
cl::desc("The scale factor for the frequency-based locality"));

namespace {
Expand Down Expand Up @@ -1028,8 +1028,8 @@ class ExtTSPImpl {
std::vector<ChainT *> HotChains;
};

/// The implementation of the Cache-Directed Sort (CDS) algorithm for ordering
/// functions represented by a call graph.
/// The implementation of the Cache-Directed Sort (CDSort) algorithm for
/// ordering functions represented by a call graph.
class CDSortImpl {
public:
CDSortImpl(const CDSortConfig &Config, ArrayRef<uint64_t> NodeSizes,
Expand Down

0 comments on commit f61179f

Please sign in to comment.