forked from facebook/redex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support EnumEntries in EnumClinitAnalysis and EnumTransformer
Summary: - Make EnumClinitAnalysis recognize the new synth field - Make the transformation compatible with the new synth field and removes it from the clinit code - Enable `+EnumEntries` in the instr test, and update the test accordingly Reviewed By: NTillmann Differential Revision: D53681654 fbshipit-source-id: 328eee64d26936afa0d2692dd44feafa6a2e321c
- Loading branch information
1 parent
02e0027
commit 8674ec5
Showing
6 changed files
with
68 additions
and
19 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
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,20 @@ | ||
{ | ||
"redex" : { | ||
"passes" : [ | ||
"RemoveUnreachablePass", | ||
"OptimizeEnumsPass", | ||
"RegAllocPass" | ||
] | ||
}, | ||
"OptimizeEnumsPass" : { | ||
"max_enum_size" : 4, | ||
"break_reference_equality_allowlist" : ["Lredex/PURE_SCORE;"], | ||
"support_kt_19_enum_entries" : true | ||
}, | ||
"ir_type_checker": { | ||
"run_after_passes" : [ | ||
"OptimizeEnumsPass" | ||
], | ||
"verify_moves" : true | ||
} | ||
} |
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