<feed xmlns='http://www.w3.org/2005/Atom'>
<title>antcc/src/ir.h, branch trunk</title>
<subtitle>A little C compiler</subtitle>
<id>https://git.lemon.rip/antcc/atom?h=trunk</id>
<link rel='self' href='https://git.lemon.rip/antcc/atom?h=trunk'/>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/'/>
<updated>2026-04-13T08:03:19+00:00</updated>
<entry>
<title>ir: remove unused field MCTarg.bpr</title>
<updated>2026-04-13T08:03:19+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-04-13T08:03:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=36143af2748b6fcae02ca320baaac417d77ebe58'/>
<id>urn:sha1:36143af2748b6fcae02ca320baaac417d77ebe58</id>
<content type='text'>
</content>
</entry>
<entry>
<title>backend: inlining improvements</title>
<updated>2026-04-09T13:28:27+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-04-09T13:28:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=c4d90877469e801c34066a7f823ffb1144dd5851'/>
<id>urn:sha1:c4d90877469e801c34066a7f823ffb1144dd5851</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mem2reg rewrite</title>
<updated>2026-03-24T10:55:13+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-03-24T10:55:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=5c209b4df903c5f71cdc8320adbb34f1499f9232'/>
<id>urn:sha1:5c209b4df903c5f71cdc8320adbb34f1499f9232</id>
<content type='text'>
Do it in 2 passes: 1. gather variables, 2. step thru RPO transforming
loads/stores to each variable. More elegant solution to f9e3a52eaa.
More efficient since all variable usages are visited in CFG order, which
matters due to block sealing.
</content>
</entry>
<entry>
<title>IR: emit inline function standalone bodies lazily</title>
<updated>2026-03-23T22:43:52+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-03-23T22:38:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=62d995124c0cc2eaeec79e18edc3e044f3e524c9'/>
<id>urn:sha1:62d995124c0cc2eaeec79e18edc3e044f3e524c9</id>
<content type='text'>
If a function is stashed for inlining and inlined in all of its
callsites or unused, it never ends up in the object file. If any symbol
reference to it is emitted, then it must be de-inlined (rematerialized),
and this is done near the end before emitting the actual object file.
</content>
</entry>
<entry>
<title>IR: mark free'd instructions as such</title>
<updated>2026-03-23T18:20:32+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-03-23T18:20:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=8630aeb8b43c507cd00f5b091ddcee4def464f4d'/>
<id>urn:sha1:8630aeb8b43c507cd00f5b091ddcee4def464f4d</id>
<content type='text'>
That way they are not copied when inlining.
Also rename ninstr -&gt; ninstrtab. opnarg -&gt; opnoper
</content>
</entry>
<entry>
<title>style: change uvlong -&gt; u64int, vlong -&gt; s64int</title>
<updated>2026-03-22T21:00:35+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-03-22T21:00:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=7c5dd45eca377a3b675b6f0d4a9331bc3f971ac9'/>
<id>urn:sha1:7c5dd45eca377a3b675b6f0d4a9331bc3f971ac9</id>
<content type='text'>
Is much nicer. I don't know whether I want to do it for the other int
types too. char and uchar are fine as bytes. u/short -&gt; u/s16int, maybe.
</content>
</entry>
<entry>
<title>IR: add 3rd operand to Instr</title>
<updated>2026-03-22T09:49:26+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-03-21T21:20:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=79874c83bf76a5b3efd3d558933b90d9b53b829e'/>
<id>urn:sha1:79874c83bf76a5b3efd3d558933b90d9b53b829e</id>
<content type='text'>
The motivation is for aarch64 msub/madd instrs, for isel to produce. But
it should be useful for other things too.
</content>
</entry>
<entry>
<title>Use #pragma once</title>
<updated>2026-03-18T11:19:31+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-03-18T11:19:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=b2b9ef8dafbb807fbc8a834445a5ccb1ae8e9f21'/>
<id>urn:sha1:b2b9ef8dafbb807fbc8a834445a5ccb1ae8e9f21</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor: use typedefs and CamelCase for aggregate types</title>
<updated>2026-03-18T10:33:41+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-03-18T10:33:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=1d9e19fb3bb941cdc28e9d4c3063d3e213fd8312'/>
<id>urn:sha1:1d9e19fb3bb941cdc28e9d4c3063d3e213fd8312</id>
<content type='text'>
Looks nicer
</content>
</entry>
<entry>
<title>REFACTOR: finish renaming</title>
<updated>2026-03-17T15:10:00+00:00</updated>
<author>
<name>lemon</name>
<email>lsof@mailbox.org</email>
</author>
<published>2026-03-17T12:43:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lemon.rip/antcc/commit/?id=3eeb6f219e4d32160fa10895b57a8ddfefff5ff7'/>
<id>urn:sha1:3eeb6f219e4d32160fa10895b57a8ddfefff5ff7</id>
<content type='text'>
</content>
</entry>
</feed>
