diff --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h index af78e0c1e4799..103e5f949bcc1 100644 --- a/llvm/include/llvm/Analysis/TargetTransformInfo.h +++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h @@ -1533,7 +1533,9 @@ class TargetTransformInfo { Type *EltTy, int ReplicationFactor, int VF, const APInt &DemandedDstElts, TTI::TargetCostKind CostKind) const; - /// \return The cost of Load and Store instructions. + /// \return The cost of Load and Store instructions. The operand info + /// \p OpdInfo should refer to the stored value for stores and the address + /// for loads. LLVM_ABI InstructionCost getMemoryOpCost( unsigned Opcode, Type *Src, Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput,