mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 01:20:17 +01:00
nak: Drop some unused helpers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
d0b724aaac
commit
9166b3354c
2 changed files with 0 additions and 26 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue