Ignore:
Timestamp:
Dec 5, 2010, 9:35:19 AM (9 years ago)
Author:
cameron
Message:

Generate CarryQ_Adjust call at loop end.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r777 r779  
    372372    if self.carry_count == 0: return "1"
    373373    else: return "CarryTest(%s, 0, %i);\n" % (self.carry_var, self.carry_count)
    374 
    375374  def gen_declarations(self):
    376375    self.Cdecls = StreamStructGen().gen(self.main_module)
     
    385384    Bitwise_to_SIMD().xfrm(self.main_fn)
    386385    CarryIntro().xfrm_fndef(self.main_fn)
     386  def add_loop_carryQ_adjust(self):
     387    self.main_fn.body += [mkCallStmt('CarryQ_Adjust', [ast.Name(self.carry_var, ast.Load()), ast.Num(self.carry_count)])]
    387388  def getCdecls(self):
    388389    return self.Cdecls
Note: See TracChangeset for help on using the changeset viewer.