env.filters['arguments'] = format_arguments
def get_io_type(type, attrname, node):
- if type == "tarval*":
- importcmd = "tarval *%s = read_tv(env);" % attrname
+ if type == "ir_tarval*":
+ importcmd = "ir_tarval *%s = read_tv(env);" % attrname
exportcmd = "write_tarval(env, %(val)s);";
elif type == "ir_mode*":
importcmd = "ir_mode *%s = read_mode(env);" % attrname
importcmd = "long %s = read_long(env);" % attrname
exportcmd = """fprintf(env->file, "%%ld ", %(val)s);"""
else:
- error("cannot generate import/export for node %s: unsupported attribute type: %s" % (node.name, type))
+ warning("cannot generate import/export for node %s: unsupported attribute type: %s" % (node.name, type))
importcmd = """// BAD: %s %s
%s %s = (%s) 0;""" % (type, attrname, type, attrname, type)
exportcmd = "// BAD: %s" % type
gendir = argv[2]
# these nodes don't work correctly yet for some reasons...
- niynodes = [ "EndExcept", "EndReg", "ASM" ]
+ niynodes = [ "ASM" ]
# these have custom im-/export code
- customcode = [ "Start", "End", "Anchor", "SymConst", "Block" ]
+ customcode = [ "Start", "End", "Anchor", "SymConst", "Block", "Deleted" ]
real_nodes = []
for node in ir_spec.nodes: