Skip to content

Commit 7a2df97

Browse files
committed
Use unadjusted ABI everywhere
1 parent d51c509 commit 7a2df97

51 files changed

Lines changed: 52 additions & 52 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

crates/core_arch/src/aarch64/sve/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ macro_rules! impl_internal_sve_predicate {
130130
#[target_feature(enable = "sve")]
131131
unsafe fn sve_into(self) -> svbool_t {
132132
#[allow(improper_ctypes)]
133-
unsafe extern "C" {
133+
unsafe extern "unadjusted" {
134134
#[cfg_attr(
135135
target_arch = "aarch64",
136136
link_name = concat!("llvm.aarch64.sve.convert.to.svbool.nxv", $elt, "i1")
@@ -147,7 +147,7 @@ macro_rules! impl_internal_sve_predicate {
147147
#[target_feature(enable = "sve")]
148148
unsafe fn sve_into(self) -> $name {
149149
#[allow(improper_ctypes)]
150-
unsafe extern "C" {
150+
unsafe extern "unadjusted" {
151151
#[cfg_attr(
152152
target_arch = "aarch64",
153153
link_name = concat!("llvm.aarch64.sve.convert.from.svbool.nxv", $elt, "i1")

crates/core_arch/src/mips/msa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ types! {
4545
}
4646

4747
#[allow(improper_ctypes)]
48-
unsafe extern "C" {
48+
unsafe extern "unadjusted" {
4949
#[link_name = "llvm.mips.add.a.b"]
5050
fn msa_add_a_b(a: v16i8, b: v16i8) -> v16i8;
5151
#[link_name = "llvm.mips.add.a.h"]

crates/core_arch/src/nvptx/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod packed;
1919
pub use packed::*;
2020

2121
#[allow(improper_ctypes)]
22-
unsafe extern "C" {
22+
unsafe extern "unadjusted" {
2323
#[link_name = "llvm.nvvm.barrier.cta.sync.aligned.all"]
2424
fn syncthreads(a: u32) -> ();
2525
#[link_name = "llvm.nvvm.read.ptx.sreg.ntid.x"]

crates/core_arch/src/nvptx/packed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use crate::intrinsics::simd::*;
88

99
#[allow(improper_ctypes)]
10-
unsafe extern "C" {
10+
unsafe extern "unadjusted" {
1111
#[link_name = "llvm.minimum.v2f16"]
1212
fn llvm_f16x2_minimum(a: f16x2, b: f16x2) -> f16x2;
1313
#[link_name = "llvm.maximum.v2f16"]

crates/core_arch/src/powerpc/altivec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl From<vector_bool_int> for m32x4 {
9696
}
9797

9898
#[allow(improper_ctypes)]
99-
unsafe extern "C" {
99+
unsafe extern "unadjusted" {
100100
#[link_name = "llvm.ppc.altivec.lvx"]
101101
fn lvx(p: *const i8) -> vector_unsigned_int;
102102

crates/core_arch/src/powerpc/vsx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl From<vector_bool_long> for m64x2 {
5252
}
5353

5454
#[allow(improper_ctypes)]
55-
unsafe extern "C" {
55+
unsafe extern "unadjusted" {
5656
#[link_name = "llvm.ppc.altivec.vperm"]
5757
fn vperm(
5858
a: vector_signed_int,

crates/core_arch/src/powerpc64/vsx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use stdarch_test::assert_instr;
1717
use crate::mem::transmute;
1818

1919
#[allow(improper_ctypes)]
20-
unsafe extern "C" {
20+
unsafe extern "unadjusted" {
2121
#[link_name = "llvm.ppc.vsx.lxvl"]
2222
fn lxvl(a: *const u8, l: usize) -> vector_signed_int;
2323

crates/core_arch/src/x86/aes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::core_arch::x86::__m128i;
1313
use stdarch_test::assert_instr;
1414

1515
#[allow(improper_ctypes)]
16-
unsafe extern "C" {
16+
unsafe extern "unadjusted" {
1717
#[link_name = "llvm.x86.aesni.aesdec"]
1818
fn aesdec(a: __m128i, round_key: __m128i) -> __m128i;
1919
#[link_name = "llvm.x86.aesni.aesdeclast"]

crates/core_arch/src/x86/avx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3292,7 +3292,7 @@ pub const fn _mm256_cvtss_f32(a: __m256) -> f32 {
32923292

32933293
// LLVM intrinsics used in the above functions
32943294
#[allow(improper_ctypes)]
3295-
unsafe extern "C" {
3295+
unsafe extern "unadjusted" {
32963296
#[link_name = "llvm.x86.avx.round.pd.256"]
32973297
fn roundpd256(a: __m256d, b: i32) -> __m256d;
32983298
#[link_name = "llvm.x86.avx.round.ps.256"]

crates/core_arch/src/x86/avx2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3906,7 +3906,7 @@ pub const fn _mm256_extract_epi16<const INDEX: i32>(a: __m256i) -> i32 {
39063906
}
39073907

39083908
#[allow(improper_ctypes)]
3909-
unsafe extern "C" {
3909+
unsafe extern "unadjusted" {
39103910
#[link_name = "llvm.x86.avx2.pmadd.wd"]
39113911
fn pmaddwd(a: i16x16, b: i16x16) -> i32x8;
39123912
#[link_name = "llvm.x86.avx2.pmadd.ub.sw"]

0 commit comments

Comments
 (0)