Skip to content

Annotate modified registers#9

Open
xtexx wants to merge 1 commit into
loongson-community:developfrom
xtexx:annotate-reg-write
Open

Annotate modified registers#9
xtexx wants to merge 1 commit into
loongson-community:developfrom
xtexx:annotate-reg-write

Conversation

@xtexx

@xtexx xtexx commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Add annotations for register slots that MAY be modified by an opcode.

This is useful for register allocator and optimizers. However we can't simply guess modified registers based on the format. For example, both rdtimel.w and cpucfg are DJ, but rdtimel.w modifies both rd and rj while cpucfg modifies only rd.

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