LLVM 22.0.0git
HexagonTargetObjectFile.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "hexagon-sdata"
#define TRACE_TO(s, X)
#define TRACE(X)

Functions

static bool isSmallDataSection (StringRef Sec)
static const chargetSectionSuffixForSize (unsigned Size)

Variables

static cl::opt< unsignedSmallDataThreshold ("hexagon-small-data-threshold", cl::init(8), cl::Hidden, cl::desc("The maximum size of an object in the sdata section"))
static cl::opt< boolNoSmallDataSorting ("mno-sort-sda", cl::init(false), cl::Hidden, cl::desc("Disable small data sections sorting"))
static cl::opt< boolStaticsInSData ("hexagon-statics-in-small-data", cl::Hidden, cl::desc("Allow static variables in .sdata"))
static cl::opt< boolTraceGVPlacement ("trace-gv-placement", cl::Hidden, cl::init(false), cl::desc("Trace global value placement"))
static cl::opt< boolEmitJtInText ("hexagon-emit-jt-text", cl::Hidden, cl::init(false), cl::desc("Emit hexagon jump tables in function section"))
static cl::opt< boolEmitLutInText ("hexagon-emit-lut-text", cl::Hidden, cl::init(false), cl::desc("Emit hexagon lookup tables in function section"))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "hexagon-sdata"

Definition at line 33 of file HexagonTargetObjectFile.cpp.

◆ TRACE

#define TRACE ( X)
Value:
do { \
TRACE_TO(errs(), X); \
} else { \
LLVM_DEBUG(TRACE_TO(dbgs(), X)); \
} \
} while (false)
static cl::opt< bool > TraceGVPlacement("trace-gv-placement", cl::Hidden, cl::init(false), cl::desc("Trace global value placement"))
#define TRACE_TO(s, X)
static TableGen::Emitter::OptClass< SkeletonEmitter > X("gen-skeleton-class", "Generate example skeleton class")
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
Definition Debug.cpp:207
LLVM_ABI raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.

Definition at line 72 of file HexagonTargetObjectFile.cpp.

Referenced by llvm::HexagonTargetObjectFile::getExplicitSectionGlobal(), and llvm::HexagonTargetObjectFile::SelectSectionForGlobal().

◆ TRACE_TO

#define TRACE_TO ( s,
X )
Value:
s << X

Definition at line 63 of file HexagonTargetObjectFile.cpp.

Function Documentation

◆ getSectionSuffixForSize()

const char * getSectionSuffixForSize ( unsigned Size)
static

Definition at line 97 of file HexagonTargetObjectFile.cpp.

References Size.

◆ isSmallDataSection()

bool isSmallDataSection ( StringRef Sec)
static

Variable Documentation

◆ EmitJtInText

cl::opt< bool > EmitJtInText("hexagon-emit-jt-text", cl::Hidden, cl::init(false), cl::desc("Emit hexagon jump tables in function section")) ( "hexagon-emit-jt-text" ,
cl::Hidden ,
cl::init(false) ,
cl::desc("Emit hexagon jump tables in function section")  )
static

◆ EmitLutInText

cl::opt< bool > EmitLutInText("hexagon-emit-lut-text", cl::Hidden, cl::init(false), cl::desc("Emit hexagon lookup tables in function section")) ( "hexagon-emit-lut-text" ,
cl::Hidden ,
cl::init(false) ,
cl::desc("Emit hexagon lookup tables in function section")  )
static

◆ NoSmallDataSorting

cl::opt< bool > NoSmallDataSorting("mno-sort-sda", cl::init(false), cl::Hidden, cl::desc("Disable small data sections sorting")) ( "mno-sort-sda" ,
cl::init(false) ,
cl::Hidden ,
cl::desc("Disable small data sections sorting")  )
static

◆ SmallDataThreshold

cl::opt< unsigned > SmallDataThreshold("hexagon-small-data-threshold", cl::init(8), cl::Hidden, cl::desc("The maximum size of an object in the sdata section")) ( "hexagon-small-data-threshold" ,
cl::init(8) ,
cl::Hidden ,
cl::desc("The maximum size of an object in the sdata section")  )
static

◆ StaticsInSData

cl::opt< bool > StaticsInSData("hexagon-statics-in-small-data", cl::Hidden, cl::desc("Allow static variables in .sdata")) ( "hexagon-statics-in-small-data" ,
cl::Hidden ,
cl::desc("Allow static variables in .sdata")  )
static

◆ TraceGVPlacement

cl::opt< bool > TraceGVPlacement("trace-gv-placement", cl::Hidden, cl::init(false), cl::desc("Trace global value placement")) ( "trace-gv-placement" ,
cl::Hidden ,
cl::init(false) ,
cl::desc("Trace global value placement")  )
static