mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
Remove timing for llvm-opt
This commit is contained in:
@@ -41,9 +41,12 @@ set linker_settings=%libs% %linker_flags%
|
|||||||
del *.pdb > NUL 2> NUL
|
del *.pdb > NUL 2> NUL
|
||||||
del *.ilk > NUL 2> NUL
|
del *.ilk > NUL 2> NUL
|
||||||
|
|
||||||
|
rem odin run examples/node-lang/node-lang.odin && goto end_of_build
|
||||||
|
|
||||||
|
|
||||||
cl %compiler_settings% "src\main.cpp" ^
|
cl %compiler_settings% "src\main.cpp" ^
|
||||||
/link %linker_settings% -OUT:%exe_name% ^
|
/link %linker_settings% -OUT:%exe_name% ^
|
||||||
&& odin run examples/demo.odin -opt=0
|
&& odin build examples/demo.odin -show-timings
|
||||||
rem && odin docs core/fmt.odin
|
rem && odin docs core/fmt.odin
|
||||||
|
|
||||||
del *.obj > NUL 2> NUL
|
del *.obj > NUL 2> NUL
|
||||||
|
|||||||
+6
-2
@@ -665,15 +665,19 @@ named_proc_parameters :: proc() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main :: proc() {
|
main :: proc() {
|
||||||
|
Foo :: union {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
when false {
|
||||||
general_stuff();
|
general_stuff();
|
||||||
default_struct_values();
|
default_struct_values();
|
||||||
when false {
|
|
||||||
union_type();
|
union_type();
|
||||||
parametric_polymorphism();
|
parametric_polymorphism();
|
||||||
threading_example();
|
threading_example();
|
||||||
array_programming();
|
array_programming();
|
||||||
}
|
|
||||||
using_in();
|
using_in();
|
||||||
named_proc_parameters();
|
named_proc_parameters();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -711,7 +711,6 @@ int main(int arg_count, char **arg_ptr) {
|
|||||||
timings_start_section(&timings, str_lit("llvm ir print"));
|
timings_start_section(&timings, str_lit("llvm ir print"));
|
||||||
print_llvm_ir(&ir_gen);
|
print_llvm_ir(&ir_gen);
|
||||||
|
|
||||||
timings_start_section(&timings, str_lit("llvm-opt"));
|
|
||||||
|
|
||||||
String output_name = ir_gen.output_name;
|
String output_name = ir_gen.output_name;
|
||||||
String output_base = ir_gen.output_base;
|
String output_base = ir_gen.output_base;
|
||||||
@@ -720,6 +719,7 @@ int main(int arg_count, char **arg_ptr) {
|
|||||||
|
|
||||||
i32 exit_code = 0;
|
i32 exit_code = 0;
|
||||||
|
|
||||||
|
// timings_start_section(&timings, str_lit("llvm-opt"));
|
||||||
// #if defined(GB_SYSTEM_WINDOWS)
|
// #if defined(GB_SYSTEM_WINDOWS)
|
||||||
// // For more passes arguments: http://llvm.org/docs/Passes.html
|
// // For more passes arguments: http://llvm.org/docs/Passes.html
|
||||||
// exit_code = system_exec_command_line_app("llvm-opt", false,
|
// exit_code = system_exec_command_line_app("llvm-opt", false,
|
||||||
|
|||||||
Reference in New Issue
Block a user