[all-commits] [llvm/llvm-project] 1d614a: [CIR] Add GlobalOp ctor and dtor regions (#160779)
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Mon Sep 29 16:11:55 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1d614a9702973aa9b099a61a6a5992c1de1d8de1
https://github.com/llvm/llvm-project/commit/1d614a9702973aa9b099a61a6a5992c1de1d8de1
Author: Andy Kaylor <akaylor at nvidia.com>
Date: 2025-09-29 (Mon, 29 Sep 2025)
Changed paths:
M clang/include/clang/CIR/Dialect/IR/CIROps.td
M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
A clang/test/CIR/IR/global-init.cir
Log Message:
-----------
[CIR] Add GlobalOp ctor and dtor regions (#160779)
This adds support for ctor and dtor regions in cir::GlobalOp. These
regions are used to capture the code that initializes and cleans up the
variable, keeping this initialization and cleanup code with the variable
definition.
This change only adds the CIR dialect support for these regions. Support
for generating the code in these regions from source and lowering these
to LLVM IR will be added in a later change, as will LoweringPrepare
support to move the code into the __cxx_global_var_init() function.
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