bjorn3 opened Issue #2647:
<!-- Please try to describe precisely what you would like to do in
Cranelift/Wasmtime and/or expect from it. You can answer the questions below if
they're relevant and delete this text before submitting. Thanks for opening an
issue! -->Feature
Support the following operations:
- (u){min,max}
- nand
Benefit
This is required for implementing certain rust intrinsics.
Implementation
<!-- Do you have an implementation plan, and/or ideas for data structures or
algorithms to use? -->Alternatives
- Use a global lock instead of atomic instructions in cg_clif (bad perf)
- Don't implement these stable operations in cg_clif
bjorn3 commented on Issue #2647:
Looks like LLVM uses cmpxchg for these. I guess I could lower to that manually in cg_clif.
cfallin closed Issue #2647:
<!-- Please try to describe precisely what you would like to do in
Cranelift/Wasmtime and/or expect from it. You can answer the questions below if
they're relevant and delete this text before submitting. Thanks for opening an
issue! -->Feature
Support the following operations:
- (u){min,max}
- nand
Benefit
This is required for implementing certain rust intrinsics.
Implementation
<!-- Do you have an implementation plan, and/or ideas for data structures or
algorithms to use? -->Alternatives
- Use a global lock instead of atomic instructions in cg_clif (bad perf)
- Don't implement these stable operations in cg_clif
Last updated: Nov 22 2024 at 17:03 UTC