pub trait AsmCodegenMethods<'tcx> {
// Required methods
fn codegen_global_asm(
&mut self,
template: &[InlineAsmTemplatePiece],
operands: &[GlobalAsmOperandRef<'tcx>],
options: InlineAsmOptions,
line_spans: &[Span],
extra_rust_target_features: &[String],
);
fn mangled_name(&self, instance: Instance<'tcx>) -> String;
}Required Methods§
Sourcefn codegen_global_asm(
&mut self,
template: &[InlineAsmTemplatePiece],
operands: &[GlobalAsmOperandRef<'tcx>],
options: InlineAsmOptions,
line_spans: &[Span],
extra_rust_target_features: &[String],
)
fn codegen_global_asm( &mut self, template: &[InlineAsmTemplatePiece], operands: &[GlobalAsmOperandRef<'tcx>], options: InlineAsmOptions, line_spans: &[Span], extra_rust_target_features: &[String], )
Codegen a module-level assembly block.
NOTE: the target features must be the rust target feature names, not backend target feature names. This argument is used to forward target features on naked functions.
Sourcefn mangled_name(&self, instance: Instance<'tcx>) -> String
fn mangled_name(&self, instance: Instance<'tcx>) -> String
The mangled name of this instance
Additional mangling is used on some targets to add a leading underscore (Mach-O) or byte count suffixes (x86 Windows).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".