Skip to content

Commit 93b9173

Browse files
authored
[Analysis][NFC] Improve documentation for getMemoryOpCost (#156875)
The operand info argument appears to refer to different things depending upon whether it's a load or a store, so I've clarified this in the documentation.
1 parent acea1f5 commit 93b9173

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/include/llvm/Analysis/TargetTransformInfo.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,9 @@ class TargetTransformInfo {
15351535
Type *EltTy, int ReplicationFactor, int VF, const APInt &DemandedDstElts,
15361536
TTI::TargetCostKind CostKind) const;
15371537

1538-
/// \return The cost of Load and Store instructions.
1538+
/// \return The cost of Load and Store instructions. The operand info
1539+
/// \p OpdInfo should refer to the stored value for stores and the address
1540+
/// for loads.
15391541
LLVM_ABI InstructionCost getMemoryOpCost(
15401542
unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace,
15411543
TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput,

0 commit comments

Comments
 (0)