rust/compiler/stable_mir/src
Nikita Popov 8a50bcbdce Remove extern "wasm" ABI
Remove the unstable `extern "wasm"` ABI (`wasm_abi` feature tracked
in #83788).

As discussed in https://github.com/rust-lang/rust/pull/127513#issuecomment-2220410679
and following, this ABI is a failed experiment that did not end
up being used for anything. Keeping support for this ABI in LLVM 19
would require us to switch wasm targets to the `experimental-mv`
ABI, which we do not want to do.

It should be noted that `Abi::Wasm` was internally used for two
things: The `-Z wasm-c-abi=legacy` ABI that is still used by
default on some wasm targets, and the `extern "wasm"` ABI. Despite
both being `Abi::Wasm` internally, they were not the same. An
explicit `extern "wasm"` additionally enabled the `+multivalue`
feature.

I've opted to remove `Abi::Wasm` in this patch entirely, instead
of keeping it as an ABI with only internal usage. Both
`-Z wasm-c-abi` variants are now treated as part of the normal
C ABI, just with different different treatment in
adjust_for_foreign_abi.
2024-07-11 12:20:26 +02:00
..
mir Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
abi.rs Use generic NonZero. 2024-05-08 21:37:55 +02:00
compiler_interface.rs Add method to get all attributes on a definition 2024-06-28 13:24:41 +08:00
crate_def.rs Add method to get all attributes on a definition 2024-06-28 13:24:41 +08:00
error.rs Implement missing ABI structures in StableMIR 2024-03-01 11:02:05 -08:00
lib.rs Add a new trait to retrieve StableMir definition Ty 2024-06-12 17:47:49 -07:00
mir.rs Add support to global allocation to stable-mir 2023-11-21 19:16:53 -08:00
target.rs Update target.rs alloc.rs event.rs simd.rs 2024-03-20 17:07:15 +01:00
ty.rs Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
visitor.rs Split smir Const into TyConst and MirConst 2024-06-04 10:14:45 +01:00