Skip to content

Bigarray primitives#96

Merged
Gbury merged 8 commits intoflambda2.0-stablefrom
bigarray_prims
Apr 10, 2020
Merged

Bigarray primitives#96
Gbury merged 8 commits intoflambda2.0-stablefrom
bigarray_prims

Conversation

@Gbury
Copy link
Copy Markdown

@Gbury Gbury commented Apr 7, 2020

Fix bigarray primitives + some other related changes (see commit messages).

@Gbury
Copy link
Copy Markdown
Author

Gbury commented Apr 10, 2020

Reviews have been addressed, just waiting for a new review and CI to be green.

Gbury added 5 commits April 10, 2020 14:14
Change the status of bigarray primitives:
- bigarray_load is now a binary primitive
- bigarray_store is now a ternary primitive

Translation from multi-dimension addressing to linear addressing is
done in the primitive translation, so that the bigarray primitives take
a single linear offset.

Adidtionally the unknwon variant for bigarray kind and layout in
flambda2 are removed because theyr are translated into c-calls in
prepare_lambda.

Cmm code generation has been adapted.

Better cache: Use subset comparison, as the functions are monotone
@Gbury
Copy link
Copy Markdown
Author

Gbury commented Apr 10, 2020

Rebased because of the inlining_cost merge (and inlining costs have been adjusted for the new translation).

@Gbury Gbury merged commit 64e26b1 into flambda2.0-stable Apr 10, 2020
lthls pushed a commit that referenced this pull request Sep 29, 2020
* Better bigarray primitives + liveness cache update

Change the status of bigarray primitives:
- bigarray_load is now a binary primitive
- bigarray_store is now a ternary primitive

Translation from multi-dimension addressing to linear addressing is
done in the primitive translation, so that the bigarray primitives take
a single linear offset.

Adidtionally the unknwon variant for bigarray kind and layout in
flambda2 are removed because theyr are translated into c-calls in
prepare_lambda.

Cmm code generation has been adapted.

Better cache: Use subset comparison, as the functions are monotone

* Update test list

* Address reviews

* Reviews

* Adapt inlining costs for bigarray primitives

* Better effects and coeffects for read and writes

* Last reviews

* Fix unused vars
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