pub struct InstructionSet { /* private fields */ }
Implementations§
Source§impl InstructionSet
impl InstructionSet
pub fn default(scope: &mut Scope) -> Self
pub fn common_lits(&self) -> &CommonLiteralRegs
pub fn common_literal_reg(&self, common_lit: &CommonLiteral) -> Reg
pub fn reserved_reg(&self, common_lit: &ReservedeRegister) -> Reg
pub fn load_op(&self, left: Reg, right: Operand) -> Operation
pub fn assignment_op( &self, op: &AssignmentOperator, rd: Reg, rs: Reg, ) -> Operation
pub fn update_op(&self, op: &UpdateOperator, rd: Reg) -> Operation
pub fn unary_op( &self, op: &UnaryOperator, rd: Reg, rs: Reg, ) -> CompilerResult<Operation>
pub fn binary_op( &self, op: &BinaryOperator, rd: Reg, r0: Reg, r1: Reg, ) -> CompilerResult<Operation>
Trait Implementations§
Source§impl Clone for InstructionSet
impl Clone for InstructionSet
Source§fn clone(&self) -> InstructionSet
fn clone(&self) -> InstructionSet
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for InstructionSet
impl RefUnwindSafe for InstructionSet
impl Send for InstructionSet
impl Sync for InstructionSet
impl Unpin for InstructionSet
impl UnwindSafe for InstructionSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more