[all-commits] [llvm/llvm-project] f0b5bf: [CIR][EH] Implement flattening for dynamic excepti...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Tue Sep 15 14:09:41 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0b5bfb908f22fc8d7199f868a822e6d40c1369a
      https://github.com/llvm/llvm-project/commit/f0b5bfb908f22fc8d7199f868a822e6d40c1369a
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp
    R clang/test/CIR/Transforms/flatten-eh-spec-nyi.cir
    A clang/test/CIR/Transforms/flatten-eh-spec.cir

  Log Message:
  -----------
  [CIR][EH] Implement flattening for dynamic exception specification (#223780)

This change implements the CFG flattening for try operations with filter
and unexpected exception handlers. The flattening dispatches unexpected
exceptions to an operation that will later be lowered to target-specific
IR to call std::unexpected, while exceptions that match the dynamic
exception specification are routed to normal unwind handling.

Target-specific EH ABI lowering will be added in a follow-up change.

Assisted-by: Cursor / various models



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