llvm / clangir

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

[CIR][FlattenCFG] Let results of CIR ScopeOp forwarded during FlattenCFG #1147

Closed ghehg closed 6 days ago

ghehg commented 1 week ago

This PR implements NYI in CIRScopeOpFlattening. It seems to me the best way is to let results of ScopeOp forwarded as block arguments of the last block split from the cir.scope block.