Skip to content

Conversation

@ChAoSUnItY
Copy link
Collaborator

@ChAoSUnItY ChAoSUnItY commented Apr 28, 2025

Since the introduction of SSA middle end, there exists 2 different usages of function-related structures that is heavily coupled, but used under different scenarios. This causes unnecessary confusions to anyone who tries to understand it, and makes maintenance costly.

In this patch, func_t and fn_t are now integrated into func_t, and related variables are renamed into func instead of fd or fn to keep naming consistency and avoid confusions to previous structures.

Additionally, few comments are refined, and unused label definitions removed to keep codebase tidy.

Summary by Bito

This pull request integrates the `func_t` and `fn_t` structures into a single `func_t`, enhancing code clarity and maintainability. It standardizes variable names, refines comments, and removes unused label definitions, contributing to a cleaner and more organized codebase.

Unit tests added: False

Estimated effort to review (1-5, lower is better): 2

@jserv jserv requested a review from vacantron April 28, 2025 21:56
@ChAoSUnItY ChAoSUnItY force-pushed the feat/func_integrate branch 4 times, most recently from 17bebd8 to 6eea13a Compare April 30, 2025 14:19
Copy link
Collaborator

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase the latest master branch and resolve conflicts.

Since the introduction of SSA middle end, there exists 2 different
usage of function-related structures that is heavily coupled, but
used under different scenarios. This causes unnecessary confusions
to anyone who tries to understand it, and makes maintenance costly.

In this patch, "func_t" and "fn_t" are now integrated into "func_t",
and related variables are renamed into "func" instead of "fd" or "fn"
to keep naming consistency and avoid confusions to previous
structures.

Additionally, few comments are refined, and unused label definitions
removed to keep codebase tidy.
@ChAoSUnItY ChAoSUnItY force-pushed the feat/func_integrate branch from 6eea13a to b83d08b Compare May 2, 2025 11:45
@jserv jserv merged commit 411a6f6 into sysprog21:master May 2, 2025
6 checks passed
@jserv
Copy link
Collaborator

jserv commented May 2, 2025

Thank @ChAoSUnItY for contributing!

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.

2 participants