AArch64: port tls_value to ISLE. (#4821)

This commit is contained in:
Chris Fallin
2022-08-30 09:51:15 -07:00
committed by GitHub
parent b033aba61b
commit 1a59b3e6c6
7 changed files with 26 additions and 40 deletions

View File

@@ -1026,20 +1026,6 @@ impl<'func, I: VCodeInst> Lower<'func, I> {
&self.f.dfg[ir_inst]
}
/// Get the symbol name, relocation distance estimate, and offset for a
/// symbol_value instruction.
pub fn symbol_value<'b>(
&'b self,
ir_inst: Inst,
) -> Option<(&'b ExternalName, RelocDistance, i64)> {
match &self.f.dfg[ir_inst] {
&InstructionData::UnaryGlobalValue { global_value, .. } => {
self.symbol_value_data(global_value)
}
_ => None,
}
}
/// Likewise, but starting with a GlobalValue identifier.
pub fn symbol_value_data<'b>(
&'b self,