X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2FTEMPLATE%2FTEMPLATE_spec.pl;h=17b590d6c3aba3d00d728f186198e78b8e6a6046;hb=49650674902ee8d35388f8cff11568ec98b109ff;hp=126336731f0faf58fe28cfe961d2606df1eebefc;hpb=10c4feaba2596eeb09c1d362880b0b9ae6074ae2;p=libfirm diff --git a/ir/be/TEMPLATE/TEMPLATE_spec.pl b/ir/be/TEMPLATE/TEMPLATE_spec.pl index 126336731..17b590d6c 100644 --- a/ir/be/TEMPLATE/TEMPLATE_spec.pl +++ b/ir/be/TEMPLATE/TEMPLATE_spec.pl @@ -26,11 +26,16 @@ $arch = "TEMPLATE"; # comment => "any comment for constructor", # optional # reg_req => { in => [ "reg_class|register" ], out => [ "reg_class|register|in_rX" ] }, # cmp_attr => "c source code for comparing node attributes", # optional -# outs => { "out1", "out2" } # optional, creates pn_op_out1, ... consts -# ins => { "in1", "in2" } # optional, creates n_op_in1, ... consts -# mode => "mode_Iu" # optional, predefines the mode +# outs => { "out1", "out2" },# optional, creates pn_op_out1, ... consts +# ins => { "in1", "in2" }, # optional, creates n_op_in1, ... consts +# mode => "mode_Iu", # optional, predefines the mode # emit => "emit code with templates", # optional for virtual nodes -# rd_constructor => "c source code which constructs an ir_node" # optional +# attr => "additional attribute arguments for constructor", # optional +# init_attr => "emit attribute initialization template", # optional +# rd_constructor => "c source code which constructs an ir_node", # optional +# hash_func => "name of the hash function for this operation", # optional, get the default hash function else +# latency => "latency of this operation (can be float)" # optional +# attr_type => "name of the attribute struct", # optional # }, # # ... # (all nodes you need to describe) @@ -136,19 +141,19 @@ $arch = "TEMPLATE"; ); # %reg_classes %emit_templates = ( - S1 => "${arch}_emit_source_register(env, node, 0);", - S2 => "${arch}_emit_source_register(env, node, 1);", - S3 => "${arch}_emit_source_register(env, node, 2);", - S4 => "${arch}_emit_source_register(env, node, 3);", - S5 => "${arch}_emit_source_register(env, node, 4);", - S6 => "${arch}_emit_source_register(env, node, 5);", - D1 => "${arch}_emit_dest_register(env, node, 0);", - D2 => "${arch}_emit_dest_register(env, node, 1);", - D3 => "${arch}_emit_dest_register(env, node, 2);", - D4 => "${arch}_emit_dest_register(env, node, 3);", - D5 => "${arch}_emit_dest_register(env, node, 4);", - D6 => "${arch}_emit_dest_register(env, node, 5);", - C => "${arch}_emit_immediate(env, node);" + S1 => "${arch}_emit_source_register(node, 0);", + S2 => "${arch}_emit_source_register(node, 1);", + S3 => "${arch}_emit_source_register(node, 2);", + S4 => "${arch}_emit_source_register(node, 3);", + S5 => "${arch}_emit_source_register(node, 4);", + S6 => "${arch}_emit_source_register(node, 5);", + D1 => "${arch}_emit_dest_register(node, 0);", + D2 => "${arch}_emit_dest_register(node, 1);", + D3 => "${arch}_emit_dest_register(node, 2);", + D4 => "${arch}_emit_dest_register(node, 3);", + D5 => "${arch}_emit_dest_register(node, 4);", + D6 => "${arch}_emit_dest_register(node, 5);", + C => "${arch}_emit_immediate(node);" ); #--------------------------------------------------#