pub(super) struct F16IoPolyfill {
use_native: bool,
io_var_to_f32_type: FastHashMap<Word, Word>,
}
Expand description
Manages f16
I/O polyfill state and operations.
Fields§
§use_native: bool
§io_var_to_f32_type: FastHashMap<Word, Word>
Implementations§
Source§impl F16IoPolyfill
impl F16IoPolyfill
pub fn new(use_storage_input_output_16: bool) -> Self
pub fn needs_polyfill(&self, ty_inner: &TypeInner) -> bool
pub fn register_io_var(&mut self, variable_id: Word, f32_type_id: Word)
pub fn get_f32_io_type(&self, variable_id: Word) -> Option<Word>
pub fn emit_f16_to_f32_conversion( f16_value_id: Word, f32_type_id: Word, converted_id: Word, body: &mut Vec<Instruction>, )
pub fn emit_f32_to_f16_conversion( f32_value_id: Word, f16_type_id: Word, converted_id: Word, body: &mut Vec<Instruction>, )
pub fn create_polyfill_type(ty_inner: &TypeInner) -> Option<LocalType>
Trait Implementations§
Source§impl Default for F16IoPolyfill
impl Default for F16IoPolyfill
Source§fn default() -> F16IoPolyfill
fn default() -> F16IoPolyfill
Returns the “default value” for a type. Read more
Source§impl Recyclable for F16IoPolyfill
impl Recyclable for F16IoPolyfill
Auto Trait Implementations§
impl Freeze for F16IoPolyfill
impl RefUnwindSafe for F16IoPolyfill
impl Send for F16IoPolyfill
impl Sync for F16IoPolyfill
impl Unpin for F16IoPolyfill
impl UnwindSafe for F16IoPolyfill
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