pub struct Context(/* private fields */);
Implementations§
Source§impl Context
impl Context
pub fn new() -> Self
pub fn new_with_threading_enabled(allow_threading: bool) -> Self
pub fn from_registry(registry: &Registry) -> Self
pub fn append_registry(&mut self, registry: &Registry)
pub fn get(&self) -> &MlirContext
pub fn get_dialect_arith(&self) -> Dialect
pub fn get_dialect_cf(&self) -> Dialect
pub fn get_dialect_func(&self) -> Dialect
pub fn get_dialect_gpu(&self) -> Dialect
pub fn get_dialect_linalg(&self) -> Dialect
pub fn get_dialect_llvm(&self) -> Dialect
pub fn get_dialect_memref(&self) -> Dialect
pub fn get_dialect_scf(&self) -> Dialect
pub fn get_dialect_shape(&self) -> Dialect
pub fn get_dialect_spirv(&self) -> Dialect
pub fn get_dialect_tensor(&self) -> Dialect
pub fn get_dialect_vector(&self) -> Dialect
pub fn get_mut(&mut self) -> &mut MlirContext
pub fn get_unknown_location(&self) -> Location
pub fn is_allowed_unregistered_dialects(&self) -> bool
pub fn is_null(&self) -> bool
pub fn is_registered_operation(&self, s: &StringRef) -> bool
pub fn load_all_available_dialects(&mut self)
Sourcepub fn load_dialect(&self, name: &str) -> Option<Dialect>
pub fn load_dialect(&self, name: &str) -> Option<Dialect>
Load a registered dialect with name
pub fn num_loaded_dialects(&self) -> isize
pub fn num_registered_dialects(&self) -> isize
pub fn set_allow_unregistered_dialects(&mut self, allow: bool)
pub fn set_enable_multithreading(&mut self, allow: bool)
Trait Implementations§
Source§impl From<MlirContext> for Context
impl From<MlirContext> for Context
Source§fn from(context: MlirContext) -> Self
fn from(context: MlirContext) -> Self
Converts to this type from the input type.
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