forked from M-Labs/artiq
1f40f3ce15
Since we don't implement any integer-like operations for TBool (addition, bitwise not, etc.), TBool is currently neither strictly equivalent to builtin bool nor numpy.bool_, but through very obvious compiler errors (operation not supported) rather than silently different runtime behaviour. Just mapping both to TBool thus is a huge improvement over the current behaviour (where numpy.False_ is a true-like object). In the future, we could still implement more operations for TBool, presumably following numpy.bool_ rather than the builtin type, just like builtin integers get translated to the numpy-like TInt{32,64}. GitHub: Fixes #1275. |
||
---|---|---|
.. | ||
__init__.py | ||
artiq_ir_generator.py | ||
asttyped_rewriter.py | ||
cast_monomorphizer.py | ||
constant_hoister.py | ||
dead_code_eliminator.py | ||
inferencer.py | ||
int_monomorphizer.py | ||
interleaver.py | ||
iodelay_estimator.py | ||
llvm_ir_generator.py | ||
local_demoter.py | ||
typedtree_printer.py |