Skip to content

Integrate function-related structures #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 from 25f9b5e to 0df1cef Compare April 29, 2025 05:42
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 0df1cef to 8eda29e Compare April 29, 2025 05:44
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