Path: blob/main/cranelift/codegen/meta/src/isa/arm64.rs
1693 views
use crate::cdsl::isa::TargetIsa;1use crate::cdsl::settings::SettingGroupBuilder;23pub(crate) fn define() -> TargetIsa {4let mut settings = SettingGroupBuilder::new("arm64");56settings.add_bool(7"has_lse",8"Has Large System Extensions (FEAT_LSE) support.",9"",10false,11);12settings.add_bool(13"has_pauth",14"Has Pointer authentication (FEAT_PAuth) support; enables the use of \15non-HINT instructions, but does not have an effect on code generation \16by itself.",17"",18false,19);20settings.add_bool(21"has_fp16",22"Use half-precision floating point (FEAT_FP16) instructions.",23"",24false,25);26settings.add_bool(27"sign_return_address_all",28"If function return address signing is enabled, then apply it to all \29functions; does not have an effect on code generation by itself.",30"",31false,32);33settings.add_bool(34"sign_return_address",35"Use pointer authentication instructions to sign function return \36addresses; HINT-space instructions using the A key are generated \37and simple functions that do not use the stack are not affected \38unless overridden by other settings.",39"",40false,41);42settings.add_bool(43"sign_return_address_with_bkey",44"Use the B key with pointer authentication instructions instead of \45the default A key; does not have an effect on code generation by \46itself. Some platform ABIs may require this, for example.",47"",48false,49);50settings.add_bool(51"use_bti",52"Use Branch Target Identification (FEAT_BTI) instructions.",53"",54false,55);5657TargetIsa::new("arm64", settings.build())58}596061