From d41d06835cd4acb1a51d534516992aacf4c66203 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 17 Aug 2014 21:45:36 +0800 Subject: [PATCH] compiler/ir_values: support bool operation on VBool --- artiq/compiler/ir_values.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/artiq/compiler/ir_values.py b/artiq/compiler/ir_values.py index cdb331c21..ad6c0d1bb 100644 --- a/artiq/compiler/ir_values.py +++ b/artiq/compiler/ir_values.py @@ -115,6 +115,12 @@ class VBool(VInt): def create_constant(self, b): VInt.create_constant(self, int(b)) + def o_bool(self, builder): + if builder is None: + return VBool() + else: + return self + # Operators def _make_unary_operator(op_name):