Skip to content

Commit 9402fbb

Browse files
committed
[RISCV][TTI] Use vtype for getRISCVInstructionCost
1 parent 72db3f9 commit 9402fbb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ class RISCVTTIImpl : public BasicTTIImplBase<RISCVTTIImpl> {
4848
/// actual target hardware.
4949
unsigned getEstimatedVLFor(VectorType *Ty);
5050

51+
/// This function calculates the costs for one or more RVV opcodes based
52+
/// on the vtype and the cost kind.
53+
/// \param Opcodes A list of opcodes of the RVV instruction to evaluate.
54+
/// \param VT The MVT of vtype associated with the RVV instructions.
55+
/// \param CostKind The type of cost to compute.
5156
InstructionCost getRISCVInstructionCost(ArrayRef<unsigned> OpCodes, MVT VT,
5257
TTI::TargetCostKind CostKind);
5358

0 commit comments

Comments
 (0)