20 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYTARGETTRANSFORMINFO_H
21 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYTARGETTRANSFORMINFO_H
43 TLI(ST->getTargetLowering()) {}
60 unsigned Opcode,
Type *Ty,
unsigned getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index)
WebAssemblyTTIImpl(const WebAssemblyTargetMachine *TM, const Function &F)
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const
Base class which can be used to help build a TTI implementation.
This file declares the WebAssembly-specific subclass of TargetMachine.
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 * >())
The instances of the Type class are immutable: once they are created, they are never changed...
This file provides a helper that implements much of the TTI interface in terms of the target-independ...
static const Function * getParent(const Value *V)
unsigned getRegisterBitWidth(bool Vector)