Skip to content

Commit 02f633c

Browse files
committed
Add comments for widening/narrowing instructions
1 parent 9402fbb commit 02f633c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class RISCVTTIImpl : public BasicTTIImplBase<RISCVTTIImpl> {
5252
/// on the vtype and the cost kind.
5353
/// \param Opcodes A list of opcodes of the RVV instruction to evaluate.
5454
/// \param VT The MVT of vtype associated with the RVV instructions.
55+
/// For widening/narrowing instructions where the result and source types
56+
/// differ, it is important to check the spec to determine whether the vtype
57+
/// refers to the result or source type.
5558
/// \param CostKind The type of cost to compute.
5659
InstructionCost getRISCVInstructionCost(ArrayRef<unsigned> OpCodes, MVT VT,
5760
TTI::TargetCostKind CostKind);

0 commit comments

Comments
 (0)