make #[target_feature] work with asm
register classes
This commit is contained in:
parent
d7539a6af0
commit
271da7d8bc
7 changed files with 213 additions and 112 deletions
|
@ -2293,6 +2293,13 @@ impl<'hir> InlineAsmOperand<'hir> {
|
|||
Self::Const { .. } | Self::Sym { .. } => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_clobber(&self) -> bool {
|
||||
matches!(
|
||||
self,
|
||||
InlineAsmOperand::Out { reg: InlineAsmRegOrRegClass::Reg(_), late: _, expr: None }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, HashStable_Generic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue