Changeset 2718 for proto


Ignore:
Timestamp:
Dec 2, 2012, 9:23:18 PM (7 years ago)
Author:
cameron
Message:

Calculate block_base for all blocks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/CCGO_HMCPS.py

    r2709 r2718  
    184184        # The calculated (ub, rp) value is reduced by this amount for the local carry group(s).
    185185        self.carry_offset = 0
    186 
    187186#
    188187# Carry Storage/Access
     
    296295          if align_base > self.field_count: align_base = self.field_count
    297296          carry_count = align(carry_count, align_base)
    298           self.block_base[b] = carry_count
    299297        if op not in self.carryInfoSet.advance_amount.keys():
    300298          self.alloc_map[op] = carry_count
     
    306304      # appears to start a new pack.
    307305      self.alloc_map[self.carryInfoSet.operation_count] = align(carry_count, self.field_count)
     306      for b in range(self.carryInfoSet.block_count):
     307         self.block_base[b] = self.alloc_map[self.carryInfoSet.block_first_op[b]]
    308308     
    309309    def GenerateCarryDecls(self):
Note: See TracChangeset for help on using the changeset viewer.