[−][src]Struct libfirm_rs::nodes::Anchor
Utility node used to "hold" nodes in a graph that might possibly not be reachable by other means or which should be reachable immediately without searching through the graph. Each firm-graph contains exactly one anchor node whose address is always known. All other well-known graph-nodes like Start, End, NoMem, ... are found by looking at the respective Anchor operand.
Methods
impl Anchor[src]
impl Anchorpub fn end_block(self) -> Node[src]
pub fn end_block(self) -> NodeGets block the end node belongs to.
pub fn set_end_block(
self,
val: impl NodeTrait
)[src]
pub fn set_end_block(
self,
val: impl NodeTrait
)Sets block the end node belongs to.
pub fn start_block(self) -> Node[src]
pub fn start_block(self) -> NodeGets block the start node belongs to.
pub fn set_start_block(
self,
val: impl NodeTrait
)[src]
pub fn set_start_block(
self,
val: impl NodeTrait
)Sets block the start node belongs to.
pub fn end(self) -> Node[src]
pub fn end(self) -> NodeGets end node of this ir_graph.
pub fn set_end(
self,
val: impl NodeTrait
)[src]
pub fn set_end(
self,
val: impl NodeTrait
)Sets end node of this ir_graph.
pub fn start(self) -> Node[src]
pub fn start(self) -> NodeGets start node of this ir_graph.
pub fn set_start(
self,
val: impl NodeTrait
)[src]
pub fn set_start(
self,
val: impl NodeTrait
)Sets start node of this ir_graph.
pub fn frame(self) -> Node[src]
pub fn frame(self) -> NodeGets frame of this ir_graph.
pub fn set_frame(
self,
val: impl NodeTrait
)[src]
pub fn set_frame(
self,
val: impl NodeTrait
)Sets frame of this ir_graph.
pub fn initial_mem(self) -> Node[src]
pub fn initial_mem(self) -> NodeGets initial memory of this ir_graph.
pub fn set_initial_mem(
self,
val: impl NodeTrait
)[src]
pub fn set_initial_mem(
self,
val: impl NodeTrait
)Sets initial memory of this ir_graph.
pub fn args(self) -> Node[src]
pub fn args(self) -> NodeGets argument proj of the start node.
pub fn set_args(
self,
val: impl NodeTrait
)[src]
pub fn set_args(
self,
val: impl NodeTrait
)Sets argument proj of the start node.
pub fn no_mem(self) -> Node[src]
pub fn no_mem(self) -> NodeGets the only NoMem node of this ir_graph.
pub fn set_no_mem(
self,
val: impl NodeTrait
)[src]
pub fn set_no_mem(
self,
val: impl NodeTrait
)Sets the only NoMem node of this ir_graph.
Trait Implementations
impl NodeTrait for Anchor[src]
impl NodeTrait for Anchorfn internal_ir_node(&self) -> *mut ir_node[src]
fn internal_ir_node(&self) -> *mut ir_nodefn as_node(&self) -> Node[src]
fn as_node(&self) -> Nodefn keep_alive(&self)[src]
fn keep_alive(&self)fn mode(&self) -> Mode[src]
fn mode(&self) -> Modefn block(&self) -> Block[src]
fn block(&self) -> Blockfn set_block(&self, block: Block)[src]
fn set_block(&self, block: Block)ⓘImportant traits for OutNodeIteratorfn out_nodes(&self) -> OutNodeIterator[src]
fn out_nodes(&self) -> OutNodeIteratorⓘImportant traits for OutNodeExIteratorfn out_nodes_ex(&self) -> OutNodeExIterator[src]
fn out_nodes_ex(&self) -> OutNodeExIteratorfn all_out_projs(&self) -> Vec<Proj>[src]
fn all_out_projs(&self) -> Vec<Proj>fn collect_all_out_projs(&self, projs: &mut Vec<Proj>)[src]
fn collect_all_out_projs(&self, projs: &mut Vec<Proj>)ⓘImportant traits for InNodeIteratorfn in_nodes(&self) -> InNodeIterator[src]
fn in_nodes(&self) -> InNodeIteratorfn set_input_at(&self, idx: i32, pred: Node)[src]
fn set_input_at(&self, idx: i32, pred: Node)fn set_in_nodes(&self, nodes: &[Node])[src]
fn set_in_nodes(&self, nodes: &[Node])fn node_id(&self) -> i64[src]
fn node_id(&self) -> i64fn is_pinned(&self) -> bool[src]
fn is_pinned(&self) -> boolfn is_commutative(&self) -> bool[src]
fn is_commutative(&self) -> boolfn is_only_valid_in_start_block(&self) -> bool[src]
fn is_only_valid_in_start_block(&self) -> boolfn graph(&self) -> Graph[src]
fn graph(&self) -> Graphfn walk<F>(&self, walker: F) where
F: FnMut(VisitTime, Node),
Self: Sized, [src]
fn walk<F>(&self, walker: F) where
F: FnMut(VisitTime, Node),
Self: Sized, libifrm irg_walk wrapper Read more
fn walk_dfs_in_block_stop_at_phi_node<Callback>(
&self,
block: Block,
callback: &mut Callback
) where
Callback: FnMut(Node),
Self: Sized, [src]
fn walk_dfs_in_block_stop_at_phi_node<Callback>(
&self,
block: Block,
callback: &mut Callback
) where
Callback: FnMut(Node),
Self: Sized, Perform a DFS over all nodes within block starting at self. As soon as a Phi node is reached, that branch of the DFS is canceled. There is no callback for a Phi node. The primary use case for this API is in codegen. Read more
impl NodeDebug for Anchor[src]
impl NodeDebug for Anchorfn fmt(&self, f: &mut Formatter, _opts: NodeDebugOpts) -> Result[src]
fn fmt(&self, f: &mut Formatter, _opts: NodeDebugOpts) -> Resultfn debug_fmt(self) -> NodeDebugFmt<Self> where
Self: Sized + Copy, [src]
fn debug_fmt(self) -> NodeDebugFmt<Self> where
Self: Sized + Copy, impl PartialEq<Anchor> for Anchor[src]
impl PartialEq<Anchor> for Anchorimpl From<Anchor> for Node[src]
impl From<Anchor> for Nodeimpl Clone for Anchor[src]
impl Clone for Anchorfn clone(&self) -> Anchor[src]
fn clone(&self) -> Anchorfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Anchor[src]
impl Copy for Anchorimpl Eq for Anchor[src]
impl Eq for Anchorimpl Debug for Anchor[src]
impl Debug for Anchorimpl Hash for Anchor[src]
impl Hash for AnchorAuto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId