LLVM 19.0.0git
Macros | Functions | Variables
LoongArchTargetMachine.cpp File Reference
#include "LoongArchTargetMachine.h"
#include "LoongArch.h"
#include "LoongArchMachineFunctionInfo.h"
#include "LoongArchTargetTransformInfo.h"
#include "MCTargetDesc/LoongArchBaseInfo.h"
#include "TargetInfo/LoongArchTargetInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Transforms/Scalar.h"
#include <optional>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "loongarch"
 

Functions

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLoongArchTarget ()
 
static std::string computeDataLayout (const Triple &TT)
 
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< boolEnableLoopDataPrefetch ("loongarch-enable-loop-data-prefetch", cl::Hidden, cl::desc("Enable the loop data prefetch pass"), cl::init(false))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "loongarch"

Definition at line 30 of file LoongArchTargetMachine.cpp.

Function Documentation

◆ computeDataLayout()

static std::string computeDataLayout ( const Triple TT)
static

Definition at line 46 of file LoongArchTargetMachine.cpp.

References assert().

◆ getEffectiveLoongArchCodeModel()

static CodeModel::Model getEffectiveLoongArchCodeModel ( const Triple TT,
std::optional< CodeModel::Model CM 
)
static

◆ getEffectiveRelocModel()

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

Definition at line 53 of file LoongArchTargetMachine.cpp.

References llvm::Reloc::Static.

◆ LLVMInitializeLoongArchTarget()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLoongArchTarget ( )

Variable Documentation

◆ 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