[llvm] Add the 'initializes' attribute langref and support (PR #84803)

Haopeng Liu via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 20 10:38:37 PDT 2024


================
@@ -124,6 +133,17 @@ class AttributeImpl : public FoldingSetNode {
     CR.getLower().Profile(ID);
     CR.getUpper().Profile(ID);
   }
+
+  static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind,
+                      ArrayRef<ConstantRange> Val) {
+    ID.AddInteger(Kind);
+    ID.AddInteger(Val.size());
+    ID.AddInteger(Val[0].getBitWidth());
----------------
haopliu wrote:

Ah, done!

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


More information about the llvm-commits mailing list