Changeset 3009 for proto/Compiler


Ignore:
Timestamp:
Apr 10, 2013, 6:26:25 PM (6 years ago)
Author:
cameron
Message:

Support for pablo.MatchStar?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/carryInfo.py

    r2802 r3009  
    1010
    1111def isCarryGenerating(builtin_fn):
    12    return builtin_fn in ['ScanThru', 'ScanTo', 'AdvanceThenScanThru', 'AdvanceThenScanTo', 'SpanUpTo', 'InclusiveSpan', 'ExclusiveSpan', 'ScanToFirst']
     12   return builtin_fn in ['ScanThru', 'ScanTo', 'AdvanceThenScanThru', 'AdvanceThenScanTo', 'SpanUpTo', 'InclusiveSpan', 'ExclusiveSpan', 'ScanToFirst', 'MatchStar']
    1313def usesCarryInit1(builtin_fn):
    1414   return builtin_fn in ['ScanToFirst']
     
    168168  def visit_Call(self, callnode):
    169169    self.generic_visit(callnode)
    170     if is_BuiltIn_Call(callnode,'Advance', 1) or is_BuiltIn_Call(callnode,'ScanThru', 2) or is_BuiltIn_Call(callnode,'ScanTo', 2) or is_BuiltIn_Call(callnode,'AdvanceThenScanThru', 2) or is_BuiltIn_Call(callnode,'AdvanceThenScanTo', 2) or is_BuiltIn_Call(callnode,'SpanUpTo', 2) or  is_BuiltIn_Call(callnode,'InclusiveSpan', 2) or is_BuiltIn_Call(callnode,'ExclusiveSpan', 2):       
     170    if is_BuiltIn_Call(callnode,'Advance', 1) or is_BuiltIn_Call(callnode,'ScanThru', 2) or is_BuiltIn_Call(callnode,'ScanTo', 2) or is_BuiltIn_Call(callnode,'AdvanceThenScanThru', 2) or is_BuiltIn_Call(callnode,'AdvanceThenScanTo', 2) or is_BuiltIn_Call(callnode,'SpanUpTo', 2) or  is_BuiltIn_Call(callnode,'InclusiveSpan', 2) or is_BuiltIn_Call(callnode,'ExclusiveSpan', 2)  or is_BuiltIn_Call(callnode,'MatchStar', 2):           
    171171      self.carry_count += 1
    172172    elif is_BuiltIn_Call(callnode,'ScanToFirst', 1):
Note: See TracChangeset for help on using the changeset viewer.