[−][src]Struct falcon::il::Block
A basic block in Falcon IL.
Methods
impl Block
[src]
pub fn address(&self) -> Option<u64>
[src]
Get the address of the first instruction in this block
pub fn append(&mut self, other: &Block)
[src]
Appends the contents of another Block
to this Block
.
Instruction indices are updated accordingly.
pub fn index(&self) -> usize
[src]
Returns the index of this Block
pub fn instructions(&self) -> &Vec<Instruction>
[src]
Returns instructions for this Block
pub fn instructions_mut(&mut self) -> &mut Vec<Instruction>
[src]
Returns a mutable reference to the instructions for this Block
.
pub fn is_empty(&self) -> bool
[src]
Returns try if this Block
is empty, meaning it has no Instruction
pub fn instruction(&self, index: usize) -> Option<&Instruction>
[src]
Returns an Instruction
by index, or None
if the instruction does not
exist.
pub fn instruction_mut(&mut self, index: usize) -> Option<&mut Instruction>
[src]
Returns a mutable reference to an Instruction
by index, or None
if
the Instruction
does not exist.
pub fn remove_instruction(&mut self, index: usize) -> Result<()>
[src]
Deletes an Instruction
by its index.
pub fn phi_nodes(&self) -> &Vec<PhiNode>
[src]
Returns phi nodes of this Block
pub fn phi_nodes_mut(&mut self) -> &mut Vec<PhiNode>
[src]
Returns a mutable reference to the phi nodes of this Block
.
pub fn phi_node(&self, index: usize) -> Option<&PhiNode>
[src]
Returns a PhiNode
by index, or None
if the PhiNode
does not exist.
pub fn phi_node_mut(&mut self, index: usize) -> Option<&mut PhiNode>
[src]
Returns a mutable reference to a PhiNode
by index, or None
if
the PhiNode
does not exist.
pub fn add_phi_node(&mut self, phi_node: PhiNode)
[src]
Adds the phi node to this Block
.
pub fn temp(&mut self, bits: usize) -> Scalar
[src]
Generates a temporary scalar unique to this block.
pub fn assign(&mut self, dst: Scalar, src: Expression)
[src]
Adds an assign operation to the end of this block.
pub fn store(&mut self, address: Expression, src: Expression)
[src]
Adds a store operation to the end of this block.
pub fn load(&mut self, dst: Scalar, address: Expression)
[src]
Adds a load operation to the end of this block.
pub fn branch(&mut self, dst: Expression)
[src]
Adds a conditional branch operation to the end of this block.
pub fn intrinsic(&mut self, intrinsic: Intrinsic)
[src]
Adds an intrinsic operation to the end of this block.
pub fn nop(&mut self)
[src]
Adds a nop operation to the end of this block.
Trait Implementations
impl Clone for Block
[src]
impl Debug for Block
[src]
impl<'de> Deserialize<'de> for Block
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Block
[src]
impl Eq for Block
[src]
impl Hash for Block
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Block
[src]
fn cmp(&self, other: &Block) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Block> for Block
[src]
impl PartialOrd<Block> for Block
[src]
fn partial_cmp(&self, other: &Block) -> Option<Ordering>
[src]
fn lt(&self, other: &Block) -> bool
[src]
fn le(&self, other: &Block) -> bool
[src]
fn gt(&self, other: &Block) -> bool
[src]
fn ge(&self, other: &Block) -> bool
[src]
impl Serialize for Block
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Block
[src]
impl StructuralPartialEq for Block
[src]
impl Vertex for Block
[src]
Auto Trait Implementations
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,