From f957be4e6f41e8062a3e89e9febea6d52974c4ec Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 21 Dec 2015 21:12:04 +0800 Subject: [PATCH] transforms.llvm_ir_generator: handle loop instruction (fixes #202). --- artiq/compiler/transforms/llvm_ir_generator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index b563476e1..fe121a610 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -1089,6 +1089,8 @@ class LLVMIRGenerator: return self.llbuilder.cbranch(self.map(insn.condition()), self.map(insn.if_true()), self.map(insn.if_false())) + process_Loop = process_BranchIf + def process_IndirectBranch(self, insn): llinsn = self.llbuilder.branch_indirect(self.map(insn.target())) for dest in insn.destinations():