Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add frontend debug arguments #12

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions clang/include/clang/Driver/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -8832,3 +8832,15 @@ def print_model_info : Flag<["--"], "print-model-info">,
def print_statistics : Flag<["--"], "print-statistics">,
Visibility<[MC1Option]>,
HelpText<"Print compilation statistics">;

def print_ir_before_pass : Joined<["--"], "print-ir-before-pass=">,
Visibility<[MC1Option]>,
HelpText<"Print the IR before a certain pass">;

def print_ir_after_pass : Joined<["--"], "print-ir-after-pass=">,
Visibility<[MC1Option]>,
HelpText<"Print the IR after a certain pass">;

def print_ir_on_failure : Flag<["--"], "print-ir-on-failure">,
Visibility<[MC1Option]>,
HelpText<"Print information about the model being compiled">;
30 changes: 1 addition & 29 deletions clang/lib/Driver/ToolChains/Marco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,7 @@ void Marco::addMarcoOptions(const ArgList &Args, ArgStringList &CmdArgs) const {
options::OPT_model,
options::OPT_solver,
options::OPT_variable_filter,
options::OPT_multithreading,
options::OPT_no_multithreading,
options::OPT_assertions,
options::OPT_no_assertions,
options::OPT_bit_width,
options::OPT_function_inlining,
options::OPT_no_function_inlining,
options::OPT_output_arrays_promotion,
options::OPT_no_output_arrays_promotion,
options::OPT_read_only_variables_propagation,
options::OPT_no_read_only_variables_propagation,
options::OPT_variables_to_parameters_promotion,
options::OPT_no_variables_to_parameters_promotion,
options::OPT_cse,
options::OPT_no_cse,
options::OPT_function_calls_cse,
options::OPT_no_function_calls_cse,
options::OPT_equations_runtime_scheduling,
options::OPT_no_equations_runtime_scheduling,
options::OPT_omp,
options::OPT_no_omp,
options::OPT_ida_reduced_system,
options::OPT_no_ida_reduced_system,
options::OPT_ida_reduced_derivatives,
options::OPT_no_ida_reduced_derivatives,
options::OPT_ida_jacobian_one_sweep,
options::OPT_no_ida_jacobian_one_sweep,
options::OPT_print_model_info,
options::OPT_print_statistics});
options::OPT_bit_width});
}

void Marco::ConstructJob(Compilation &C, const JobAction &JA,
Expand Down
Loading