1
Fork 0
rust/src/librustc_codegen_ssa/traits/asm.rs

18 lines
466 B
Rust
Raw Normal View History

use super::BackendTypes;
2019-02-09 23:31:47 +09:00
use crate::mir::place::PlaceRef;
use rustc::hir::{GlobalAsm, InlineAsm};
pub trait AsmBuilderMethods<'tcx>: BackendTypes {
/// Take an inline assembly expression and splat it out via LLVM
fn codegen_inline_asm(
&mut self,
ia: &InlineAsm,
outputs: Vec<PlaceRef<'tcx, Self::Value>>,
inputs: Vec<Self::Value>,
) -> bool;
}
pub trait AsmMethods {
fn codegen_global_asm(&self, ga: &GlobalAsm);
}