diff --git a/cranelift/codegen/meta-python/base/entities.py b/cranelift/codegen/meta-python/base/entities.py index 7b11810f48..0226b18ca4 100644 --- a/cranelift/codegen/meta-python/base/entities.py +++ b/cranelift/codegen/meta-python/base/entities.py @@ -19,7 +19,7 @@ stack_slot = EntityRefKind('stack_slot', 'A stack slot.') #: A reference to a global value. global_value = EntityRefKind('global_value', 'A global value.') -#: A reference to a function sugnature declared in the function preamble. +#: A reference to a function signature declared in the function preamble. #: This is used to provide the call signature in a call_indirect instruction. sig_ref = EntityRefKind('sig_ref', 'A function signature.') diff --git a/cranelift/codegen/meta-python/cdsl/instructions.py b/cranelift/codegen/meta-python/cdsl/instructions.py index 5b2a04d7be..34741991da 100644 --- a/cranelift/codegen/meta-python/cdsl/instructions.py +++ b/cranelift/codegen/meta-python/cdsl/instructions.py @@ -252,7 +252,7 @@ class Instruction(object): for opnum in self.value_opnums: typ = self.ins[opnum].typevar tv = typ.free_typevar() - # Non-polymorphic or derived form ctrl_typevar is OK. + # Non-polymorphic or derived from ctrl_typevar is OK. if tv is None or tv is ctrl_typevar: continue # No other derived typevars allowed. diff --git a/cranelift/codegen/meta-python/gen_instr.py b/cranelift/codegen/meta-python/gen_instr.py index 1c6905f1cd..94de93b000 100644 --- a/cranelift/codegen/meta-python/gen_instr.py +++ b/cranelift/codegen/meta-python/gen_instr.py @@ -364,7 +364,7 @@ def gen_opcodes(groups, fmt): # We explicitly set the discriminant of the first variant to 1, which # allows us to take advantage of the NonZero optimization, meaning that # wrapping enums can use the 0 discriminant instead of increasing the size - # if the whole type, and so SIZEOF(Option>) == SIZEOF(Opcode) + # of the whole type, and so SIZEOF(Option>) == SIZEOF(Opcode) is_first_opcode = True with fmt.indented('pub enum Opcode {', '}'): for g in groups: @@ -505,7 +505,7 @@ def gen_type_constraints(fmt, instrs): # Table of operand constraint sequences (as tuples). Each operand # constraint is represented as a string, one of: # - `Concrete(vt)`, where `vt` is a value type name. - # - `Free(idx)` where `idx` isan index into `type_sets`. + # - `Free(idx)` where `idx` is an index into `type_sets`. # - `Same`, `Lane`, `AsBool` for controlling typevar-derived constraints. operand_seqs = UniqueSeqTable()