LLVM 22.0.0git
SystemZTargetTransformInfo.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "systemztti"

Functions

static bool isUsedAsMemCpySource (const Value *V, bool &OtherUse)
static void countNumMemAccesses (const Value *Ptr, unsigned &NumStores, unsigned &NumLoads, const Function *F)
static bool isFreeEltLoad (const Value *Op)
static unsigned getScalarSizeInBits (Type *Ty)
static unsigned getNumVectorRegs (Type *Ty)
static unsigned getElSizeLog2Diff (Type *Ty0, Type *Ty1)
static TypegetCmpOpsType (const Instruction *I, unsigned VF=1)
static unsigned getOperandsExtensionCost (const Instruction *I)
static bool isBswapIntrinsicCall (const Value *V)
InstructionCost getIntAddReductionCost (unsigned NumVec, unsigned ScalarBits)
InstructionCost getFastReductionCost (unsigned NumVec, unsigned NumElems, unsigned ScalarBits)
bool customCostReductions (unsigned Opcode)
static int getVectorIntrinsicInstrCost (Intrinsic::ID ID, Type *RetTy, const SmallVectorImpl< Type * > &ParamTys)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "systemztti"

Definition at line 30 of file SystemZTargetTransformInfo.cpp.

Function Documentation

◆ countNumMemAccesses()

void countNumMemAccesses ( const Value * Ptr,
unsigned & NumStores,
unsigned & NumLoads,
const Function * F )
static

◆ customCostReductions()

bool customCostReductions ( unsigned Opcode)
inline

◆ getCmpOpsType()

◆ getElSizeLog2Diff()

◆ getFastReductionCost()

InstructionCost getFastReductionCost ( unsigned NumVec,
unsigned NumElems,
unsigned ScalarBits )

◆ getIntAddReductionCost()

InstructionCost getIntAddReductionCost ( unsigned NumVec,
unsigned ScalarBits )

◆ getNumVectorRegs()

◆ getOperandsExtensionCost()

unsigned getOperandsExtensionCost ( const Instruction * I)
static

Definition at line 1079 of file SystemZTargetTransformInfo.cpp.

References I, and llvm::isa().

Referenced by llvm::SystemZTTIImpl::getCmpSelInstrCost().

◆ getScalarSizeInBits()

◆ getVectorIntrinsicInstrCost()

int getVectorIntrinsicInstrCost ( Intrinsic::ID ID,
Type * RetTy,
const SmallVectorImpl< Type * > & ParamTys )
static

◆ isBswapIntrinsicCall()

bool isBswapIntrinsicCall ( const Value * V)
static

Definition at line 1294 of file SystemZTargetTransformInfo.cpp.

References llvm::dyn_cast(), F, and I.

Referenced by llvm::SystemZTTIImpl::getMemoryOpCost().

◆ isFreeEltLoad()

◆ isUsedAsMemCpySource()

bool isUsedAsMemCpySource ( const Value * V,
bool & OtherUse )
static