isa_parser.py (3950:19a99edda63b) | isa_parser.py (3953:300d526414e6) |
---|---|
1# Copyright (c) 2003-2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 1034 unchanged lines hidden (view full) --- 1043 if not hasattr(d, name) and \ 1044 not templateMap.has_key(name) and \ 1045 not myDict.has_key(name) and \ 1046 name not in perFuncNames: 1047 myDict[name] = d.snippets[name] 1048 if isinstance(myDict[name], str): 1049 myDict[name] = substMungedOpNames(substBitOps(myDict[name])) 1050 compositeCode += (" " + myDict[name]) | 1# Copyright (c) 2003-2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 1034 unchanged lines hidden (view full) --- 1043 if not hasattr(d, name) and \ 1044 not templateMap.has_key(name) and \ 1045 not myDict.has_key(name) and \ 1046 name not in perFuncNames: 1047 myDict[name] = d.snippets[name] 1048 if isinstance(myDict[name], str): 1049 myDict[name] = substMungedOpNames(substBitOps(myDict[name])) 1050 compositeCode += (" " + myDict[name]) |
1051 1052 compositeCode += (" " + template) 1053 |
|
1051 operands = SubOperandList(compositeCode, d.operands) 1052 1053 myDict['op_decl'] = operands.concatAttrStrings('op_decl') 1054 1055 is_src = lambda op: op.is_src 1056 is_dest = lambda op: op.is_dest 1057 1058 myDict['op_src_decl'] = \ --- 826 unchanged lines hidden --- | 1054 operands = SubOperandList(compositeCode, d.operands) 1055 1056 myDict['op_decl'] = operands.concatAttrStrings('op_decl') 1057 1058 is_src = lambda op: op.is_src 1059 is_dest = lambda op: op.is_dest 1060 1061 myDict['op_src_decl'] = \ --- 826 unchanged lines hidden --- |