Skip to content

Conversation

@Sonicadvance1
Copy link
Member

@Sonicadvance1 Sonicadvance1 commented Dec 22, 2025

Needs #5140 merged first.

This audits the direct usage of the _Constant IR op. The IREmitter constant pool is required to track padding and maxbytes to ensure no incorrect padding usage slips through the pool.

This leaves the biggest audit remaining, anything that uses the IREmitter pool which is just called Constant(...) which will take quite a bit longer to go through all use cases.

`Constant` IR op needs the frontend to be audited and pass padding
information through.
`ThreadRemoveCodeEntry` doesn't properly have relations wired up but it
does use the Entry. So this would be broken on code caching with
relocations.
All direct usages have been audited. Now we need to do indirect usages
through the `Constant` IR operation.
Kind of annoying that it is overlapping with LoadConstant.

NFC
Fixes an issue that a potential same constant could be padded for one
use and not padded for another.
`MOVGPRImmediate` is changing in another PR and we need to come back to
it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant