Skip to content

Commit 68065d5

Browse files
committed
Typos and a minor correction
1 parent a26972f commit 68065d5

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

cranelift/codegen/meta/src/cdsl/instructions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub(crate) struct InstructionBuilder {
126126
operands_in: Option<Vec<Operand>>,
127127
operands_out: Option<Vec<Operand>>,
128128

129-
// See Instruction comments for the meaning of these fields.
129+
// See InstructionContent comments for the meaning of these fields.
130130
is_terminator: bool,
131131
is_branch: bool,
132132
is_call: bool,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
;; =========================================
5353
;; Stack manipulation.
5454

55-
;; Emits a inline stack probe loop.
55+
;; Emits an inline stack probe loop.
5656
(StackProbeLoop (tmp WritableReg)
5757
(frame_size u32)
5858
(guard_size u32))

cranelift/codegen/src/isa/x64/inst/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl Inst {
156156
Inst::External { inst }
157157
}
158158

159-
/// Writes the `simm64` immedaite into `dst`.
159+
/// Writes the `simm64` immediate into `dst`.
160160
///
161161
/// Note that if `dst_size` is less than 64-bits then the upper bits of
162162
/// `simm64` will be converted to zero.

cranelift/codegen/src/machinst/buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,7 @@ impl<I: VCodeInst> MachBuffer<I> {
16851685
});
16861686
}
16871687

1688-
/// Add a patchable call record at the current offset The actual
1688+
/// Add a patchable call record at the current offset. The actual
16891689
/// call is expected to have been emitted; the VCodeInst trait
16901690
/// specifies how to NOP it out, and we carry that information to
16911691
/// the finalized Machbuffer.

crates/cranelift/src/func_environ.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl<'module_environment> FuncEnvironment<'module_environment> {
316316
})
317317
}
318318

319-
/// Codegens a reference to the VMContext, and return it as well.
319+
/// Codegens a reference to the VMContext and returns it as well.
320320
pub(crate) fn vmctx_val(&mut self, pos: &mut FuncCursor<'_>) -> ir::Value {
321321
let pointer_type = self.pointer_type();
322322
let vmctx = self.vmctx(&mut pos.func);

0 commit comments

Comments
 (0)