def genptr_decl_opn(f, tag, regtype, regid, toss, numregs, i): if (hex_common.is_pair(regid)): genptr_decl(f, tag, regtype, regid, i) elif (hex_common.is_single(regid)): if hex_common.is_old_val(regtype, regid, tag): genptr_decl(f, tag, regtype, regid, i) elif hex_common.is_new_val(regtype, regid, tag): genptr_decl_new(f, regtype, regid, i) else: print("Bad register parse: ", regtype, regid, toss, numregs) else: print("Bad register parse: ", regtype, regid, toss, numregs)
def genptr_src_read_opn(f, regtype, regid, tag): if (hex_common.is_pair(regid)): genptr_src_read(f, regtype, regid) elif (hex_common.is_single(regid)): if hex_common.is_old_val(regtype, regid, tag): genptr_src_read(f, regtype, regid) elif hex_common.is_new_val(regtype, regid, tag): genptr_src_read_new(f, regtype, regid) else: print("Bad register parse: ", regtype, regid, toss, numregs) else: print("Bad register parse: ", regtype, regid, toss, numregs)
def gen_helper_arg_opn(f, regtype, regid, i, tag): if (hex_common.is_pair(regid)): gen_helper_arg_pair(f, regtype, regid, i) elif (hex_common.is_single(regid)): if hex_common.is_old_val(regtype, regid, tag): gen_helper_arg(f, regtype, regid, i) elif hex_common.is_new_val(regtype, regid, tag): gen_helper_arg_new(f, regtype, regid, i) else: print("Bad register parse: ", regtype, regid, toss, numregs) else: print("Bad register parse: ", regtype, regid, toss, numregs)
def gen_helper_call_opn(f, tag, regtype, regid, toss, numregs, i): if (i > 0): f.write(", ") if (hex_common.is_pair(regid)): f.write("%s%sV" % (regtype, regid)) elif (hex_common.is_single(regid)): if hex_common.is_old_val(regtype, regid, tag): f.write("%s%sV" % (regtype, regid)) elif hex_common.is_new_val(regtype, regid, tag): f.write("%s%sN" % (regtype, regid)) else: print("Bad register parse: ", regtype, regid, toss, numregs) else: print("Bad register parse: ", regtype, regid, toss, numregs)