fixed typos, added typos checking to CI

This commit is contained in:
Anton-4 2021-06-05 20:02:54 +02:00
parent 960a4fddc5
commit 314503cf7f
43 changed files with 114 additions and 101 deletions

View file

@ -5,7 +5,7 @@ It goes from Roc's [mono ir](https://github.com/rtfeldman/roc/blob/trunk/compile
## General Process
The backend is essentially defined as two recursive match statment over the mono ir.
The backend is essentially defined as two recursive match statement over the mono ir.
The first pass is used to do simple linear scan lifetime analysis.
In the future it may be expanded to add a few other quick optimizations.
The second pass is the actual meat of the backend that generates the byte buffer of output binary.
@ -62,7 +62,7 @@ Here are example implementations for [arm](https://github.com/rtfeldman/roc/blob
Adding a new builtin to the dev backend can be pretty simple.
Here is [an example](https://github.com/rtfeldman/roc/pull/893/files) of adding `Num.Sub`.
This is the general procede I follow with some helpful links:
This is the general procedure I follow with some helpful links:
1. Find a feature that is just n+1.
For example, since we already have integers, adding a builtin that functions on them should be n+1.

View file

@ -205,7 +205,7 @@ pub struct Backend64Bit<
float_used_callee_saved_regs: MutSet<FloatReg>,
stack_size: u32,
// The ammount of stack space needed to pass args for function calling.
// The amount of stack space needed to pass args for function calling.
fn_call_stack_size: u32,
}
@ -409,7 +409,7 @@ impl<
Ok(())
}
x => Err(format!(
"recieving return type, {:?}, is not yet implemented",
"receiving return type, {:?}, is not yet implemented",
x
)),
}

View file

@ -236,7 +236,7 @@ impl CallConv<X86_64GeneralReg, X86_64FloatReg> for X86_64SystemV {
Layout::Builtin(Builtin::Float64) => {}
x => {
return Err(format!(
"recieving return type, {:?}, is not yet implemented",
"receiving return type, {:?}, is not yet implemented",
x
));
}
@ -530,7 +530,7 @@ impl CallConv<X86_64GeneralReg, X86_64FloatReg> for X86_64WindowsFastcall {
Layout::Builtin(Builtin::Float64) => {}
x => {
return Err(format!(
"recieving return type, {:?}, is not yet implemented",
"receiving return type, {:?}, is not yet implemented",
x
));
}

View file

@ -145,7 +145,7 @@ where
) -> Result<(), String>;
/// build_expr builds the expressions for the specified symbol.
/// The builder must keep track of the symbol because it may be refered to later.
/// The builder must keep track of the symbol because it may be referred to later.
fn build_expr(
&mut self,
sym: &Symbol,
@ -230,7 +230,7 @@ where
}
/// build_run_low_level builds the low level opertation and outputs to the specified symbol.
/// The builder must keep track of the symbol because it may be refered to later.
/// The builder must keep track of the symbol because it may be referred to later.
fn build_run_low_level(
&mut self,
sym: &Symbol,