LLVM 22.0.0git
MipsTargetObjectFile.cpp File Reference

Go to the source code of this file.

Functions

static bool IsInSmallSection (uint64_t Size)

Variables

static cl::opt< unsignedSSThreshold ("mips-ssection-threshold", cl::Hidden, cl::desc("Small data and bss section threshold size (default=8)"), cl::init(8))
static cl::opt< boolLocalSData ("mlocal-sdata", cl::Hidden, cl::desc("MIPS: Use gp_rel for object-local data."), cl::init(true))
static cl::opt< boolExternSData ("mextern-sdata", cl::Hidden, cl::desc("MIPS: Use gp_rel for data that is not defined by the " "current object."), cl::init(true))
static cl::opt< boolEmbeddedData ("membedded-data", cl::Hidden, cl::desc("MIPS: Try to allocate variables in the following" " sections if possible: .rodata, .sdata, .data ."), cl::init(false))

Function Documentation

◆ IsInSmallSection()

bool IsInSmallSection ( uint64_t Size)
static

Definition at line 60 of file MipsTargetObjectFile.cpp.

References Size, and SSThreshold.

Referenced by llvm::MipsTargetObjectFile::IsConstantInSmallSection().

Variable Documentation

◆ EmbeddedData

cl::opt< bool > EmbeddedData("membedded-data", cl::Hidden, cl::desc("MIPS: Try to allocate variables in the following" " sections if possible: .rodata, .sdata, .data ."), cl::init(false)) ( "membedded-data" ,
cl::Hidden ,
cl::desc("MIPS: Try to allocate variables in the following" " sections if possible: .rodata, .sdata, .data .") ,
cl::init(false)  )
static

◆ ExternSData

cl::opt< bool > ExternSData("mextern-sdata", cl::Hidden, cl::desc("MIPS: Use gp_rel for data that is not defined by the " "current object."), cl::init(true)) ( "mextern-sdata" ,
cl::Hidden ,
cl::desc("MIPS: Use gp_rel for data that is not defined by the " "current object.") ,
cl::init(true)  )
static

◆ LocalSData

cl::opt< bool > LocalSData("mlocal-sdata", cl::Hidden, cl::desc("MIPS: Use gp_rel for object-local data."), cl::init(true)) ( "mlocal-sdata" ,
cl::Hidden ,
cl::desc("MIPS: Use gp_rel for object-local data.") ,
cl::init(true)  )
static

◆ SSThreshold

cl::opt< unsigned > SSThreshold("mips-ssection-threshold", cl::Hidden, cl::desc("Small data and bss section threshold size (default=8)"), cl::init(8)) ( "mips-ssection-threshold" ,
cl::Hidden ,
cl::desc("Small data and bss section threshold size (default=8)") ,
cl::init(8)  )
static