Skip to content

Commit ab78bd8

Browse files
authored
fix: correct various typos (bytecodealliance#12807)
Signed-off-by: Ho Kim <ho.kim@ulagbulag.io>
1 parent 3b3f1e7 commit ab78bd8

File tree

64 files changed

+86
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+86
-86
lines changed

cranelift/assembler-x64/meta/src/generate/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enum ModRmStyle {
2525
},
2626

2727
/// Same as `RegMem` above except that this is also used for VEX-encoded
28-
/// instructios with "/is4" which indicates that the 4th register operand
28+
/// instructions with "/is4" which indicates that the 4th register operand
2929
/// is encoded in a byte after the ModR/M byte.
3030
RegMemIs4 {
3131
reg: ModRmReg,

cranelift/bforest/src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ where
239239
}
240240
}
241241

242-
/// Iterate over the enties within the given range.
242+
/// Iterate over the entries within the given range.
243243
pub fn range<'a, R, C>(
244244
&'a self,
245245
range: R,

cranelift/bforest/src/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ mod tests {
544544
// Level 1: 1 root
545545
// Level 2: 8 inner
546546
// Level 3: 64 inner
547-
// Level 4: 512 leafs, up to 7680 elements
547+
// Level 4: 512 leaves, up to 7680 elements
548548
//
549549
// A 3-level tree can hold at most 960 elements.
550550
fn dense4l(f: &mut SetForest<i32>) -> Set<i32> {

cranelift/codegen/src/egraph/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ impl<'a> EgraphPass<'a> {
10571057
/// Implementation of external-context equality and hashing on
10581058
/// InstructionData. This allows us to deduplicate instructions given
10591059
/// some context that lets us see its value lists, so we don't need to
1060-
/// store arguments inline in the `InstuctionData` (or alongside it in
1060+
/// store arguments inline in the `InstructionData` (or alongside it in
10611061
/// some newly-defined key type) in all cases.
10621062
struct GVNContext<'a> {
10631063
value_lists: &'a ValueListPool,

cranelift/codegen/src/inline.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! have been marked the equivalent of `#[inline(never)]`, etc... Only the
88
//! Cranelift user can understand these aspects of the full compilation
99
//! pipeline, and these things can be very different between (say) Wasmtime and
10-
//! `cg_clif`. Therefore, this module does not attempt to define hueristics for
10+
//! `cg_clif`. Therefore, this module does not attempt to define heuristics for
1111
//! when inlining a particular call is likely beneficial. This module only
1212
//! provides hooks for the Cranelift user to define whether a given call should
1313
//! be inlined or not, and the mechanics to inline a callee into a particular
@@ -60,7 +60,7 @@ pub trait Inline {
6060
/// A hook invoked for each direct call instruction in a function, whose
6161
/// result determines whether Cranelift should inline a given call.
6262
///
63-
/// The Cranelift user is responsible for defining their own hueristics and
63+
/// The Cranelift user is responsible for defining their own heuristics and
6464
/// deciding whether inlining the call is beneficial.
6565
///
6666
/// When returning a function and directing Cranelift to inline its body

cranelift/codegen/src/isa/aarch64/inst/imms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ impl MoveWideConst {
602602
None
603603
}
604604

605-
/// Create a `MoveWideCosnt` from a given shift, if possible.
605+
/// Create a `MoveWideConst` from a given shift, if possible.
606606
pub fn maybe_with_shift(imm: u16, shift: u8) -> Option<MoveWideConst> {
607607
let shift_enc = shift / 16;
608608
if shift_enc > 3 {

cranelift/codegen/src/isa/pulley_shared/abi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ where
165165

166166
fn gen_load_stack(mem: StackAMode, into_reg: Writable<Reg>, ty: Type) -> Self::I {
167167
let mut flags = MemFlags::trusted();
168-
// Stack loads/stores of vectors always use little-endianess to avoid
168+
// Stack loads/stores of vectors always use little-endianness to avoid
169169
// implementing a byte-swap of vectors on big-endian platforms.
170170
if ty.is_vector() {
171171
flags.set_endianness(ir::Endianness::Little);
@@ -175,7 +175,7 @@ where
175175

176176
fn gen_store_stack(mem: StackAMode, from_reg: Reg, ty: Type) -> Self::I {
177177
let mut flags = MemFlags::trusted();
178-
// Stack loads/stores of vectors always use little-endianess to avoid
178+
// Stack loads/stores of vectors always use little-endianness to avoid
179179
// implementing a byte-swap of vectors on big-endian platforms.
180180
if ty.is_vector() {
181181
flags.set_endianness(ir::Endianness::Little);

cranelift/codegen/src/isa/pulley_shared/inst.isle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@
356356
;; Next see if the `oob` and `raw_addr` combination match. This will attempt
357357
;; extract a full bounds check from these values. If everything succeeds the
358358
;; final step is then to extract an 8-bit offset of the load/store operation,
359-
;; if appplicable, assuming that the constants used in various places all line
359+
;; if applicable, assuming that the constants used in various places all line
360360
;; up just right.
361361
(if-let (OobSelect.All base bound wasm_addr access_size_plus_offset)
362362
(wasm_oob_select oob host_addr))

cranelift/codegen/src/isa/pulley_shared/inst/emit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ fn pulley_emit<P>(
125125
P: PulleyTargetKind,
126126
{
127127
match inst {
128-
// Pseduo-instructions that don't actually encode to anything.
128+
// Pseudo-instructions that don't actually encode to anything.
129129
Inst::Args { .. } | Inst::Rets { .. } | Inst::DummyUse { .. } => {}
130130

131131
Inst::TrapIf { cond, code } => {

cranelift/codegen/src/isa/riscv64/inst_vector.isle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@
17351735
;; Builds a vector mask corresponding to the FloatCC operation.
17361736
;;
17371737
;; Recursion: recursive rules implement some condition codes in terms of a
1738-
;; smaller set of primtives, which recursive rules would not apply to twice.
1738+
;; smaller set of primitives, which recursive rules would not apply to twice.
17391739
(decl rec gen_fcmp_mask (Type FloatCC Value Value) VReg)
17401740

17411741
;; FloatCC.Equal

0 commit comments

Comments
 (0)