rust/compiler/rustc_monomorphize/src
bors b522e7c5ea Auto merge of #137225 - RalfJung:vectorcall, r=nnethercote
vectorcall ABI: require SSE2

According to the official docs at https://learn.microsoft.com/en-us/cpp/cpp/vectorcall, SSE2 is required for this ABI. Add a check that enforces this.

I put this together with the other checks ensuring the target features required for a function are present... however, since the ABI is known pre-monomorphization, it would be possible to do this check earlier, which would have the advantage of checking even in `cargo check`. It would have the disadvantage of spreading this code in yet more places.

The first commit just does a little refactoring of the mono-time ABI check to make it easier to add the new check.

Cc `@workingjubilee`

try-job: dist-i586-gnu-i586-i686-musl
2025-02-23 14:12:38 +00:00
..
mono_checks vectorcall ABI: error if sse2 is not available 2025-02-20 12:40:58 +01:00
partitioning clean up autodiff code/comments 2025-02-21 21:47:48 -05:00
collector.rs Rollup merge of #137334 - compiler-errors:edition-2024-fresh-2, r=saethlin,traviscross 2025-02-23 02:44:18 -05:00
errors.rs vectorcall ABI: error if sse2 is not available 2025-02-20 12:40:58 +01:00
lib.rs Implement projection and shim for AFIDT 2024-12-10 16:52:20 +00:00
partitioning.rs Fix binding mode problems 2025-02-22 00:13:19 +00:00
util.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00