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.
/// doesn't exist, pair(0, 0) is returned.
std::pair<unsigned, Optional<unsigned>> getAllocSizeArgs() const;
- /// Retrieve the minimum value of 'vscale_range'.
- unsigned getVScaleRangeMin() const;
-
- /// Retrieve the maximum value of 'vscale_range' or None when unknown.
- Optional<unsigned> getVScaleRangeMax() const;
-
/// Add integer attribute with raw value (packed/encoded if necessary).
AttrBuilder &addRawIntAttr(Attribute::AttrKind Kind, uint64_t Value);
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;