Skip to content

Commit 24b1340

Browse files
committed
[AttrBuilder] Remove unused vscale accessors (NFC)
These accessors are not used. Generally, nowadays it is preferable to perform queries on AttributeSets/Lists, rather than the AttrBuilder, which is optimized towards attribute construction now.
1 parent b879f99 commit 24b1340

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

llvm/include/llvm/IR/Attributes.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,12 +1146,6 @@ class AttrBuilder {
11461146
/// doesn't exist, pair(0, 0) is returned.
11471147
std::pair<unsigned, Optional<unsigned>> getAllocSizeArgs() const;
11481148

1149-
/// Retrieve the minimum value of 'vscale_range'.
1150-
unsigned getVScaleRangeMin() const;
1151-
1152-
/// Retrieve the maximum value of 'vscale_range' or None when unknown.
1153-
Optional<unsigned> getVScaleRangeMax() const;
1154-
11551149
/// Add integer attribute with raw value (packed/encoded if necessary).
11561150
AttrBuilder &addRawIntAttr(Attribute::AttrKind Kind, uint64_t Value);
11571151

llvm/lib/IR/Attributes.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,14 +1653,6 @@ std::pair<unsigned, Optional<unsigned>> AttrBuilder::getAllocSizeArgs() const {
16531653
return unpackAllocSizeArgs(getRawIntAttr(Attribute::AllocSize));
16541654
}
16551655

1656-
unsigned AttrBuilder::getVScaleRangeMin() const {
1657-
return unpackVScaleRangeArgs(getRawIntAttr(Attribute::VScaleRange)).first;
1658-
}
1659-
1660-
Optional<unsigned> AttrBuilder::getVScaleRangeMax() const {
1661-
return unpackVScaleRangeArgs(getRawIntAttr(Attribute::VScaleRange)).second;
1662-
}
1663-
16641656
AttrBuilder &AttrBuilder::addAlignmentAttr(MaybeAlign Align) {
16651657
if (!Align)
16661658
return *this;

0 commit comments

Comments
 (0)