LLVM 22.0.0git
LoongArchTargetMachine.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "loongarch"

Functions

LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLoongArchTarget ()
static Reloc::Model getEffectiveRelocModel (const Triple &TT, std::optional< Reloc::Model > RM)
static CodeModel::Model getEffectiveLoongArchCodeModel (const Triple &TT, std::optional< CodeModel::Model > CM)

Variables

static cl::opt< boolEnableLoongArchDeadRegisterElimination ("loongarch-enable-dead-defs", cl::Hidden, cl::desc("Enable the pass that removes dead" " definitons and replaces stores to" " them with stores to r0"), cl::init(true))
static cl::opt< boolEnableLoopDataPrefetch ("loongarch-enable-loop-data-prefetch", cl::Hidden, cl::desc("Enable the loop data prefetch pass"), cl::init(false))
static cl::opt< boolEnableMergeBaseOffset ("loongarch-enable-merge-offset", cl::desc("Enable the merge base offset pass"), cl::init(true), cl::Hidden)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "loongarch"

Definition at line 31 of file LoongArchTargetMachine.cpp.

Function Documentation

◆ getEffectiveLoongArchCodeModel()

◆ getEffectiveRelocModel()

Reloc::Model getEffectiveRelocModel ( const Triple & TT,
std::optional< Reloc::Model > RM )
static

Definition at line 65 of file LoongArchTargetMachine.cpp.

References llvm::Reloc::Static.

◆ LLVMInitializeLoongArchTarget()

Variable Documentation

◆ EnableLoongArchDeadRegisterElimination

cl::opt< bool > EnableLoongArchDeadRegisterElimination("loongarch-enable-dead-defs", cl::Hidden, cl::desc("Enable the pass that removes dead" " definitons and replaces stores to" " them with stores to r0"), cl::init(true)) ( "loongarch-enable-dead-defs" ,
cl::Hidden ,
cl::desc("Enable the pass that removes dead" " definitons and replaces stores to" " them with stores to r0") ,
cl::init(true)  )
static

◆ EnableLoopDataPrefetch

cl::opt< bool > EnableLoopDataPrefetch("loongarch-enable-loop-data-prefetch", cl::Hidden, cl::desc("Enable the loop data prefetch pass"), cl::init(false)) ( "loongarch-enable-loop-data-prefetch" ,
cl::Hidden ,
cl::desc("Enable the loop data prefetch pass") ,
cl::init(false)  )
static

◆ EnableMergeBaseOffset

cl::opt< bool > EnableMergeBaseOffset("loongarch-enable-merge-offset", cl::desc("Enable the merge base offset pass"), cl::init(true), cl::Hidden) ( "loongarch-enable-merge-offset" ,
cl::desc("Enable the merge base offset pass") ,
cl::init(true) ,
cl::Hidden  )
static