Skip to content

Commit a650561

Browse files
committed
python format
Signed-off-by: Nathan Gauër <[email protected]>
1 parent c703225 commit a650561

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/utils/spirv-sim/instructions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from typing import Optional
22

3+
34
# Base class for an instruction. To implement a basic instruction that doesn't
45
# impact the control-flow, create a new class inheriting from this.
56
class Instruction:
@@ -256,14 +257,16 @@ def _impl(self, module, lane):
256257
output.append(lane.get_register(op))
257258
lane.set_register(self._result, output)
258259

260+
259261
class OpCompositeExtract(Instruction):
260262
def _impl(self, module, lane):
261263
value = lane.get_register(self._operands[1])
262264
output = value
263265
for op in self._operands[2:]:
264-
output = output[int(op)]
266+
output = output[int(op)]
265267
lane.set_register(self._result, output)
266268

269+
267270
class OpStore(Instruction):
268271
def _impl(self, module, lane):
269272
lane.set_register(self._operands[0], lane.get_register(self._operands[1]))

0 commit comments

Comments
 (0)