Commit 5eb42af0 authored by John Zhang's avatar John Zhang

update all .c files with new compile_to_sharedlib

parent 701d0d7d
Pipeline #63 failed with stage
in 20 minutes and 31 seconds
......@@ -43,7 +43,7 @@ int main(int argc, char** argv) {
bldr->new_bb(bldr, id_7, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_9, id_10}, 2);
bldr->new_func_ver(bldr, id_6, id_5, (MuBBNode [1]){id_7}, 1);
bldr->load(bldr);
mu->compile_to_sharedlib(mu, "test_add.dylib");
mu->compile_to_sharedlib(mu, "test_add.dylib", NULL, 0);
printf("%s\n", "test_add.dylib");
return 0;
}
......@@ -43,7 +43,7 @@ int main(int argc, char** argv) {
bldr_8->new_bb(bldr_8, id_77, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_79, id_80}, 2);
bldr_8->new_func_ver(bldr_8, id_76, id_75, (MuBBNode [1]){id_77}, 1);
bldr_8->load(bldr_8);
mu_8->compile_to_sharedlib(mu_8, "test_and.dylib");
mu_8->compile_to_sharedlib(mu_8, "test_and.dylib", NULL, 0);
printf("%s\n", "test_and.dylib");
return 0;
}
......@@ -37,7 +37,7 @@ int main(int argc, char** argv) {
bldr->new_bb(bldr, id_6, NULL, NULL, 0, MU_NO_ID, (MuInstNode [1]){id_8}, 1);
bldr->new_func_ver(bldr, id_5, id_4, (MuBBNode [1]){id_6}, 1);
bldr->load(bldr);
mu->compile_to_sharedlib(mu, "test_constfunc.dylib");
mu->compile_to_sharedlib(mu, "test_constfunc.dylib", NULL, 0);
printf("%s\n", "test_constfunc.dylib");
return 0;
}
......@@ -51,7 +51,7 @@ int main(int argc, char** argv) {
bldr_10->new_bb(bldr_10, id_98, NULL, NULL, 0, MU_NO_ID, (MuInstNode [3]){id_101, id_102, id_103}, 3);
bldr_10->new_func_ver(bldr_10, id_97, id_96, (MuBBNode [1]){id_98}, 1);
bldr_10->load(bldr_10);
mu_10->compile_to_sharedlib(mu_10, "test_eq_int.dylib");
mu_10->compile_to_sharedlib(mu_10, "test_eq_int.dylib", NULL, 0);
printf("%s\n", "test_eq_int.dylib");
return 0;
}
......@@ -56,7 +56,7 @@ int main(int argc, char** argv) {
bldr_11->new_bb(bldr_11, id_111, NULL, NULL, 0, MU_NO_ID, (MuInstNode [4]){id_115, id_116, id_117, id_118}, 4);
bldr_11->new_func_ver(bldr_11, id_110, id_109, (MuBBNode [1]){id_111}, 1);
bldr_11->load(bldr_11);
mu_11->compile_to_sharedlib(mu_11, "test_eq_ref.dylib");
mu_11->compile_to_sharedlib(mu_11, "test_eq_ref.dylib", NULL, 0);
printf("%s\n", "test_eq_ref.dylib");
return 0;
}
......@@ -93,7 +93,7 @@ int main(int argc, char** argv) {
bldr->new_bb(bldr, id_10, (MuID [1]){id_18}, (MuTypeNode [1]){id}, 1, MU_NO_ID, (MuInstNode [6]){id_24, id_25, id_26, id_27, id_28, id_29}, 6);
bldr->new_func_ver(bldr, id_7, id_6, (MuBBNode [3]){id_8, id_9, id_10}, 3);
bldr->load(bldr);
mu->compile_to_sharedlib(mu, "test_fib.dylib");
mu->compile_to_sharedlib(mu, "test_fib.dylib", NULL, 0);
printf("%s\n", "test_fib.dylib");
return 0;
}
......@@ -43,7 +43,7 @@ int main(int argc, char** argv) {
bldr_7->new_bb(bldr_7, id_67, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_69, id_70}, 2);
bldr_7->new_func_ver(bldr_7, id_66, id_65, (MuBBNode [1]){id_67}, 1);
bldr_7->load(bldr_7);
mu_7->compile_to_sharedlib(mu_7, "test_lshr.dylib");
mu_7->compile_to_sharedlib(mu_7, "test_lshr.dylib", NULL, 0);
printf("%s\n", "test_lshr.dylib");
return 0;
}
......@@ -43,7 +43,7 @@ int main(int argc, char** argv) {
bldr_3->new_bb(bldr_3, id_27, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_29, id_30}, 2);
bldr_3->new_func_ver(bldr_3, id_26, id_25, (MuBBNode [1]){id_27}, 1);
bldr_3->load(bldr_3);
mu_3->compile_to_sharedlib(mu_3, "test_mul.dylib");
mu_3->compile_to_sharedlib(mu_3, "test_mul.dylib", NULL, 0);
printf("%s\n", "test_mul.dylib");
return 0;
}
......@@ -116,7 +116,7 @@ int main(int argc, char** argv) {
bldr->new_bb(bldr, id_34, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_36, id_37}, 2);
bldr->new_func_ver(bldr, id_33, id_32, (MuBBNode [1]){id_34}, 1);
bldr->load(bldr);
mu->compile_to_sharedlib(mu, "test_multifunc.dylib");
mu->compile_to_sharedlib(mu, "test_multifunc.dylib", NULL, 0);
printf("%s\n", "test_multifunc.dylib");
return 0;
}
......@@ -51,7 +51,7 @@ int main(int argc, char** argv) {
bldr_12->new_bb(bldr_12, id_126, NULL, NULL, 0, MU_NO_ID, (MuInstNode [3]){id_129, id_130, id_131}, 3);
bldr_12->new_func_ver(bldr_12, id_125, id_124, (MuBBNode [1]){id_126}, 1);
bldr_12->load(bldr_12);
mu_12->compile_to_sharedlib(mu_12, "test_ne_int.dylib");
mu_12->compile_to_sharedlib(mu_12, "test_ne_int.dylib", NULL, 0);
printf("%s\n", "test_ne_int.dylib");
return 0;
}
......@@ -56,7 +56,7 @@ int main(int argc, char** argv) {
bldr_13->new_bb(bldr_13, id_139, NULL, NULL, 0, MU_NO_ID, (MuInstNode [4]){id_143, id_144, id_145, id_146}, 4);
bldr_13->new_func_ver(bldr_13, id_138, id_137, (MuBBNode [1]){id_139}, 1);
bldr_13->load(bldr_13);
mu_13->compile_to_sharedlib(mu_13, "test_ne_ref.dylib");
mu_13->compile_to_sharedlib(mu_13, "test_ne_ref.dylib", NULL, 0);
printf("%s\n", "test_ne_ref.dylib");
return 0;
}
......@@ -43,7 +43,7 @@ int main(int argc, char** argv) {
bldr_4->new_bb(bldr_4, id_37, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_39, id_40}, 2);
bldr_4->new_func_ver(bldr_4, id_36, id_35, (MuBBNode [1]){id_37}, 1);
bldr_4->load(bldr_4);
mu_4->compile_to_sharedlib(mu_4, "test_sdiv.dylib");
mu_4->compile_to_sharedlib(mu_4, "test_sdiv.dylib", NULL, 0);
printf("%s\n", "test_sdiv.dylib");
return 0;
}
......@@ -61,7 +61,7 @@ int main(int argc, char** argv) {
bldr_14->new_bb(bldr_14, id_154, NULL, NULL, 0, MU_NO_ID, (MuInstNode [5]){id_159, id_160, id_161, id_162, id_163}, 5);
bldr_14->new_func_ver(bldr_14, id_153, id_152, (MuBBNode [1]){id_154}, 1);
bldr_14->load(bldr_14);
mu_14->compile_to_sharedlib(mu_14, "test_sge.dylib");
mu_14->compile_to_sharedlib(mu_14, "test_sge.dylib", NULL, 0);
printf("%s\n", "test_sge.dylib");
return 0;
}
......@@ -61,7 +61,7 @@ int main(int argc, char** argv) {
bldr_15->new_bb(bldr_15, id_171, NULL, NULL, 0, MU_NO_ID, (MuInstNode [5]){id_176, id_177, id_178, id_179, id_180}, 5);
bldr_15->new_func_ver(bldr_15, id_170, id_169, (MuBBNode [1]){id_171}, 1);
bldr_15->load(bldr_15);
mu_15->compile_to_sharedlib(mu_15, "test_sgt.dylib");
mu_15->compile_to_sharedlib(mu_15, "test_sgt.dylib", NULL, 0);
printf("%s\n", "test_sgt.dylib");
return 0;
}
......@@ -43,7 +43,7 @@ int main(int argc, char** argv) {
bldr_6->new_bb(bldr_6, id_57, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_59, id_60}, 2);
bldr_6->new_func_ver(bldr_6, id_56, id_55, (MuBBNode [1]){id_57}, 1);
bldr_6->load(bldr_6);
mu_6->compile_to_sharedlib(mu_6, "test_shl.dylib");
mu_6->compile_to_sharedlib(mu_6, "test_shl.dylib", NULL, 0);
printf("%s\n", "test_shl.dylib");
return 0;
}
......@@ -61,7 +61,7 @@ int main(int argc, char** argv) {
bldr_16->new_bb(bldr_16, id_188, NULL, NULL, 0, MU_NO_ID, (MuInstNode [5]){id_193, id_194, id_195, id_196, id_197}, 5);
bldr_16->new_func_ver(bldr_16, id_187, id_186, (MuBBNode [1]){id_188}, 1);
bldr_16->load(bldr_16);
mu_16->compile_to_sharedlib(mu_16, "test_sle.dylib");
mu_16->compile_to_sharedlib(mu_16, "test_sle.dylib", NULL, 0);
printf("%s\n", "test_sle.dylib");
return 0;
}
......@@ -61,7 +61,7 @@ int main(int argc, char** argv) {
bldr_17->new_bb(bldr_17, id_205, NULL, NULL, 0, MU_NO_ID, (MuInstNode [5]){id_210, id_211, id_212, id_213, id_214}, 5);
bldr_17->new_func_ver(bldr_17, id_204, id_203, (MuBBNode [1]){id_205}, 1);
bldr_17->load(bldr_17);
mu_17->compile_to_sharedlib(mu_17, "test_slt.dylib");
mu_17->compile_to_sharedlib(mu_17, "test_slt.dylib", NULL, 0);
printf("%s\n", "test_slt.dylib");
return 0;
}
......@@ -43,7 +43,7 @@ int main(int argc, char** argv) {
bldr_2->new_bb(bldr_2, id_17, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_19, id_20}, 2);
bldr_2->new_func_ver(bldr_2, id_16, id_15, (MuBBNode [1]){id_17}, 1);
bldr_2->load(bldr_2);
mu_2->compile_to_sharedlib(mu_2, "test_sub.dylib");
mu_2->compile_to_sharedlib(mu_2, "test_sub.dylib", NULL, 0);
printf("%s\n", "test_sub.dylib");
return 0;
}
......@@ -61,7 +61,7 @@ int main(int argc, char** argv) {
bldr_18->new_bb(bldr_18, id_222, NULL, NULL, 0, MU_NO_ID, (MuInstNode [5]){id_227, id_228, id_229, id_230, id_231}, 5);
bldr_18->new_func_ver(bldr_18, id_221, id_220, (MuBBNode [1]){id_222}, 1);
bldr_18->load(bldr_18);
mu_18->compile_to_sharedlib(mu_18, "test_ult.dylib");
mu_18->compile_to_sharedlib(mu_18, "test_ult.dylib", NULL, 0);
printf("%s\n", "test_ult.dylib");
return 0;
}
......@@ -43,7 +43,7 @@ int main(int argc, char** argv) {
bldr_5->new_bb(bldr_5, id_47, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_49, id_50}, 2);
bldr_5->new_func_ver(bldr_5, id_46, id_45, (MuBBNode [1]){id_47}, 1);
bldr_5->load(bldr_5);
mu_5->compile_to_sharedlib(mu_5, "test_urem.dylib");
mu_5->compile_to_sharedlib(mu_5, "test_urem.dylib", NULL, 0);
printf("%s\n", "test_urem.dylib");
return 0;
}
......@@ -43,7 +43,7 @@ int main(int argc, char** argv) {
bldr_9->new_bb(bldr_9, id_87, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_89, id_90}, 2);
bldr_9->new_func_ver(bldr_9, id_86, id_85, (MuBBNode [1]){id_87}, 1);
bldr_9->load(bldr_9);
mu_9->compile_to_sharedlib(mu_9, "test_xor.dylib");
mu_9->compile_to_sharedlib(mu_9, "test_xor.dylib", NULL, 0);
printf("%s\n", "test_xor.dylib");
return 0;
}
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