[all-commits] [llvm/llvm-project] c20d02: [CIR] Add support for global destructors (#162532)

Andy Kaylor via All-commits all-commits at lists.llvm.org
Thu Oct 9 10:15:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c20d0292c2939eec18ca7b79736a44539b47adcb
      https://github.com/llvm/llvm-project/commit/c20d0292c2939eec18ca7b79736a44539b47adcb
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-10-09 (Thu, 09 Oct 2025)

  Changed paths:
    M clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
    M clang/include/clang/CIR/MissingFeatures.h
    M clang/lib/CIR/CodeGen/CIRGenCXX.cpp
    M clang/lib/CIR/CodeGen/CIRGenCXXABI.h
    M clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
    M clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    M clang/test/CIR/CodeGen/global-init.cpp

  Log Message:
  -----------
  [CIR] Add support for global destructors (#162532)

This adds support for generating destructor calls for global variables
that have a destructor. This doesn't handle functions that are marked as
global destructors with `__attribute__((destructor))`. That will be
handled later.



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