mirror of https://github.com/m-labs/artiq.git
compiler/ir: add binary AND and OR
This commit is contained in:
parent
1d8eb121b3
commit
b2bb837d22
|
@ -28,8 +28,12 @@ _binop_to_builder = {
|
||||||
ast.Mult: "mul",
|
ast.Mult: "mul",
|
||||||
ast.FloorDiv: "sdiv",
|
ast.FloorDiv: "sdiv",
|
||||||
ast.Mod: "srem",
|
ast.Mod: "srem",
|
||||||
|
|
||||||
ast.LShift: "shl",
|
ast.LShift: "shl",
|
||||||
ast.RShift: "ashr"
|
ast.RShift: "ashr",
|
||||||
|
|
||||||
|
ast.BitAnd: "and_",
|
||||||
|
ast.BitOr: "or_",
|
||||||
}
|
}
|
||||||
|
|
||||||
def _emit_expr(env, builder, ns, node):
|
def _emit_expr(env, builder, ns, node):
|
||||||
|
|
Loading…
Reference in New Issue