Improve IR variable naming #317
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#317
Loading…
Reference in New Issue
No description provided.
Delete Branch "irname-improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the past, local variables (specifically those created from
gen_var_alloc
andgen_store_target
) are named using vague identifiers liketmp
,attr
andloadarrgep
, which do not tell the use case of these variables.This MR addresses this problem by (1) allowing callers to specify a name for these local variables (or none to indicate they are temporaries to an expression), and (2) Rename these variables to better reflect what they possibly do.
This MR does not retroactively rename all IR variables, only variables which are changed in this MR.