Skip to content

Commit a37d86a

Browse files
committed
build fixes getNumberOfParts - const
1 parent 02a31a3 commit a37d86a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ bool GCNTTIImpl::hasBranchDivergence(const Function *F) const {
313313
return !F || !ST->isSingleLaneExecution(*F);
314314
}
315315

316-
unsigned GCNTTIImpl::getNumberOfParts(Type *Tp) {
316+
unsigned GCNTTIImpl::getNumberOfParts(Type *Tp) const {
317317
// For certain 8 bit ops, we can pack a v4i8 into a single part
318318
// (e.g. v4i8 shufflevectors -> v_perm v4i8, v4i8). Thus, we
319319
// do not limit the numberOfParts for 8 bit vectors to the

llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class GCNTTIImpl final : public BasicTTIImplBase<GCNTTIImpl> {
118118
return TTI::PSK_FastHardware;
119119
}
120120

121-
unsigned getNumberOfParts(Type *Tp);
121+
unsigned getNumberOfParts(Type *Tp) const;
122122
unsigned getNumberOfRegisters(unsigned RCID) const;
123123
TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind Vector) const;
124124
unsigned getMinVectorRegisterBitWidth() const;

0 commit comments

Comments
 (0)