16 #define DEBUG_TYPE "riscvtti" 20 "getIntImmCost can only estimate cost of materialising integers");
35 "getIntImmCost can only estimate cost of materialising integers");
43 bool Takes12BitImm =
false;
44 unsigned ImmArgIdx = ~0U;
47 case Instruction::GetElementPtr:
53 case Instruction::And:
55 case Instruction::Xor:
56 case Instruction::Mul:
59 case Instruction::Sub:
60 case Instruction::Shl:
61 case Instruction::LShr:
62 case Instruction::AShr:
A parsed version of the target data layout string in and methods for querying it. ...
This class represents lattice values for constants.
TypeSize getTypeSizeInBits(Type *Ty) const
Size examples:
bool isIntegerTy() const
True if this is an instance of IntegerType.
int64_t getSExtValue() const
Get sign extended 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...
bool isLegalAddImmediate(int64_t Imm) const override
Return true if the specified immediate is legal add immediate, that is the target has add instruction...
bool isCommutative() const
Return true if the instruction is commutative:
Class for arbitrary precision integers.
int getIntMatCost(const APInt &Val, unsigned Size, bool IsRV64)
int getIntImmCost(const APInt &Imm, Type *Ty)
int getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm, Type *Ty)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
unsigned getMinSignedBits() const
Get the minimum bit size for this signed APInt.
int getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty)
This file describes how to lower LLVM code to machine code.