Skip to content

Commit 5bf9a68

Browse files
committed
comments typos
Signed-off-by: Nathan Gauër <[email protected]>
1 parent a650561 commit 5bf9a68

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

llvm/utils/spirv-sim/instructions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def decoratedRegister(self) -> str:
101101
return self._operands[0]
102102

103103

104-
# The only decoration we use if the BuilIn one to initialize the values.
104+
# The only decoration we use if the BuiltIn one to initialize the values.
105105
class OpDecorate(Instruction):
106106
def static_execution(self, lane):
107107
if self._operands[1] == "LinkageAttributes":

llvm/utils/spirv-sim/spirv-sim.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ class Lane:
185185
# The wave this lane belongs to.
186186
_wave: Wave
187187
# The callstack of this lane. Each tuple represents 1 call.
188-
# The first element is the IP the function will return to.
189-
# The second element is the callback to call to store the return value
190-
# into the correct register.
188+
# The first element is the IP the function will return to.
189+
# The second element is the callback to call to store the return value
190+
# into the correct register.
191191
_callstack: list[Tuple[InstructionPointer, Callable[[Any], None]]]
192192

193193
_previous_bb: Optional[BasicBlock]
@@ -234,7 +234,7 @@ def set_register(self, name: str, value: Any) -> None:
234234
self._registers[name] = value
235235

236236
# Get the value in register "name" in this lane.
237-
# if allow_undef is true, fetching an unknown register won't fail.
237+
# If allow_undef is true, fetching an unknown register won't fail.
238238
def get_register(self, name: str, allow_undef: bool = False) -> Optional[Any]:
239239
if allow_undef and name not in self._registers:
240240
return None
@@ -404,7 +404,7 @@ class Wave:
404404
# The instructions scheduled for execution.
405405
_tasks: Task
406406
# The actual requirements to comply with when executing instructions.
407-
# e.g: the set of lanes required to merge before executing the merge block.
407+
# E.g: the set of lanes required to merge before executing the merge block.
408408
_convergence_requirements: list[ConvergenceRequirement]
409409
# The indices of the active lanes for the current executing instruction.
410410
_active_lane_indices: set[int]
@@ -502,7 +502,7 @@ def _has_tasks(self) -> bool:
502502
def get_first_active_lane_index(self) -> int:
503503
return min(self._active_lane_indices)
504504

505-
# Broadcast the given value to all active lane registers'.
505+
# Broadcast the given value to all active lane registers.
506506
def broadcast_register(self, register: str, value: Any) -> None:
507507
for tid in self._active_lane_indices:
508508
self._lanes[tid].set_register(register, value)

0 commit comments

Comments
 (0)