pub struct LLvmBlockBuilder { /* private fields */ }Expand description
LLVM 基本块构建器
Implementations§
Source§impl LLvmBlockBuilder
impl LLvmBlockBuilder
pub fn new(label: Option<String>) -> Self
pub fn add_instruction( self, opcode: impl Into<String>, operands: Vec<impl Into<String>>, result: Option<impl Into<String>>, ) -> Self
pub fn add( self, result: impl Into<String>, ty: impl Into<String>, lhs: impl Into<String>, rhs: impl Into<String>, ) -> Self
pub fn sub( self, result: impl Into<String>, ty: impl Into<String>, lhs: impl Into<String>, rhs: impl Into<String>, ) -> Self
pub fn mul( self, result: impl Into<String>, ty: impl Into<String>, lhs: impl Into<String>, rhs: impl Into<String>, ) -> Self
pub fn call( self, result: Option<impl Into<String>>, ty: impl Into<String>, name: impl Into<String>, args: Vec<impl Into<String>>, ) -> Self
pub fn build(self) -> LLirBlock
Auto Trait Implementations§
impl Freeze for LLvmBlockBuilder
impl RefUnwindSafe for LLvmBlockBuilder
impl Send for LLvmBlockBuilder
impl Sync for LLvmBlockBuilder
impl Unpin for LLvmBlockBuilder
impl UnsafeUnpin for LLvmBlockBuilder
impl UnwindSafe for LLvmBlockBuilder
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