Implementing 128-bit atomics in Cranelift - Trifecta Tech Foundation
An engineer details the implementation of 128-bit atomic operations in the AArch64 and s390x backends for Cranelift, enabling the rustc_codegen_cranelift code generation backend to successfully compile the Rust standard library without patches. The article explains how the author used exclusive load and store instructions within a loop to achieve sequential consistency, worked with ISLE term rewriting rules, and resolved register allocation constraints. Open article →