Skip to content

Commit ad7ae0c

Browse files
committed
update comment
1 parent 59ef511 commit ad7ae0c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

llvm/include/llvm/Analysis/TargetTransformInfo.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,8 @@ class TargetTransformInfo {
896896
bool isTargetIntrinsicWithScalarOpAtArg(Intrinsic::ID ID,
897897
unsigned ScalarOpdIdx) const;
898898

899+
/// Identifies if the vector form of the intrinsic is overloaded on the type of
900+
/// the operand at index \p OpdIdx, or on the return type if \p OpdIdx is -1.
899901
bool isVectorIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID,
900902
int ScalarOpdIdx) const;
901903

llvm/include/llvm/Analysis/VectorUtils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ bool isVectorIntrinsicWithScalarOpAtArg(Intrinsic::ID ID,
152152

153153
/// Identifies if the vector form of the intrinsic is overloaded on the type of
154154
/// the operand at index \p OpdIdx, or on the return type if \p OpdIdx is -1.
155+
/// \p TTI is used to consider target specific intrinsics, if no target specific
156+
/// intrinsics will be considered then it is appropriate to pass in nullptr.
155157
bool isVectorIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID, int OpdIdx,
156158
const TargetTransformInfo *TTI);
157159

0 commit comments

Comments
 (0)