llvm / clangir

A new (MLIR based) high-level IR for clang.
https://clangir.org
Other
327 stars 86 forks source link

[CIR][Codegen] TernaryOp flattening #550

Closed gitoleg closed 4 months ago

gitoleg commented 4 months ago

This PR adds flattening for the cir.ternary. This PR is just a copy pasta from the lowering + tests added/fixed. Given the complexity of switch flattening, I decided to open one more PR for flattening.