diff options
author | Nikita Popov <npopov@redhat.com> | 2022-10-11 10:29:44 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-10-11 10:33:33 +0200 |
commit | 24b1340ff96434c272a2a4abd3e70609be577e8a (patch) | |
tree | 515ce40c94731961251bd7c7d7533710c4568703 /llvm/lib/IR/Attributes.cpp | |
parent | b879f99f0ec0f34bfc5a6fe60299c308eec71f53 (diff) | |
download | llvm-24b1340ff96434c272a2a4abd3e70609be577e8a.zip llvm-24b1340ff96434c272a2a4abd3e70609be577e8a.tar.gz llvm-24b1340ff96434c272a2a4abd3e70609be577e8a.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index e9fc3e0..cbd299c 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -1653,14 +1653,6 @@ std::pair<unsigned, Optional<unsigned>> AttrBuilder::getAllocSizeArgs() const { return unpackAllocSizeArgs(getRawIntAttr(Attribute::AllocSize)); } -unsigned AttrBuilder::getVScaleRangeMin() const { - return unpackVScaleRangeArgs(getRawIntAttr(Attribute::VScaleRange)).first; -} - -Optional<unsigned> AttrBuilder::getVScaleRangeMax() const { - return unpackVScaleRangeArgs(getRawIntAttr(Attribute::VScaleRange)).second; -} - AttrBuilder &AttrBuilder::addAlignmentAttr(MaybeAlign Align) { if (!Align) return *this; |