[all-commits] [llvm/llvm-project] 912ed5: [CIR] Add ASTVarDeclInterface for AST attribute ac...

Bruno Cardoso Lopes via All-commits all-commits at lists.llvm.org
Thu Feb 12 16:52:58 PST 2026


  Branch: refs/heads/users/bcardosolopes/cir-static-local-ast
  Home:   https://github.com/llvm/llvm-project
  Commit: 912ed5a09323fc05a8487ae77d573c6ceedf8ee1
      https://github.com/llvm/llvm-project/commit/912ed5a09323fc05a8487ae77d573c6ceedf8ee1
  Author: Bruno Cardoso Lopes <bruno.cardoso at gmail.com>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    A clang/include/clang/CIR/Interfaces/ASTAttrInterfaces.h
    A clang/include/clang/CIR/Interfaces/ASTAttrInterfaces.td
    M clang/include/clang/CIR/Interfaces/CMakeLists.txt
    A clang/lib/CIR/Interfaces/ASTAttrInterfaces.cpp
    M clang/lib/CIR/Interfaces/CMakeLists.txt

  Log Message:
  -----------
  [CIR] Add ASTVarDeclInterface for AST attribute access

Add the ASTVarDeclInterface which provides methods to access clang AST
VarDecl information from CIR attributes. This interface enables:
- mangleStaticGuardVariable: Mangle guard variable names using clang's
  MangleContext
- isLocalVarDecl: Check if a variable is function-local
- getTLSKind: Get thread-local storage kind
- isInline: Check if the variable is inline
- getTemplateSpecializationKind: Get template specialization info
- getVarDecl: Direct access to the underlying VarDecl pointer

This infrastructure is needed for proper handling of static local
variables with guard variables in LoweringPrepare.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list