[clang] [CIR] Materialize AST-derived facts as CIR attributes (PR #215921)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 13 16:48:48 PDT 2026


================
@@ -1935,6 +1935,52 @@ def CIR_ASTVarDeclAttr : CIR_AST<"VarDecl", "var.decl", [
   ASTVarDeclInterface
 ]>;
 
+//===----------------------------------------------------------------------===//
+// StaticLocalInfoAttr
+//===----------------------------------------------------------------------===//
+
+def CIR_StaticLocalInfoAttr
+    : CIR_Attr<"StaticLocalInfo", "static_local_info",
+               [ASTVarDeclInterface]> {
+  let summary = "AST-free cache of static-local VarDecl facts.";
+  let description = [{
----------------
bcardosolopes wrote:

If this is now an attribute, describe it as a first class entity, only mention AST in a last new paragraph.

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


More information about the cfe-commits mailing list