[llvm] [IntrinsicEmitter] Make AttributesMap PackedID type-adaptive (PR #158383)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 18 09:02:30 PDT 2025


================
@@ -633,17 +631,25 @@ static constexpr uint16_t IntrinsicsToAttributesMap[] = {)";
   // Note, ID `-1` is used to indicate no function attributes.
----------------
jurahul wrote:

nit: Can we not use -1 here as -1 is not a valid unsigned value. May be: ID with all bits 1 is used to indicate no function attributes.

https://github.com/llvm/llvm-project/pull/158383


More information about the llvm-commits mailing list