Commit ca62f4e6 authored by Matthias Braun's avatar Matthias Braun
Browse files

more fixes for strange op entries

[r25924]
parent b856bc7f
......@@ -92,6 +92,8 @@ def format_arity_and_ins(node):
return `arity` + ", in"
def format_arity(node):
if "arity_override" in node:
return node["arity_override"]
arity = node['arity']
if arity == "dynamic":
return "oparity_dynamic"
......
......@@ -422,6 +422,7 @@ Div = dict(
attr_struct = "divmod_attr",
pinned = "exception",
op_index = 1,
arity_override = "oparity_binary",
d_post = '''
#if PRECISE_EXC_CONTEXT
firm_alloc_frag_arr(res, op_Div, &res->attr.except.frag_arr);
......@@ -443,6 +444,7 @@ DivMod = dict(
attr_struct = "divmod_attr",
pinned = "exception",
op_index = 1,
arity_override = "oparity_binary",
d_post = '''
#if PRECISE_EXC_CONTEXT
firm_alloc_frag_arr(res, op_DivMod, &res->attr.except.frag_arr);
......@@ -604,6 +606,7 @@ Mod = dict(
attr_struct = "divmod_attr",
pinned = "exception",
op_index = 1,
arity_override = "oparity_binary",
d_post = '''
#if PRECISE_EXC_CONTEXT
firm_alloc_frag_arr(res, op_Mod, &res->attr.except.frag_arr);
......@@ -690,6 +693,7 @@ Quot = dict(
attr_struct = "divmod_attr",
pinned = "exception",
op_index = 1,
arity_override = "oparity_binary",
d_post = '''
#if PRECISE_EXC_CONTEXT
firm_alloc_frag_arr(res, op_Quot, &res->attr.except.frag_arr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment