[all-commits] [llvm/llvm-project] 9d1f1c: [CIR] Upstream initial support for switch statemen...

Andres-Salamanca via All-commits all-commits at lists.llvm.org
Tue Apr 29 08:44:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d1f1c4c8b5e96dfdbde37cb2cf906afdce5ef30
      https://github.com/llvm/llvm-project/commit/9d1f1c4c8b5e96dfdbde37cb2cf906afdce5ef30
  Author: Andres-Salamanca <andrealebarbaritos at gmail.com>
  Date:   2025-04-29 (Tue, 29 Apr 2025)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIRDialect.h
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/include/clang/CIR/MissingFeatures.h
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/lib/CIR/CodeGen/CIRGenStmt.cpp
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    A clang/test/CIR/CodeGen/switch.cpp
    A clang/test/CIR/IR/switch.cir

  Log Message:
  -----------
  [CIR] Upstream initial support for switch statements  (#137106)

This introduces initial support for the switchOP, with caseOP of the
Equal kind. Support for additional case kinds such as AnyOf, Range, and
Default will be included in a future patch. Similarly, lowering to LLVM
IR and flattening of the switch are deferred and will be addressed in
subsequent updates.



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