[all-commits] [llvm/llvm-project] ec44c7: [CIR] Upstream support for FlattenCFG switch and S...

Andres-Salamanca via All-commits all-commits at lists.llvm.org
Fri May 16 09:39:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec44c74fe7444c521c82e1ebef0d6a4e7be33252
      https://github.com/llvm/llvm-project/commit/ec44c74fe7444c521c82e1ebef0d6a4e7be33252
  Author: Andres-Salamanca <andrealebarbaritos at gmail.com>
  Date:   2025-05-16 (Fri, 16 May 2025)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    M clang/lib/CIR/Dialect/Transforms/CIRCanonicalize.cpp
    M clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp
    A clang/test/CIR/CodeGen/switch_flat_op.cpp
    A clang/test/CIR/IR/switch-flat.cir
    A clang/test/CIR/Transforms/switch.cir

  Log Message:
  -----------
  [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (#139154)

This PR adds support for the `FlattenCFG` transformation on `switch`
statements. It also introduces the `SwitchFlatOp`, which is necessary
for subsequent lowering to LLVM.



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