-
Notifications
You must be signed in to change notification settings - Fork 15
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
[LLVM][FIX] Float generation fix in LLVM helper visitor #865
Conversation
Logfiles from GitLab pipeline #54237 (:white_check_mark:) have been uploaded here! Status and direct links: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Just a small suggestion regarding one of the tests
Logfiles from GitLab pipeline #54405 (:white_check_mark:) have been uploaded here! Status and direct links: |
b27645b
to
68c80ef
Compare
Logfiles from GitLab pipeline #54550 (:white_check_mark:) have been uploaded here! Status and direct links: |
* Fixed float AST in helper * Fixed InstanceStruct test to generate struct with doubles
* Fixed float AST in helper * Fixed InstanceStruct test to generate struct with doubles
This PR fixes how single-precision floats are handles in LLVM
helper visitor. Before,
DOUBLE
was always created which wasnot consistent with LLVM visitor (that lowered
DOUBLE
to 32-or 64-bit types) and instance struct initialisation in testing (which
assumed that for
DOUBLE
it always holds thatsizeof(double) = 8
).Now, there is a clear separation between
FLOAT
andDOUBLE
values in helper visitor.
Note: this bug was not discovered before since execution tests were
only considering doubles. So, one of the tests was changed to use
floats.