rustc_codegen_ssa::traits::asm

Trait AsmCodegenMethods

Source
pub trait AsmCodegenMethods<'tcx> {
    // Required methods
    fn codegen_global_asm(
        &self,
        template: &[InlineAsmTemplatePiece],
        operands: &[GlobalAsmOperandRef<'tcx>],
        options: InlineAsmOptions,
        line_spans: &[Span],
    );
    fn mangled_name(&self, instance: Instance<'tcx>) -> String;
}

Required Methods§

Source

fn codegen_global_asm( &self, template: &[InlineAsmTemplatePiece], operands: &[GlobalAsmOperandRef<'tcx>], options: InlineAsmOptions, line_spans: &[Span], )

Source

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).

Implementors§