2018-11-24 16:30:29 +01:00
|
|
|
use super::BackendTypes;
|
2019-02-09 23:31:47 +09:00
|
|
|
use crate::mir::place::PlaceRef;
|
2018-09-20 15:47:22 +02:00
|
|
|
use rustc::hir::{GlobalAsm, InlineAsm};
|
|
|
|
|
2018-11-24 16:30:29 +01:00
|
|
|
pub trait AsmBuilderMethods<'tcx>: BackendTypes {
|
|
|
|
/// Take an inline assembly expression and splat it out via LLVM
|
2018-09-20 15:47:22 +02:00
|
|
|
fn codegen_inline_asm(
|
2018-10-05 15:08:49 +02:00
|
|
|
&mut self,
|
2018-09-20 15:47:22 +02:00
|
|
|
ia: &InlineAsm,
|
|
|
|
outputs: Vec<PlaceRef<'tcx, Self::Value>>,
|
|
|
|
inputs: Vec<Self::Value>,
|
|
|
|
) -> bool;
|
|
|
|
}
|
|
|
|
|
2019-06-11 12:49:10 +03:00
|
|
|
pub trait AsmMethods {
|
2018-09-20 15:47:22 +02:00
|
|
|
fn codegen_global_asm(&self, ga: &GlobalAsm);
|
|
|
|
}
|