[all-commits] [llvm/llvm-project] 645745: [CIR] Add support for global ctor/dtor attributes ...
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Mon Oct 13 17:07:26 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 645745f9de7ea7bfc63848bf900dc424896a37e9
https://github.com/llvm/llvm-project/commit/645745f9de7ea7bfc63848bf900dc424896a37e9
Author: Andy Kaylor <akaylor at nvidia.com>
Date: 2025-10-13 (Mon, 13 Oct 2025)
Changed paths:
M clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
M clang/include/clang/CIR/Dialect/IR/CIRDialect.td
M clang/include/clang/CIR/Dialect/IR/CIROps.td
M clang/include/clang/CIR/MissingFeatures.h
M clang/lib/CIR/CodeGen/CIRGenModule.cpp
M clang/lib/CIR/CodeGen/CIRGenModule.h
M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
M clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
A clang/test/CIR/CodeGen/global-ctor-dtor.cpp
M clang/test/CIR/IR/func.cir
Log Message:
-----------
[CIR] Add support for global ctor/dtor attributes (#163247)
This adds support for adding the `global_ctor` or `global_dtor`
attribute to the CIR representation of functions defined with
`__attribute__((constructor))` or `__attribute__((destructor))` and
adding them to the `@llvm.global_ctors` or `@llvm.global_dtors` list
during lowering to LLVM IR.
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