Skip to content

fix(INTER_RASM): fix to runtime/retsig global variable#17

Open
Gab-San wants to merge 1 commit intoHEAPLab:masterfrom
MartinaStarone:INTER_RASM/fix_global_value
Open

fix(INTER_RASM): fix to runtime/retsig global variable#17
Gab-San wants to merge 1 commit intoHEAPLab:masterfrom
MartinaStarone:INTER_RASM/fix_global_value

Conversation

@Gab-San
Copy link
Copy Markdown
Contributor

@Gab-San Gab-San commented Mar 7, 2026

Fix runtime and retsig global variables to be correctly initialized.

Solve issue MartinaStarone#17

@Gab-San Gab-San force-pushed the INTER_RASM/fix_global_value branch from 3360d9d to f2a8f3a Compare March 7, 2026 11:33
@Gab-San
Copy link
Copy Markdown
Contributor Author

Gab-San commented Mar 18, 2026

I have noticed that there are no tests for inter-rasm

@EmilioCorigliano
Copy link
Copy Markdown
Collaborator

The fix is legit. The only thing is that I would create the global variables only if their search in the code fails. After this change I will merge it

@Gab-San Gab-San force-pushed the INTER_RASM/fix_global_value branch from f2a8f3a to 1d8863e Compare April 23, 2026 17:37
Copilot AI review requested due to automatic review settings April 23, 2026 17:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes initialization/availability of the runtime_sig and run_adj_sig globals used by the RASM LLVM pass when INTRA_FUNCTION_CFC == 1, addressing MartinaStarone#17.

Changes:

  • Removes unused standard library includes in passes/RASM.cpp.
  • Updates RASM::run() logic intended to locate (and, if missing, create) the runtime_sig / run_adj_sig globals before instrumentation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread passes/RASM.cpp Outdated
Comment thread passes/RASM.cpp Outdated
Comment thread passes/RASM.cpp Outdated
Comment thread passes/RASM.cpp Outdated
@Gab-San
Copy link
Copy Markdown
Contributor Author

Gab-San commented Apr 23, 2026

Sorry, I didn't know Copilot had this feature. I am gonna fix the issues immediately

@Gab-San Gab-San force-pushed the INTER_RASM/fix_global_value branch 2 times, most recently from 1eb78e7 to f60e499 Compare April 23, 2026 18:41
Fix runtime and retsig global variables to be correctly initialized.

Solve issue #17
@Gab-San Gab-San force-pushed the INTER_RASM/fix_global_value branch from f60e499 to 245f9a8 Compare April 23, 2026 18:42
@Gab-San
Copy link
Copy Markdown
Contributor Author

Gab-San commented Apr 23, 2026

If the manual check does not suffice I will look more in depth into it.

Tested manually against a test file (both with global declared and not declared)

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.

3 participants