pub struct FAdd { /* private fields */ }Expand description
If you want to make a new binary inst, please use the IRBuilder to create it.
Trait Implementations§
Source§impl BinaryInst for FAdd
impl BinaryInst for FAdd
Source§impl Instruction for FAdd
impl Instruction for FAdd
Source§unsafe fn as_any_mut(&mut self) -> &mut dyn Any
unsafe fn as_any_mut(&mut self) -> &mut dyn Any
Safety Read more
Source§fn get_manager(&self) -> &InstManager
fn get_manager(&self) -> &InstManager
Returns the manager of current instruction.
Source§unsafe fn get_manager_mut(&mut self) -> &mut InstManager
unsafe fn get_manager_mut(&mut self) -> &mut InstManager
Returns the manager of current instruction. Read more
Source§fn gen_llvm_ir(&self) -> String
fn gen_llvm_ir(&self) -> String
将其生成相关的llvm ir
Source§fn get_user(&self) -> &[InstPtr]
fn get_user(&self) -> &[InstPtr]
Returns the instructions that use current instruction as operand.
Source§unsafe fn get_user_mut(&mut self) -> &mut Vec<InstPtr>
unsafe fn get_user_mut(&mut self) -> &mut Vec<InstPtr>
Returns the instructions that use current instruction as operand. Read more
Source§fn get_operand(&self) -> &[Operand]
fn get_operand(&self) -> &[Operand]
Returns the operands of current instruction.
Source§fn add_operand(&mut self, operand: Operand)
fn add_operand(&mut self, operand: Operand)
Add an operand to the instruction.
Source§fn set_operand(&mut self, index: usize, operand: Operand)
fn set_operand(&mut self, index: usize, operand: Operand)
Set the operand of cur inst by index and operand (safe and interface). Read more
Source§fn replace_operand(&mut self, from: &Operand, to: &Operand)
fn replace_operand(&mut self, from: &Operand, to: &Operand)
Replace all occurence of
from to to.Source§unsafe fn get_operand_mut(&mut self) -> &mut Vec<Operand>
unsafe fn get_operand_mut(&mut self) -> &mut Vec<Operand>
Returns the operands of current instruction. Read more
Source§fn get_prev(&self) -> Option<InstPtr>
fn get_prev(&self) -> Option<InstPtr>
Gets the previous instruction of current instruction.
If current instruction is the first instruction of the
BasicBlock, it will return None. Read moreSource§unsafe fn set_prev(&mut self, inst: InstPtr)
unsafe fn set_prev(&mut self, inst: InstPtr)
Sets the previous instruction of current instruction. Read more
Source§fn get_next(&self) -> Option<InstPtr>
fn get_next(&self) -> Option<InstPtr>
Gets the next instruction of current instruction.
If current instruction is the last instruction of the
BasicBlock, it will return None. Read moreSource§unsafe fn set_next(&mut self, inst: InstPtr)
unsafe fn set_next(&mut self, inst: InstPtr)
Sets the next instruction of current instruction. Read more
Source§fn get_value_type(&self) -> ValueType
fn get_value_type(&self) -> ValueType
Returns the value type of current instruction.
Source§unsafe fn move_self(&mut self)
unsafe fn move_self(&mut self)
Moves the current instruction out of the
BasicBlock.
Please ensure that after moving out and inserting the current instruction into another BasicBlock,
the current instruction will not be used again. Read moreSource§fn insert_before(&mut self, inst: InstPtr)
fn insert_before(&mut self, inst: InstPtr)
Inserts a new instruction before the current instruction.
The operation will first remove the new instruction from the original
BasicBlock
and then insert it into the specified position of the current BasicBlock. Read moreSource§fn insert_after(&mut self, inst: InstPtr)
fn insert_after(&mut self, inst: InstPtr)
Inserts a new instruction after the current instruction.
The operation will first remove the new instruction from the original
BasicBlock
and then insert it into the specified position of the current BasicBlock. Read moreSource§fn remove_self(&mut self)
fn remove_self(&mut self)
Remove current instruction from the
BasicBlock.
This operation will remove the current instruction from the BasicBlock and clear the current operand. Read moreSource§fn replace_self(&mut self, operand: &Operand)
fn replace_self(&mut self, operand: &Operand)
Replace current instruction with an operand.
This operation will call
remove_self, but update all users to use the new operand.Source§fn get_parent_bb(&self) -> Option<BBPtr>
fn get_parent_bb(&self) -> Option<BBPtr>
Returns the
BasicBlock that current instruction belongs to.Source§unsafe fn set_parent_bb(&mut self, bb: BBPtr)
unsafe fn set_parent_bb(&mut self, bb: BBPtr)
Set the parent
BasicBlock of current instruction. Read moreAuto Trait Implementations§
impl Freeze for FAdd
impl !RefUnwindSafe for FAdd
impl !Send for FAdd
impl !Sync for FAdd
impl Unpin for FAdd
impl !UnwindSafe for FAdd
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more