nak: Drop some unused helpers

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Faith Ekstrand
2023-10-19 10:25:08 -05:00
committed by Marge Bot
parent d0b724aaac
commit 9166b3354c
2 changed files with 0 additions and 26 deletions

View File

@@ -1056,10 +1056,6 @@ impl Src {
}
}
pub fn get_reg(&self) -> Option<&RegRef> {
self.src_ref.get_reg()
}
pub fn iter_ssa(&self) -> slice::Iter<'_, SSAValue> {
self.src_ref.iter_ssa()
}
@@ -1113,24 +1109,6 @@ impl Src {
}
}
pub fn is_false(&self) -> bool {
match self.src_ref {
SrcRef::True => self.src_mod.is_bnot(),
SrcRef::False => !self.src_mod.is_bnot(),
_ => false,
}
}
pub fn is_reg_or_zero(&self) -> bool {
match self.src_ref {
SrcRef::Zero | SrcRef::SSA(_) | SrcRef::Reg(_) => true,
SrcRef::True
| SrcRef::False
| SrcRef::Imm32(_)
| SrcRef::CBuf(_) => false,
}
}
#[allow(dead_code)]
pub fn supports_type(&self, src_type: &SrcType) -> bool {
match src_type {

View File

@@ -32,10 +32,6 @@ impl LiveSet {
self.live[file]
}
pub fn counts(&self) -> &PerRegFile<u32> {
&self.live
}
pub fn insert(&mut self, ssa: SSAValue) -> bool {
if self.set.insert(ssa) {
self.live[ssa.file()] += 1;