21 #define DEBUG_TYPE "wasmtti" 40 if (Vector && getST()->hasSIMD128())
52 Opcode, Ty, Opd1Info, Opd2Info, Opd1PropInfo, Opd2PropInfo);
54 if (
VectorType *VTy = dyn_cast<VectorType>(Ty)) {
56 case Instruction::LShr:
57 case Instruction::AShr:
58 case Instruction::Shl:
64 Cost = VTy->getNumElements() *
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, ArrayRef< const Value *> Args=ArrayRef< const Value *>())
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
This class represents lattice values for constants.
Cost tables and simple lookup functions.
unsigned getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
unsigned getNumberOfRegisters(bool Vector)
constexpr bool isPowerOf2_32(uint32_t Value)
Return true if the argument is a power of two > 0.
The instances of the Type class are immutable: once they are created, they are never changed...
unsigned getNumberOfRegisters(bool Vector)
Class to represent vector types.
unsigned getRegisterBitWidth(bool Vector) const
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, ArrayRef< const Value *> Args=ArrayRef< const Value *>())
unsigned getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
constexpr char Args[]
Key for Kernel::Metadata::mArgs.