[all-commits] [llvm/llvm-project] 47b591: [CIR] Add support for normal cleanups (#149948)

Andy Kaylor via All-commits all-commits at lists.llvm.org
Thu Jul 24 11:39:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47b5917348332ca5d51eb893abe53e42cabb8b1d
      https://github.com/llvm/llvm-project/commit/47b5917348332ca5d51eb893abe53e42cabb8b1d
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-07-24 (Thu, 24 Jul 2025)

  Changed paths:
    M clang/include/clang/CIR/MissingFeatures.h
    M clang/lib/CIR/CodeGen/CIRGenClass.cpp
    A clang/lib/CIR/CodeGen/CIRGenCleanup.cpp
    M clang/lib/CIR/CodeGen/CIRGenDecl.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/lib/CIR/CodeGen/CIRGenStmt.cpp
    M clang/lib/CIR/CodeGen/CMakeLists.txt
    A clang/lib/CIR/CodeGen/EHScopeStack.h
    A clang/test/CIR/CodeGen/cleanup.cpp

  Log Message:
  -----------
  [CIR] Add support for normal cleanups (#149948)

This change adds basic handling for normal cleanups. This is a very
minimal implemention. In particular, it uses a naive substitute for the
rich cleanup and EH stack handling that is present in classic codegen
and the CIR incubator. This is intended as a temporary implementation to
allow incremental progress. It is not expected to scale well enough to
be used in a production environment. It will be replaced with the full
EHScopeStack handling when such an implementation is needed.



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