[−][src]Trait rustc_codegen_ssa::traits::intrinsic::IntrinsicCallMethods

pub trait IntrinsicCallMethods<'tcx>: BackendTypes {
    pub fn codegen_intrinsic_call(
        &mut self,
        instance: Instance<'tcx>,
        fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
        args: &[OperandRef<'tcx, Self::Value>],
        llresult: Self::Value,
        span: Span
    );
pub fn abort(&mut self);
pub fn assume(&mut self, val: Self::Value);
pub fn expect(&mut self, cond: Self::Value, expected: bool) -> Self::Value;
pub fn sideeffect(&mut self, unconditional: bool);
pub fn va_start(&mut self, val: Self::Value) -> Self::Value;
pub fn va_end(&mut self, val: Self::Value) -> Self::Value; }

Required methods

pub fn codegen_intrinsic_call(
    &mut self,
    instance: Instance<'tcx>,
    fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
    args: &[OperandRef<'tcx, Self::Value>],
    llresult: Self::Value,
    span: Span
)
[src]

Remember to add all intrinsics here, in compiler/rustc_typeck/src/check/mod.rs, and in library/core/src/intrinsics.rs; if you need access to any LLVM intrinsics, add them to compiler/rustc_codegen_llvm/src/context.rs.

pub fn abort(&mut self)[src]

pub fn assume(&mut self, val: Self::Value)[src]

pub fn expect(&mut self, cond: Self::Value, expected: bool) -> Self::Value[src]

pub fn sideeffect(&mut self, unconditional: bool)[src]

Normally, sideeffect is only emitted if -Zinsert-sideeffect is passed; in some cases though we want to emit it regardless.

pub fn va_start(&mut self, val: Self::Value) -> Self::Value[src]

Trait method used to inject va_start on the "spoofed" VaListImpl in Rust defined C-variadic functions.

pub fn va_end(&mut self, val: Self::Value) -> Self::Value[src]

Trait method used to inject va_end on the "spoofed" VaListImpl before Rust defined C-variadic functions return.

Loading content...

Implementors

Loading content...