<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/130193>130193</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[CIR] Upstream binary expression support
</td>
</tr>
<tr>
<th>Labels</th>
<td>
ClangIR
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
andykaylor
</td>
</tr>
</table>
<pre>
### Overview
Upstream support for binary expressions and the cir.binop operation. The initial change should just add support a single operation, such as assignment. Other binary operators can then be added afterwards.
### Suggested minimal test case
```
void f(int i) {
i = 2;
}
```
### Existing incubator tests
clang/test/CIR/CodeGen/binop.cpp (could use improvement)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkUt1u4ywQfRp8M6pFIGniC1-kzedPe1Vpfx4AzNieLgaLwWnz9iuSbKvdlUYg0MyZc46OYaYxILZi9yR2p8qseYqpNcFdfpqLj6my0V1aofSt4OWM6Uz4JuRRyOOPhXNCMwOvyxJThiEmsBRMugC-LwmZKQYGExzkCaGnVFsKcYG4YDKZYqjh-4RAgTIZD_1kwojAU1y9g9eVMxjnPuANMIXR4-e4UM_Aaz-BYbiJmTHkGl7yhB9Ubt0xMfQmFCIBLBZgdGCGjOnNJMf1TdOn1m_rOCJndDBToNl4yMgZesN4b32U95LHcyQHg1AHChlIqAbE_knIIwCB0CdQQpen2J_-Gvxj5X_vxJnCCBT61RbO15186-u9CaNQXfkSqnv-8rWc0eH_GITqrs7W_bKAUIf-6uDKCDQvKZ6x-CJUU7lWu0Y3psJ2s99utJRb3VRTK-1OymZvldbD9uB2e7NtBpTaDgNKdK6iVkm1k1o-KqX1rqm1sXp4VHtrDsYeXC-2EmdDvvb-PNcxjRUxr9hutNw0uvLGoudr0pR6LlIKf1Vil9oy8mDXkcVWeuLMnyCZsr8GtOjdneAjdP8E7XdOqjX5dsp5YaGPQnVCdSPlabV1H2ehugJ9vx6WFF-xL3ZeybJQ3Z3vuVW_AgAA__8kYwGW">