17 #ifndef LLVM_LIB_TARGET_LANAI_LANAITARGETTRANSFORMINFO_H 18 #define LLVM_LIB_TARGET_LANAI_LANAITARGETTRANSFORMINFO_H 43 TLI(ST->getTargetLowering()) {}
80 unsigned Opcode,
Type *Ty,
91 Opd1PropInfo, Opd2PropInfo);
102 Opd1PropInfo, Opd2PropInfo);
109 #endif // LLVM_LIB_TARGET_LANAI_LANAITARGETTRANSFORMINFO_H
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 * >())
uint64_t getZExtValue() const
Get zero extended value.
This class represents lattice values for constants.
constexpr bool isInt< 16 >(int64_t x)
Base class which can be used to help build a TTI implementation.
int getIntImmCost(const APInt &Imm, Type *Ty)
bool isIntegerTy() const
True if this is an instance of IntegerType.
int64_t getSExtValue() const
Get sign extended value.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
int getIntImmCost(unsigned Opc, unsigned Idx, const APInt &Imm, Type *Ty)
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...
constexpr bool isInt< 32 >(int64_t x)
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 for arbitrary precision integers.
int InstructionOpcodeToISD(unsigned Opcode) const
Get the ISD node that corresponds to the Instruction class opcode.
int getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm, Type *Ty)
LanaiTTIImpl(const LanaiTargetMachine *TM, const Function &F)
bool shouldBuildLookupTables() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
static const Function * getParent(const Value *V)
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
TargetTransformInfo::PopcntSupportKind getPopcntSupport(unsigned TyWidth)
This file describes how to lower LLVM code to machine code.