Skip to content

Commit

Permalink
transforms.llvm_ir_generator: handle loop instruction (fixes #202).
Browse files Browse the repository at this point in the history
whitequark committed Dec 21, 2015
1 parent 007a717 commit f957be4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions artiq/compiler/transforms/llvm_ir_generator.py
Original file line number Diff line number Diff line change
@@ -1089,6 +1089,8 @@ def process_BranchIf(self, insn):
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():

0 comments on commit f957be4

Please sign in to comment.