move ABI sanity check from LLVM codegen backend to ABI computation logic

This commit is contained in:
Ralf Jung 2023-10-29 12:24:32 +01:00
parent 2429818b20
commit 405e4204d0
3 changed files with 79 additions and 43 deletions

View file

@ -37,9 +37,11 @@
// revisions: wasi
//[wasi] compile-flags: --target wasm32-wasi
//[wasi] needs-llvm-components: webassembly
// revisions: nvptx64
//[nvptx64] compile-flags: --target nvptx64-nvidia-cuda
//[nvptx64] needs-llvm-components: nvptx
// FIXME: disabled on nvptx64 since the target ABI fails the sanity check
/* revisions: nvptx64
[nvptx64] compile-flags: --target nvptx64-nvidia-cuda
[nvptx64] needs-llvm-components: nvptx
*/
#![feature(rustc_attrs, unsized_fn_params, transparent_unions)]
#![cfg_attr(not(host), feature(no_core, lang_items), no_std, no_core)]
#![allow(unused, improper_ctypes_definitions, internal_features)]