17 #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETTRANSFORMINFO_H
18 #define LLVM_LIB_TARGET_POWERPC_PPCTARGETTRANSFORMINFO_H
42 TLI(ST->getTargetLowering()) {}
48 :
BaseT(std::move(static_cast<
BaseT &>(Arg))), ST(std::move(Arg.ST)),
49 TLI(std::move(Arg.TLI)) {}
75 unsigned Opcode,
Type *Ty,
Base class which can be used to help build a TTI implementation.
unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty, TTI::OperandValueKind Opd1Info=TTI::OK_AnyValue, TTI::OperandValueKind Opd2Info=TTI::OK_AnyValue, TTI::OperandValueProperties Opd1PropInfo=TTI::OP_None, TTI::OperandValueProperties Opd2PropInfo=TTI::OP_None)
unsigned getMaxInterleaveFactor(unsigned VF)
PPCTTIImpl(const PPCTargetMachine *TM, Function &F)
unsigned getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src)
unsigned getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy)
The instances of the Type class are immutable: once they are created, they are never changed...
PPCTTIImpl(const PPCTTIImpl &Arg)
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
PPCTargetMachine - Common code between 32-bit and 64-bit PowerPC targets.
void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP)
unsigned getNumberOfRegisters(bool Vector)
unsigned getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace)
bool enableAggressiveInterleaving(bool LoopHasReductions)
Class for arbitrary precision integers.
PPCTTIImpl(PPCTTIImpl &&Arg)
unsigned getIntImmCost(const APInt &Imm, Type *Ty)
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
unsigned getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
const ARM::ArchExtKind Kind
static const Function * getParent(const Value *V)
unsigned getRegisterBitWidth(bool Vector)
unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp)
This file describes how to lower LLVM code to machine code.