[all-commits] [llvm/llvm-project] 1923fa: [CIR] Add ASTVarDeclInterface for AST attribute ac...
Bruno Cardoso Lopes via All-commits
all-commits at lists.llvm.org
Thu Feb 12 17:38:38 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1923fa0da14ef883a0e94fc0e30f1d35fba6a152
https://github.com/llvm/llvm-project/commit/1923fa0da14ef883a0e94fc0e30f1d35fba6a152
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 (#179825)
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