LLVM 17.0.0git
Macros | Variables
CodeLayout.cpp File Reference
#include "llvm/Transforms/Utils/CodeLayout.h"
#include "llvm/Support/CommandLine.h"
#include <cmath>
Include dependency graph for CodeLayout.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "code-layout"
 

Variables

cl::opt< boolEnableExtTspBlockPlacement ("enable-ext-tsp-block-placement", cl::Hidden, cl::init(false), cl::desc("Enable machine block placement based on the ext-tsp model, " "optimizing I-cache utilization."))
 
cl::opt< boolApplyExtTspWithoutProfile ("ext-tsp-apply-without-profile", cl::desc("Whether to apply ext-tsp placement for instances w/o profile"), cl::init(true), cl::Hidden)
 
static cl::opt< double > ForwardWeightCond ("ext-tsp-forward-weight-cond", cl::ReallyHidden, cl::init(0.1), cl::desc("The weight of conditional forward jumps for ExtTSP value"))
 
static cl::opt< double > ForwardWeightUncond ("ext-tsp-forward-weight-uncond", cl::ReallyHidden, cl::init(0.1), cl::desc("The weight of unconditional forward jumps for ExtTSP value"))
 
static cl::opt< double > BackwardWeightCond ("ext-tsp-backward-weight-cond", cl::ReallyHidden, cl::init(0.1), cl::desc("The weight of conditonal backward jumps for ExtTSP value"))
 
static cl::opt< double > BackwardWeightUncond ("ext-tsp-backward-weight-uncond", cl::ReallyHidden, cl::init(0.1), cl::desc("The weight of unconditonal backward jumps for ExtTSP value"))
 
static cl::opt< double > FallthroughWeightCond ("ext-tsp-fallthrough-weight-cond", cl::ReallyHidden, cl::init(1.0), cl::desc("The weight of conditional fallthrough jumps for ExtTSP value"))
 
static cl::opt< double > FallthroughWeightUncond ("ext-tsp-fallthrough-weight-uncond", cl::ReallyHidden, cl::init(1.05), cl::desc("The weight of unconditional fallthrough jumps for ExtTSP value"))
 
static cl::opt< unsignedForwardDistance ("ext-tsp-forward-distance", cl::ReallyHidden, cl::init(1024), cl::desc("The maximum distance (in bytes) of a forward jump for ExtTSP"))
 
static cl::opt< unsignedBackwardDistance ("ext-tsp-backward-distance", cl::ReallyHidden, cl::init(640), cl::desc("The maximum distance (in bytes) of a backward jump for ExtTSP"))
 
static cl::opt< unsignedMaxChainSize ("ext-tsp-max-chain-size", cl::ReallyHidden, cl::init(4096), cl::desc("The maximum size of a chain to create."))
 
static cl::opt< unsignedChainSplitThreshold ("ext-tsp-chain-split-threshold", cl::ReallyHidden, cl::init(128), cl::desc("The maximum size of a chain to apply splitting"))
 
static cl::opt< boolEnableChainSplitAlongJumps ("ext-tsp-enable-chain-split-along-jumps", cl::ReallyHidden, cl::init(true), cl::desc("The maximum size of a chain to apply splitting"))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "code-layout"

Definition at line 48 of file CodeLayout.cpp.

Variable Documentation

◆ ApplyExtTspWithoutProfile

cl::opt< bool > ApplyExtTspWithoutProfile("ext-tsp-apply-without-profile", cl::desc("Whether to apply ext-tsp placement for instances w/o profile"), cl::init(true), cl::Hidden) ( "ext-tsp-apply-without-profile"  ,
cl::desc("Whether to apply ext-tsp placement for instances w/o profile")  ,
cl::init(true ,
cl::Hidden   
)

◆ BackwardDistance

cl::opt< unsigned > BackwardDistance("ext-tsp-backward-distance", cl::ReallyHidden, cl::init(640), cl::desc("The maximum distance (in bytes) of a backward jump for ExtTSP")) ( "ext-tsp-backward-distance"  ,
cl::ReallyHidden  ,
cl::init(640)  ,
cl::desc("The maximum distance (in bytes) of a backward jump for ExtTSP")   
)
static

◆ BackwardWeightCond

cl::opt< double > BackwardWeightCond("ext-tsp-backward-weight-cond", cl::ReallyHidden, cl::init(0.1), cl::desc("The weight of conditonal backward jumps for ExtTSP value")) ( "ext-tsp-backward-weight-cond"  ,
cl::ReallyHidden  ,
cl::init(0.1)  ,
cl::desc("The weight of conditonal backward jumps for ExtTSP value")   
)
static

◆ BackwardWeightUncond

cl::opt< double > BackwardWeightUncond("ext-tsp-backward-weight-uncond", cl::ReallyHidden, cl::init(0.1), cl::desc("The weight of unconditonal backward jumps for ExtTSP value")) ( "ext-tsp-backward-weight-uncond"  ,
cl::ReallyHidden  ,
cl::init(0.1)  ,
cl::desc("The weight of unconditonal backward jumps for ExtTSP value")   
)
static

◆ ChainSplitThreshold

cl::opt< unsigned > ChainSplitThreshold("ext-tsp-chain-split-threshold", cl::ReallyHidden, cl::init(128), cl::desc("The maximum size of a chain to apply splitting")) ( "ext-tsp-chain-split-threshold"  ,
cl::ReallyHidden  ,
cl::init(128)  ,
cl::desc("The maximum size of a chain to apply splitting")   
)
static

◆ EnableChainSplitAlongJumps

cl::opt< bool > EnableChainSplitAlongJumps("ext-tsp-enable-chain-split-along-jumps", cl::ReallyHidden, cl::init(true), cl::desc("The maximum size of a chain to apply splitting")) ( "ext-tsp-enable-chain-split-along-jumps"  ,
cl::ReallyHidden  ,
cl::init(true ,
cl::desc("The maximum size of a chain to apply splitting")   
)
static

◆ EnableExtTspBlockPlacement

cl::opt< bool > EnableExtTspBlockPlacement("enable-ext-tsp-block-placement", cl::Hidden, cl::init(false), cl::desc("Enable machine block placement based on the ext-tsp model, " "optimizing I-cache utilization.")) ( "enable-ext-tsp-block-placement"  ,
cl::Hidden  ,
cl::init(false)  ,
cl::desc("Enable machine block placement based on the ext-tsp model, " "optimizing I-cache utilization.")   
)

◆ FallthroughWeightCond

cl::opt< double > FallthroughWeightCond("ext-tsp-fallthrough-weight-cond", cl::ReallyHidden, cl::init(1.0), cl::desc("The weight of conditional fallthrough jumps for ExtTSP value")) ( "ext-tsp-fallthrough-weight-cond"  ,
cl::ReallyHidden  ,
cl::init(1.0)  ,
cl::desc("The weight of conditional fallthrough jumps for ExtTSP value")   
)
static

◆ FallthroughWeightUncond

cl::opt< double > FallthroughWeightUncond("ext-tsp-fallthrough-weight-uncond", cl::ReallyHidden, cl::init(1.05), cl::desc("The weight of unconditional fallthrough jumps for ExtTSP value")) ( "ext-tsp-fallthrough-weight-uncond"  ,
cl::ReallyHidden  ,
cl::init(1.05)  ,
cl::desc("The weight of unconditional fallthrough jumps for ExtTSP value")   
)
static

◆ ForwardDistance

cl::opt< unsigned > ForwardDistance("ext-tsp-forward-distance", cl::ReallyHidden, cl::init(1024), cl::desc("The maximum distance (in bytes) of a forward jump for ExtTSP")) ( "ext-tsp-forward-distance"  ,
cl::ReallyHidden  ,
cl::init(1024)  ,
cl::desc("The maximum distance (in bytes) of a forward jump for ExtTSP")   
)
static

◆ ForwardWeightCond

cl::opt< double > ForwardWeightCond("ext-tsp-forward-weight-cond", cl::ReallyHidden, cl::init(0.1), cl::desc("The weight of conditional forward jumps for ExtTSP value")) ( "ext-tsp-forward-weight-cond"  ,
cl::ReallyHidden  ,
cl::init(0.1)  ,
cl::desc("The weight of conditional forward jumps for ExtTSP value")   
)
static

◆ ForwardWeightUncond

cl::opt< double > ForwardWeightUncond("ext-tsp-forward-weight-uncond", cl::ReallyHidden, cl::init(0.1), cl::desc("The weight of unconditional forward jumps for ExtTSP value")) ( "ext-tsp-forward-weight-uncond"  ,
cl::ReallyHidden  ,
cl::init(0.1)  ,
cl::desc("The weight of unconditional forward jumps for ExtTSP value")   
)
static

◆ MaxChainSize

cl::opt< unsigned > MaxChainSize("ext-tsp-max-chain-size", cl::ReallyHidden, cl::init(4096), cl::desc("The maximum size of a chain to create.")) ( "ext-tsp-max-chain-size"  ,
cl::ReallyHidden  ,
cl::init(4096)  ,
cl::desc("The maximum size of a chain to create.")   
)
static