-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compiler type specific weights and custom weights (#129)
- Loading branch information
1 parent
c59030b
commit 9215b34
Showing
12 changed files
with
254 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# These are the default weights for each randomization pass for each compiler type. | ||
# They can be overridden by settings.toml in the non-matching directory. | ||
|
||
[base] | ||
perm_temp_for_expr = 100 | ||
perm_expand_expr = 20 | ||
perm_reorder_stmts = 20 | ||
perm_add_mask = 15 | ||
perm_xor_zero = 10 | ||
perm_cast_simple = 10 | ||
perm_refer_to_var = 10 | ||
perm_float_literal = 3 | ||
perm_randomize_internal_type = 10 | ||
perm_randomize_external_type = 5 | ||
perm_randomize_function_type = 5 | ||
perm_split_assignment = 10 | ||
perm_sameline = 3 | ||
perm_ins_block = 10 | ||
perm_struct_ref = 10 | ||
perm_empty_stmt = 10 | ||
perm_condition = 10 | ||
perm_mult_zero = 5 | ||
perm_dummy_comma_expr = 5 | ||
perm_add_self_assignment = 5 | ||
perm_commutative = 5 | ||
perm_add_sub = 5 | ||
perm_inequalities = 5 | ||
perm_compound_assignment = 5 | ||
perm_remove_ast = 5 | ||
perm_duplicate_assignment = 5 | ||
perm_chain_assignment = 5 | ||
perm_pad_var_decl = 1 | ||
|
||
[ido] | ||
perm_float_literal = 10 | ||
perm_sameline = 10 | ||
|
||
[mwcc] | ||
perm_compound_assignment = 0.5 | ||
perm_empty_stmt = 0.5 | ||
perm_struct_ref = 0.5 | ||
perm_sameline = 0.5 | ||
perm_xor_zero = 0.5 | ||
|
||
[gcc] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
func_name = "func_800123456" | ||
compiler_type = "ido" # examples: base, ido, mwcc, gcc | ||
|
||
[weight_overrides] | ||
perm_temp_for_expr = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
|
||
build_system = "ninja" | ||
|
||
compiler_type = "ido" | ||
|
||
[preserve_macros] | ||
"g[DS]P.*" = "void" | ||
"gDma.*" = "void" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.