diff --git a/ppci/lang/llvmir/codegenerator.py b/ppci/lang/llvmir/codegenerator.py index 6c1494d4..f79cacd5 100644 --- a/ppci/lang/llvmir/codegenerator.py +++ b/ppci/lang/llvmir/codegenerator.py @@ -67,7 +67,7 @@ def gen_instruction(self, instruction): ir_ins = self.emit(ir.Alloc(name, amount)) self.val_map[instruction] = ir_ins elif isinstance(instruction, nodes.GetElementPtrInst): - # Implement arithmatic here! + # Implement arithmetic here! ir_ins = self.get_val(instruction.ptr) print(instruction.indices) # raise NotImplementedError(str(instruction)) diff --git a/ppci/lang/llvmir/parser.py b/ppci/lang/llvmir/parser.py index 47fbc316..111ab6ad 100644 --- a/ppci/lang/llvmir/parser.py +++ b/ppci/lang/llvmir/parser.py @@ -527,9 +527,9 @@ def parse_instruction(self): "lshr", "ashr", ]: - instruction = self.parse_arithmatic() + instruction = self.parse_arithmetic() elif self.peek in ["and", "or"]: - instruction = self.parse_arithmatic() + instruction = self.parse_arithmetic() elif self.peek in [ "sext", "zext", @@ -553,7 +553,7 @@ def parse_instruction(self): self.not_impl() return instruction - def parse_arithmatic(self): + def parse_arithmetic(self): op = self.consume().val lhs = self.parse_type_and_value() self.consume(",")