Get array slicing and expressions compiling
This commit is contained in:
parent
f0ad108e2c
commit
87a44e3117
1 changed files with 3 additions and 0 deletions
|
|
@ -1040,6 +1040,9 @@ class IntegerValue(OperatorMixin):
|
|||
else:
|
||||
return self._temp(self.parent.builder.icmp(lc.ICMP_SGE, self.value, rhs.value))
|
||||
|
||||
def __neg__(self):
|
||||
return self._temp(self.parent.builder.neg(self.value))
|
||||
|
||||
def cast(self, ty, unsigned=False):
|
||||
if ty == self.type:
|
||||
return self._temp(self.value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue