1 use super::BackendTypes;
2 use crate::mir::operand::OperandRef;
4 use rustc_target::abi::call::FnType;
7 pub trait IntrinsicCallMethods<'tcx>: BackendTypes {
8 /// Remember to add all intrinsics here, in librustc_typeck/check/mod.rs,
9 /// and in libcore/intrinsics.rs; if you need access to any llvm intrinsics,
10 /// add them to librustc_codegen_llvm/context.rs
11 fn codegen_intrinsic_call(
14 fn_ty: &FnType<'tcx, Ty<'tcx>>,
15 args: &[OperandRef<'tcx, Self::Value>],
16 llresult: Self::Value,
21 fn assume(&mut self, val: Self::Value);
22 fn expect(&mut self, cond: Self::Value, expected: bool) -> Self::Value;