Module abi_check

Module abi_check 

Source
Expand description

This module ensures that if a functionโ€™s ABI requires a particular target feature, that target feature is enabled both on the callee and all callers.

Enumsยง

UsesVectorRegisters ๐Ÿ”’
Are vector registers used?

Functionsยง

check_call_site_abi ๐Ÿ”’
Check the ABI at a call site, emitting an error when:
check_callees_abi ๐Ÿ”’
check_feature_dependent_abi ๐Ÿ”’
check_instance_abi ๐Ÿ”’
Checks the ABI of an Instance, emitting an error when:
do_check_simd_vector_abi ๐Ÿ”’
Checks whether a certain function ABI is compatible with the target features currently enabled for a certain function. is_call indicates whether this is a call-site check or a definition-site check; this is only relevant for the wording in the emitted error.
do_check_unsized_params ๐Ÿ”’
Emit an error when a non-rustic ABI has unsized parameters. Unsized types do not have a stable layout, so should not be used with stable ABIs. is_call indicates whether this is a call-site check or a definition-site check; this is only relevant for the wording in the emitted error.
passes_vectors_by_value ๐Ÿ”’
Determines whether the combination of mode and repr will use fixed vector registers, scalable vector registers or no vector registers.