pub struct Context { /* private fields */ }
Implementations§
Source§impl Context
impl Context
pub fn global_context() -> Context
pub fn new() -> Context
pub fn from_module(module: LLVMModuleRef) -> Context
pub fn as_ref(&self) -> LLVMContextRef
pub fn create_builder(&self) -> Builder
pub fn create_module(&self, name: &str) -> Module
pub fn StructTypeNamed(&self, name: &str) -> Struct
pub fn StructType(&self, fields: &mut [LLVMTypeRef], packed: bool) -> Struct
pub fn VoidType(&self) -> LLVMTypeRef
pub fn IntType(&self, num_bits: c_uint) -> LLVMTypeRef
pub fn Int1Type(&self) -> LLVMTypeRef
pub fn Int8Type(&self) -> LLVMTypeRef
pub fn Int16Type(&self) -> LLVMTypeRef
pub fn Int32Type(&self) -> LLVMTypeRef
pub fn Int64Type(&self) -> LLVMTypeRef
pub fn Int128Type(&self) -> LLVMTypeRef
pub fn HalfType(&self) -> LLVMTypeRef
pub fn FloatType(&self) -> LLVMTypeRef
pub fn DoubleType(&self) -> LLVMTypeRef
pub fn FP128Type(&self) -> LLVMTypeRef
pub fn X86FP80Type(&self) -> LLVMTypeRef
pub fn PPCFP128Type(&self) -> LLVMTypeRef
pub fn X86MMXType(&self) -> LLVMTypeRef
pub fn LabelType(&self) -> LLVMTypeRef
pub fn CharPointerType(&self) -> LLVMTypeRef
pub fn Int8PointerType(&self) -> LLVMTypeRef
pub fn PointerType(&self, typ: LLVMTypeRef) -> LLVMTypeRef
pub fn Null(&self, typ: LLVMTypeRef) -> LLVMValueRef
pub fn PointerNull(&self, typ: LLVMTypeRef) -> LLVMValueRef
pub fn Bitcast( &self, constant: LLVMValueRef, to_type: LLVMTypeRef, ) -> LLVMValueRef
pub fn SInt(&self, num_bits: c_uint, val: u64) -> LLVMValueRef
pub fn UInt(&self, num_bits: c_uint, val: u64) -> LLVMValueRef
pub fn SInt1(&self, val: u64) -> LLVMValueRef
pub fn UInt1(&self, val: u64) -> LLVMValueRef
pub fn SInt8(&self, val: u64) -> LLVMValueRef
pub fn UInt8(&self, val: u64) -> LLVMValueRef
pub fn SInt16(&self, val: u64) -> LLVMValueRef
pub fn UInt16(&self, val: u64) -> LLVMValueRef
pub fn SInt32(&self, val: u64) -> LLVMValueRef
pub fn UInt32(&self, val: u64) -> LLVMValueRef
pub fn SInt64(&self, val: u64) -> LLVMValueRef
pub fn UInt64(&self, val: u64) -> LLVMValueRef
pub fn SInt128(&self, val: u64) -> LLVMValueRef
pub fn UInt128(&self, val: u64) -> LLVMValueRef
pub fn Half(&self, val: f64) -> LLVMValueRef
pub fn Float(&self, val: f64) -> LLVMValueRef
pub fn Double(&self, val: f64) -> LLVMValueRef
pub fn FP128(&self, val: f64) -> LLVMValueRef
pub fn X86FP80(&self, val: f64) -> LLVMValueRef
pub fn PPCFP128(&self, val: f64) -> LLVMValueRef
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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