Changeset 3440 for proto


Ignore:
Timestamp:
Sep 7, 2013, 1:34:47 PM (6 years ago)
Author:
cameron
Message:

Support top-level Advance in -W mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/CCGO_While.py

    r3020 r3440  
    176176             b = self.carryInfoSet.containing_block[op]
    177177             if b == block_no:
    178                if dpth == 0: test_list.append(mkast.var("Carry%i" % op))
     178               if dpth == 0:
     179                 if op not in self.carryInfoSet.advance_amount.keys():
     180                   test_list.append(mkast.var("Carry%i" % op))
     181                 elif self.carryInfoSet.advance_amount[op] == 1:
     182                   test_list.append(mkast.var("Carry%i" % op))
     183                 else: test_list.append(mkast.var("Advance%i" % op))
    179184               else: test_list.append(mkast.var("CarryVector%i" % op))
    180185             elif b in self.carryInfoSet.children[block_no] and not b in children_seen:
Note: See TracChangeset for help on using the changeset viewer.