<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/72465>72465</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
PR: make llvm register mutable
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mttbx
</td>
</tr>
</table>
<pre>
Llvm ir can be mutable. Just make a conversion to ssa in the hood. This is very convinent to the user. Of cause we can use memory operation to mimic mutable register. It's easy too. But it's not very obvious. And not all languages want to use memory directly. Llvm is the right place to implement that to avoid making wheels. As far as I know, some body already implement mem2reg. I think the work can be done father.
The change will not affect the core function of llvm. But it's good for the user. Right now I don't see bad side of it.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUUl2PozgQ_DXmpTWIGBKGBx4yN4qU00l3Gs0faJsG--KPyG2Szb9fAZPd2RdAprqqulzIbKdA1Iv9m9i_FzhnE1Pvc1Y_ChWHR_-Pu3mwCTQGUAR-zqgclfD3zBk8XggQdAw3SmxjgByBGcEGyIbAxDiU8Gksg2W4UXqsWBso5AW6YGamVMK_I2icmeBOq9Ty6cnH9IB4pYT5i9xbb_XTBSSaLOdl_pyFbBkI-QE5xhLe5gx2Owwxb9pR3WycuYRjGNZTdA4chmnGiRjuuLn6pj3YRDq7RwlbDrxaTnYyGa4ONS1466-O_LqSwZUBb9EOSzo2THA3RG4RZRgxATKc4RLiXci_gKMnWHIGdIlweHwj8-RloqmEM2Rjw2WVvsd0ed7FEAPBiNlQKkX1Lqrj9vw0BNpgmAju1rlt03EknVcKHRPBOAe9ZhpHcO7m_whsinGAMaZv9_OxrhziHc6LrpBtBiYChQOwHWjhsbkshr4eurrDgvpdW1W7atfJtjD9Xg5NVddN0x2q4fDayNddpxpdo1KadEWF7WUl691ud6hkLau21AqVbDvVtV090r4TTUUerStXuzFNhWWeqW9lc9gXDhU5ftY49QvoRc0Ti6ZyljP_Hss2O-r_-xD1cSvw8udXlZ7dKubkepPzlUV9FPIk5Gmy2cyq1NELeVqGvl4v1xT_J52FPK2WWMjT6upnAAAA__8JyiWM">