mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 19:04:02 +08:00
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.FloorDiv: "sdiv",
|
||||
ast.Mod: "srem",
|
||||
|
||||
ast.LShift: "shl",
|
||||
ast.RShift: "ashr"
|
||||
ast.RShift: "ashr",
|
||||
|
||||
ast.BitAnd: "and_",
|
||||
ast.BitOr: "or_",
|
||||
}
|
||||
|
||||
def _emit_expr(env, builder, ns, node):
|
||||
|
Loading…
Reference in New Issue
Block a user