pub struct PhiNodeSet {
pub phis: Vec<PhiNode>,
/* private fields */
}Expand description
Collection of phi-nodes at a case join point.
Fields§
§phis: Vec<PhiNode>Implementations§
Source§impl PhiNodeSet
impl PhiNodeSet
pub fn new(start_vn: ValueNumber) -> Self
Sourcepub fn add_phi(&mut self, var: LcnfVarId, operands: Vec<PhiOperand>) -> &PhiNode
pub fn add_phi(&mut self, var: LcnfVarId, operands: Vec<PhiOperand>) -> &PhiNode
Create and record a new phi-node.
Sourcepub fn remove_trivial(&mut self) -> usize
pub fn remove_trivial(&mut self) -> usize
Remove all trivial phi-nodes (all operands have the same VN).
pub fn num_phis(&self) -> usize
Trait Implementations§
Source§impl Debug for PhiNodeSet
impl Debug for PhiNodeSet
Source§impl Default for PhiNodeSet
impl Default for PhiNodeSet
Source§fn default() -> PhiNodeSet
fn default() -> PhiNodeSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PhiNodeSet
impl RefUnwindSafe for PhiNodeSet
impl Send for PhiNodeSet
impl Sync for PhiNodeSet
impl Unpin for PhiNodeSet
impl UnsafeUnpin for PhiNodeSet
impl UnwindSafe for PhiNodeSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more