Skip to content

float32 flambda2 operations#2384

Merged
TheNumbat merged 12 commits intomainfrom
f32-fl2-ops
May 9, 2024
Merged

float32 flambda2 operations#2384
TheNumbat merged 12 commits intomainfrom
f32-fl2-ops

Conversation

@TheNumbat
Copy link
Copy Markdown
Member

Adds arithmetic operations for float32 in the middle end; again cuts off at the CMM implementations.
Following PR adds backend support.

@TheNumbat TheNumbat added the flambda2 Prerequisite for, or part of, flambda2 label Mar 21, 2024
Base automatically changed from f32-backend to f32-fl2 March 22, 2024 18:58
@TheNumbat TheNumbat force-pushed the f32-fl2 branch 2 times, most recently from d83be31 to 8ade880 Compare March 22, 2024 19:14
@TheNumbat TheNumbat changed the base branch from f32-fl2 to f32-backend March 22, 2024 19:18
@TheNumbat TheNumbat requested a review from Gbury April 26, 2024 16:37
Base automatically changed from f32-backend to main April 26, 2024 17:53
@TheNumbat TheNumbat requested review from mshinwell and removed request for Gbury May 7, 2024 18:18
Copy link
Copy Markdown
Collaborator

@mshinwell mshinwell left a comment

Choose a reason for hiding this comment

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

Please try to avoid single-letter variable names where there is an obvious alternative!

@TheNumbat TheNumbat merged commit c52d40b into main May 9, 2024
@TheNumbat TheNumbat deleted the f32-fl2-ops branch May 9, 2024 14:37
let dacc = DA.add_variable dacc result_var ty in
SPR.create original_term ~try_reify:true dacc
| Known_result _ | Need_meet ->
SPR.create_unknown dacc ~result_var K.naked_float ~original_term
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The K.naked_float also needs to be parameterized here - fixing in #2385

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Whoops, apologies

gretay-js pushed a commit to gretay-js/flambda-backend that referenced this pull request May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flambda2 Prerequisite for, or part of, flambda2 middle end

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants