git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165547
91177308-0d34-0410-b5e6-
96231b3b80d8
/// This returns the alignment field of an attribute as a byte alignment value.
unsigned Attributes::getAlignment() const {
/// This returns the alignment field of an attribute as a byte alignment value.
unsigned Attributes::getAlignment() const {
- if (!hasAttribute(Attributes::Alignment))
- return 0;
- return 1U << ((Attrs.getAlignment() >> 16) - 1);
+ return Attrs.getAlignment();
}
/// This returns the stack alignment field of an attribute as a byte alignment
/// value.
unsigned Attributes::getStackAlignment() const {
}
/// This returns the stack alignment field of an attribute as a byte alignment
/// value.
unsigned Attributes::getStackAlignment() const {
- if (!hasAttribute(Attributes::StackAlignment))
- return 0;
- return 1U << ((Attrs.getStackAlignment() >> 26) - 1);
+ return Attrs.getStackAlignment();
}
bool Attributes::isEmptyOrSingleton() const {
}
bool Attributes::isEmptyOrSingleton() const {
}
uint64_t Attributes::Builder::getAlignment() const {
}
uint64_t Attributes::Builder::getAlignment() const {
- if (!hasAlignmentAttr())
- return 0;
return 1U <<
(((Bits & AttributesImpl::getAttrMask(Attributes::Alignment)) >> 16) - 1);
}
return 1U <<
(((Bits & AttributesImpl::getAttrMask(Attributes::Alignment)) >> 16) - 1);
}
}
uint64_t AttributesImpl::getAlignment() const {
}
uint64_t AttributesImpl::getAlignment() const {
- return Bits & getAttrMask(Attributes::Alignment);
+ return 1U << (((Bits & getAttrMask(Attributes::Alignment)) >> 16) - 1);
}
uint64_t AttributesImpl::getStackAlignment() const {
}
uint64_t AttributesImpl::getStackAlignment() const {
- return Bits & getAttrMask(Attributes::StackAlignment);
+ return 1U << (((Bits & getAttrMask(Attributes::StackAlignment)) >> 26) - 1);
}
bool AttributesImpl::isEmptyOrSingleton() const {
}
bool AttributesImpl::isEmptyOrSingleton() const {