2018-11-24 16:30:29 +01:00
|
|
|
use super::BackendTypes;
|
2018-09-20 15:47:22 +02:00
|
|
|
use mir::place::PlaceRef;
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-24 16:30:29 +01:00
|
|
|
pub trait AsmMethods<'tcx> {
|
2018-09-20 15:47:22 +02:00
|
|
|
fn codegen_global_asm(&self, ga: &GlobalAsm);
|
|
|
|
|
}
|