21 #define DEBUG_TYPE "wasmtti"
34 Result = std::max(Result, 16u);
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() *
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)
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 * >())
constexpr bool isPowerOf2_32(uint32_t Value)
isPowerOf2_32 - This function returns 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)
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 * >())
Class to represent vector types.
unsigned getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
unsigned getRegisterBitWidth(bool Vector)