pub struct Global;
Implementations§
Source§impl Global
impl Global
pub fn const_array(ctx: &Context, array: &[LLVMValue]) -> LLVMValue
pub fn const_unit() -> LLVMValue
pub fn const_double(value: f64) -> DoubleValue
pub fn const_float(value: f32) -> FloatValue
pub fn const_i8(value: i8) -> Int8Value
pub fn const_bool(value: bool) -> BoolValue
pub fn sizeof(ty: LLVMType) -> LLVMValue
pub fn const_i16(value: i16) -> Int16Value
pub fn const_i32(value: i32) -> Int32Value
pub fn const_i64(value: i64) -> Int64Value
pub fn i8_type() -> LLVMType
pub fn i1_type() -> LLVMType
pub fn i16_type() -> LLVMType
pub fn i32_type() -> LLVMType
pub fn i64_type() -> LLVMType
pub fn struct_type( name: String, element_type: Vec<(String, LLVMType)>, ) -> LLVMType
pub fn array_type(element_type: LLVMType) -> LLVMType
pub fn unit_type() -> LLVMType
pub fn float_type() -> LLVMType
pub fn double_type() -> LLVMType
pub fn function_type( return_type: LLVMType, param_types: Vec<(String, LLVMType)>, ) -> LLVMType
pub fn function_type_with_var_arg( return_type: LLVMType, param_types: Vec<(String, LLVMType)>, ) -> LLVMType
pub fn pointer_type(element_type: LLVMType) -> LLVMType
pub fn ref_type(element_type: LLVMType) -> LLVMType
pub fn string_type() -> LLVMType
pub fn const_string(str: impl AsRef<str>) -> LLVMValue
pub fn create_builder() -> IRBuilder
pub fn type_of_string(s: &str) -> LLVMType
Auto Trait Implementations§
impl Freeze for Global
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnwindSafe for Global
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