pub struct RISCVX2ConstFolder { /* private fields */ }Expand description
Constant folding helper for RISCVX2.
Implementations§
Source§impl RISCVX2ConstFolder
impl RISCVX2ConstFolder
pub fn new() -> Self
pub fn add_i64(&mut self, a: i64, b: i64) -> Option<i64>
pub fn sub_i64(&mut self, a: i64, b: i64) -> Option<i64>
pub fn mul_i64(&mut self, a: i64, b: i64) -> Option<i64>
pub fn div_i64(&mut self, a: i64, b: i64) -> Option<i64>
pub fn rem_i64(&mut self, a: i64, b: i64) -> Option<i64>
pub fn neg_i64(&mut self, a: i64) -> Option<i64>
pub fn shl_i64(&mut self, a: i64, s: u32) -> Option<i64>
pub fn shr_i64(&mut self, a: i64, s: u32) -> Option<i64>
pub fn and_i64(&mut self, a: i64, b: i64) -> i64
pub fn or_i64(&mut self, a: i64, b: i64) -> i64
pub fn xor_i64(&mut self, a: i64, b: i64) -> i64
pub fn not_i64(&mut self, a: i64) -> i64
pub fn fold_count(&self) -> usize
pub fn failure_count(&self) -> usize
pub fn enable(&mut self)
pub fn disable(&mut self)
pub fn is_enabled(&self) -> bool
Trait Implementations§
Source§impl Clone for RISCVX2ConstFolder
impl Clone for RISCVX2ConstFolder
Source§fn clone(&self) -> RISCVX2ConstFolder
fn clone(&self) -> RISCVX2ConstFolder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RISCVX2ConstFolder
impl Debug for RISCVX2ConstFolder
Source§impl Default for RISCVX2ConstFolder
impl Default for RISCVX2ConstFolder
Source§fn default() -> RISCVX2ConstFolder
fn default() -> RISCVX2ConstFolder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RISCVX2ConstFolder
impl RefUnwindSafe for RISCVX2ConstFolder
impl Send for RISCVX2ConstFolder
impl Sync for RISCVX2ConstFolder
impl Unpin for RISCVX2ConstFolder
impl UnsafeUnpin for RISCVX2ConstFolder
impl UnwindSafe for RISCVX2ConstFolder
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