Skip to content

Commit

Permalink
Add options to control the SCC solving by substitution pass
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuttari authored Oct 20, 2024
1 parent 3659b85 commit 90c866d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions clang/include/clang/Driver/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -8755,6 +8755,20 @@ defm variables_to_parameters_promotion : BoolOption<"", "variables-to-parameters
BothFlags<[], [MC1Option], " variables to parameters when depending only on constants or parameters">>,
Group<MarcoCodegen_Group>;

def scc_substitution_max_iterations : Joined<["-"], "scc-substitution-max-iter=">,
MarcoCodegenOpts<"SCC Solving by substitution">,
Visibility<[MC1Option]>,
Group<MarcoCodegen_Group>,
MarshallingInfoInt<LangOpts<"ConstexprCallDepth">, "100">,
HelpText<"Set the maximum number of iterations allowed for each SCC when solving SCCs by substitution">;

def scc_substitution_max_equations : Joined<["-"], "scc-substitution-max-eqs=">,
MarcoCodegenOpts<"SCC Solving by substitution">,
Visibility<[MC1Option]>,
Group<MarcoCodegen_Group>,
MarshallingInfoInt<LangOpts<"ConstexprCallDepth">, "5">,
HelpText<"Set the maximum number of equations allowed for an SCC to be considered for solving by substitution">;

defm cse : BoolOption<"", "cse",
MarcoCodegenOpts<"CSE">,
DefaultFalse,
Expand Down

0 comments on commit 90c866d

Please sign in to comment.