[llvm] [IR] Bump AttributeBitSet width to 16 bytes (PR #106138)

Yuxuan Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 13:49:12 PDT 2024


https://github.com/yuxuanchen1997 created https://github.com/llvm/llvm-project/pull/106138

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. 

>From 80d1fa0757354e166454e23b39756874e23e1e87 Mon Sep 17 00:00:00 2001
From: Yuxuan Chen <ych at meta.com>
Date: Mon, 26 Aug 2024 13:47:54 -0700
Subject: [PATCH] [IR] Bump AttributeBitSet width to 16 bytes

---
 llvm/lib/IR/AttributeImpl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
 



More information about the llvm-commits mailing list