Skip to content
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

Changing some prettyping errors to be able to ignore them (preparation to fix bug #727) #1023

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

MrDaiki
Copy link
Collaborator

@MrDaiki MrDaiki commented Jan 24, 2025

Issue

Some well typed programs are rejecting by pre-typing because they don't have a valid assembly target (see #727)

Solution

I introduced a global boolean variable (I know it isn't the cleanest but it fit well in this case) that define if some of pre-typing error should be handled as warning or as error. It can be set with the Utils.set_warn_recoverable function.

@MrDaiki MrDaiki force-pushed the warning-pretyping branch 2 times, most recently from 71162f6 to 696df0c Compare January 24, 2025 14:53
CHANGELOG.md Outdated
@@ -35,6 +35,10 @@
therefore old intrinsic `#VPBLENDVB` is deprecated
([PR #1010](https://github.com/jasmin-lang/jasmin/pull/1010)).

- Add an option to treat some pre-typing error as warning instead.
([PR #1023](https://github.com/jasmin-lang/jasmin/pull/1023))
fixes [#727](https://github.com/jasmin-lang/jasmin/issues/727).
Copy link
Member

Choose a reason for hiding this comment

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

I don’t think 727 is fixed yet. But this is indeed necessary preparatory work.

@MrDaiki MrDaiki changed the title Changing some prettyping errors to be able to ignore them (useful for experimentation purposes) Changing some prettyping errors to be able to ignore them (fix bug [#727]) Jan 24, 2025
@MrDaiki MrDaiki changed the title Changing some prettyping errors to be able to ignore them (fix bug [#727]) Changing some prettyping errors to be able to ignore them (fix bug [#727](https://github.com/jasmin-lang/jasmin/issues/727)) Jan 24, 2025
@MrDaiki MrDaiki changed the title Changing some prettyping errors to be able to ignore them (fix bug [#727](https://github.com/jasmin-lang/jasmin/issues/727)) Changing some prettyping errors to be able to ignore them (fix bug #727) Jan 24, 2025
@MrDaiki MrDaiki changed the title Changing some prettyping errors to be able to ignore them (fix bug #727) Changing some prettyping errors to be able to ignore them (prepare to fix bug #727) Jan 24, 2025
@MrDaiki MrDaiki changed the title Changing some prettyping errors to be able to ignore them (prepare to fix bug #727) Changing some prettyping errors to be able to ignore them (preparation to fix bug #727) Jan 24, 2025
…bal boolean, it is useful for experimentation purposes)
@vbgl vbgl added this to the 2024.07.3 milestone Jan 27, 2025
@vbgl vbgl merged commit c5d8a39 into jasmin-lang:main Jan 27, 2025
1 check passed
@vbgl vbgl deleted the warning-pretyping branch January 27, 2025 13:17
vbgl pushed a commit that referenced this pull request Jan 27, 2025
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