pub struct LlvmFunc {
pub name: String,
pub ret_ty: LlvmType,
pub params: Vec<(LlvmType, String)>,
pub body: Vec<LlvmInstr>,
pub linkage: LlvmLinkage,
pub attrs: Vec<LlvmAttr>,
pub is_declare: bool,
}Expand description
A top-level LLVM function (define or declare).
Fields§
§name: StringFunction name (without leading @).
ret_ty: LlvmTypeReturn type.
params: Vec<(LlvmType, String)>Parameters: (type, name without %).
body: Vec<LlvmInstr>Function body (instructions). Empty if is_declare.
linkage: LlvmLinkageLinkage for this function.
attrs: Vec<LlvmAttr>Function attributes.
is_declare: boolIf true, emit declare (external function) instead of define.
Trait Implementations§
impl StructuralPartialEq for LlvmFunc
Auto Trait Implementations§
impl Freeze for LlvmFunc
impl RefUnwindSafe for LlvmFunc
impl Send for LlvmFunc
impl Sync for LlvmFunc
impl Unpin for LlvmFunc
impl UnsafeUnpin for LlvmFunc
impl UnwindSafe for LlvmFunc
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