Ignore:
Timestamp:
Aug 4, 2011, 5:04:35 AM (8 years ago)
Author:
cameron
Message:

Add --IDISA option to generate new IDISA operation calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r1219 r1271  
    88import ast, copy, sys
    99import Cgen
     10
     11name_substitution_map = {}
    1012
    1113def is_BuiltIn_Call(fncall, builtin_fnname, builtin_arg_cnt, builtin_fnmod_noprefix='bitutil'):
     
    2224
    2325def mkCall(fn_name, args):
    24   if isinstance(fn_name, str): fn_name = ast.Name(fn_name, ast.Load())
     26  if isinstance(fn_name, str):
     27        if name_substitution_map.has_key(fn_name): fn_name = name_substitution_map[fn_name]
     28        fn_name = ast.Name(fn_name, ast.Load())
    2529  return ast.Call(fn_name, args, [], None, None)
    2630
Note: See TracChangeset for help on using the changeset viewer.