[llvm] [IR] Bump AttributeBitSet width to 16 bytes (PR #106138)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 13:49:42 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
Author: Yuxuan Chen (yuxuanchen1997)
<details>
<summary>Changes</summary>
As discussed in https://github.com/llvm/llvm-project/issues/106134, we are bumping the width of this set to 16 bytes to accommodate more attributes.
---
Full diff: https://github.com/llvm/llvm-project/pull/106138.diff
1 Files Affected:
- (modified) llvm/lib/IR/AttributeImpl.h (+1-1)
``````````diff
diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h
index b9441729b48c69..2f1c7b85e66502 100644
--- a/llvm/lib/IR/AttributeImpl.h
+++ b/llvm/lib/IR/AttributeImpl.h
@@ -275,7 +275,7 @@ class ConstantRangeListAttributeImpl final
class AttributeBitSet {
/// Bitset with a bit for each available attribute Attribute::AttrKind.
- uint8_t AvailableAttrs[12] = {};
+ uint8_t AvailableAttrs[16] = {};
static_assert(Attribute::EndAttrKinds <= sizeof(AvailableAttrs) * CHAR_BIT,
"Too many attributes");
``````````
</details>
https://github.com/llvm/llvm-project/pull/106138
More information about the llvm-commits
mailing list