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

Bruno Cardoso Lopes via All-commits all-commits at lists.llvm.org
Thu Feb 12 17:09:08 PST 2026


  Branch: refs/heads/users/bcardosolopes/cir-static-local-ast
  Home:   https://github.com/llvm/llvm-project
  Commit: e7648d6c528273eb221904d9977f076406f8a545
      https://github.com/llvm/llvm-project/commit/e7648d6c528273eb221904d9977f076406f8a545
  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