Skip to content

Commit a4a26a1

Browse files
committed
Rename StructType::containsScalableVectorType to isScalableTy
1 parent 83e3d86 commit a4a26a1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

llvm/include/llvm/IR/DerivedTypes.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,7 @@ class StructType : public Type {
290290
bool isSized(SmallPtrSetImpl<Type *> *Visited = nullptr) const;
291291

292292
/// Returns true if this struct contains a scalable vector.
293-
bool
294-
containsScalableVectorType(SmallPtrSetImpl<Type *> *Visited = nullptr) const;
293+
bool isScalableTy(SmallPtrSetImpl<Type *> *Visited = nullptr) const;
295294

296295
/// Returns true if this struct contains homogeneous scalable vector types.
297296
/// Note that the definition of homogeneous scalable vector type is not

llvm/lib/IR/Type.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bool Type::isScalableTy() const {
6363
return ATy->getElementType()->isScalableTy();
6464
if (const auto *STy = dyn_cast<StructType>(this)) {
6565
SmallPtrSet<Type *, 4> Visited;
66-
return STy->containsScalableVectorType(&Visited);
66+
return STy->isScalableTy(&Visited);
6767
}
6868
return getTypeID() == ScalableVectorTyID || isScalableTargetExtTy();
6969
}
@@ -394,8 +394,7 @@ StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes,
394394
return ST;
395395
}
396396

397-
bool StructType::containsScalableVectorType(
398-
SmallPtrSetImpl<Type *> *Visited) const {
397+
bool StructType::isScalableTy(SmallPtrSetImpl<Type *> *Visited) const {
399398
if ((getSubclassData() & SCDB_ContainsScalableVector) != 0)
400399
return true;
401400

@@ -412,7 +411,7 @@ bool StructType::containsScalableVectorType(
412411
return true;
413412
}
414413
if (auto *STy = dyn_cast<StructType>(Ty)) {
415-
if (STy->containsScalableVectorType(Visited)) {
414+
if (STy->isScalableTy(Visited)) {
416415
const_cast<StructType *>(this)->setSubclassData(
417416
getSubclassData() | SCDB_ContainsScalableVector);
418417
return true;

0 commit comments

Comments
 (0)