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

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 18 15:55:37 PDT 2025


================
@@ -746,14 +753,21 @@ static constexpr ArgAttributesInfo ArgAttributesInfoTable[] = {{
   // construct all the argument attributes (using the ArgAttributesInfoTable and
   // ArgAttrIdTable) and then add on the function attributes if any.
   OS << formatv(R"(
+
+template <typename IDTy>
+inline std::pair<uint32_t, uint32_t> unpackID(const IDTy PackedID) {{
+  const auto UniqAttributesBitSize = {};
----------------
jurahul wrote:

nit: uint32_t instead of auto? And constexpr?

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


More information about the llvm-commits mailing list