aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Bindings/Python/MainModule.cpp
diff options
context:
space:
mode:
authorAndy Kaylor <akaylor@nvidia.com>2025-09-30 14:20:13 -0700
committerGitHub <noreply@github.com>2025-09-30 14:20:13 -0700
commitca84f2aa3be6e46a4dccb1bec56b93f2bb3d8ef0 (patch)
tree2269287f038e9a1a4fa8626afb37d4589d1e9e19 /mlir/lib/Bindings/Python/MainModule.cpp
parentf61be4352592639a0903e67a9b5d3ec664ad4d23 (diff)
downloadllvm-ca84f2aa3be6e46a4dccb1bec56b93f2bb3d8ef0.zip
llvm-ca84f2aa3be6e46a4dccb1bec56b93f2bb3d8ef0.tar.gz
llvm-ca84f2aa3be6e46a4dccb1bec56b93f2bb3d8ef0.tar.bz2
[CIR] Upstream support for generating global ctor regions (#161298)
This adds support for handling global variables with non-trivial constructors. The constructor call is emitted in CIR as a 'ctor' region associated with the global definition. This form of global definition cannot be lowered to LLVM IR yet. A later change will add support in LoweringPrepare to move the ctor code into a __cxx_global_var_init() function and add that function to the list of global global ctors, but for now we must stop at the initial CIR generation.
Diffstat (limited to 'mlir/lib/Bindings/Python/MainModule.cpp')
0 files changed, 0 insertions, 0 deletions