<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/132490>132490</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[CIR] Upstream support for loops
</td>
</tr>
<tr>
<th>Labels</th>
<td>
ClangIR
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
andykaylor
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
andykaylor
</td>
</tr>
</table>
<pre>
### Overview
Upstream support for various simple loops (for, while, do) the cir.for, cir.do, cir.while, cir.break, and cir.continue operations.
### Suggested minimal test case
```
void f() {
for (;;)
;
}
```
### Existing incubator tests
clang/test/CIR/CodeGen/loop.cpp
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsUk1vnTAQ_DXLxQoya3g8DhxIUqqeKrXqDzB4ATfGRrYhff--MnlN1KrSCGbHHztejQxBz5aoheoREKVVtxd5M84DIlTPmdzj4nz7oWeDU7cWULyBfT3IH5pegXc_thA9yZWFfducj2xynh3Sa7cHFvS6GWLGuS0wwOuUWjyx10UbSkQ5wIbFhdiofX5fTTQtvLH3vakYPMmXVEirTmF0Nmq7E3MbeRm1syEH3iW8m_2-zzOFSIqt2upVGhYpRDbKQGnfhd_Bu8NpxSbAa3IF9SPwjp3vSZJ4TMAmiYnxDurnfy74q--nXzpEbWem7bgPMjp_Ng7Au9FIOwP2qQbsn758S1-n6DNZwD7NKx-3DXiXqVaoRjQyo7aoS6yaRvAiW1rBryRrVV4IaRKXqiwLqnk1TcNFqQufMt0ix4oLLFBgURb5oBriZSVGfi1kVdVQclqlNrkxx5o7P2c6hJ3aQmDZ8MzIgUy4R-QpGU4uz3z4Nh15GPY5QMmNDjF8XBJ1NGey0quqZ_bfgJyJyHZv2iXGLYDoAHvAftZx2Yd8dGsagzn-_B42737SmIZ1mgyA_d3n0eLvAAAA__8x392d">