Skip to content

Commit 6f144fd

Browse files
committed
self-review: fix typos
1 parent 712560b commit 6f144fd

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

llvm/lib/Analysis/TargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ bool TargetTransformInfo::isTargetIntrinsicWithOverloadTypeAtArg(
622622

623623
bool TargetTransformInfo::isTargetIntrinsicWithStructReturnOverloadAtField(
624624
Intrinsic::ID ID, int RetIdx) const {
625-
return TTIImpl->isTargetIntrinsicWithOverloadTypeAtArg(ID, RetIdx);
625+
return TTIImpl->isTargetIntrinsicWithStructReturnOverloadAtField(ID, RetIdx);
626626
}
627627

628628
InstructionCost TargetTransformInfo::getScalarizationOverhead(

llvm/lib/Target/DirectX/DirectXTargetTransformInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ bool DirectXTTIImpl::isTargetIntrinsicWithScalarOpAtArg(Intrinsic::ID ID,
2525
}
2626
}
2727

28-
bool DirectXTTIImpl::isVectorIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID,
29-
int ScalarOpdIdx) {
28+
bool DirectXTTIImpl::isTargetIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID,
29+
int OpdIdx) {
3030
switch (ID) {
3131
case Intrinsic::dx_asdouble:
32-
return ScalarOpdIdx == 0;
32+
return OpdIdx == 0;
3333
default:
34-
return ScalarOpdIdx == -1;
34+
return OpdIdx == -1;
3535
}
3636
}
3737

llvm/lib/Target/DirectX/DirectXTargetTransformInfo.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ class DirectXTTIImpl : public BasicTTIImplBase<DirectXTTIImpl> {
3737
bool isTargetIntrinsicTriviallyScalarizable(Intrinsic::ID ID) const;
3838
bool isTargetIntrinsicWithScalarOpAtArg(Intrinsic::ID ID,
3939
unsigned ScalarOpdIdx);
40-
bool isVectorIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID,
41-
int ScalarOpdIdx);
40+
bool isTargetIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID, int OpdIdx);
4241
};
4342
} // namespace llvm
4443

0 commit comments

Comments
 (0)