diff --git a/artiq/py2llvm/base_types.py b/artiq/py2llvm/base_types.py index a534795ca..cbd6126b5 100644 --- a/artiq/py2llvm/base_types.py +++ b/artiq/py2llvm/base_types.py @@ -26,6 +26,12 @@ class VNone(VGeneric): r.set_const_value(builder, False) return r + def o_not(self, builder): + r = VBool() + if builder is not None: + r.set_const_value(builder, True) + return r + class VInt(VGeneric): def __init__(self, nbits=32):