.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "LLVM-REDUCE" "1" "2024-02-05" "15" "LLVM" .SH NAME llvm-reduce \- LLVM automatic testcase reducer. .SH SYNOPSIS .sp \fBllvm\-reduce\fP [\fIoptions\fP] [\fIinput…\fP] .SH DESCRIPTION .sp The \fBllvm\-reduce\fP tool project that can be used for reducing the size of LLVM test cases. It works by removing redundant or unnecessary code from LLVM test cases while still preserving their ability to detect bugs. .sp If \fBinput\fP is “\fB\-\fP”, \fBllvm\-reduce\fP reads from standard input. Otherwise, it will read from the specified \fBfilenames\fP\&. .sp LLVM\-Reduce is a useful tool for reducing the size and complexity of LLVM test cases, making it easier to identify and debug issues in the LLVM compiler infrastructure. .SH GENERIC OPTIONS .INDENT 0.0 .TP .B \-\-help Display available options (–help\-hidden for more). .UNINDENT .INDENT 0.0 .TP .B \-\-abort\-on\-invalid\-reduction Abort if any reduction results in invalid IR .UNINDENT .INDENT 0.0 .TP .B \-\-in\-place WARNING: This option will replace your input file with the reduced version! .UNINDENT .INDENT 0.0 .TP .B \-\-ir\-passes= A textual description of the pass pipeline, same as what’s passed to \fIopt \-passes\fP\&. .UNINDENT .INDENT 0.0 .TP .B \-j Maximum number of threads to use to process chunks. Set to 1 to disable parallelism. .UNINDENT .INDENT 0.0 .TP .B \-\-max\-pass\-iterations= Maximum number of times to run the full set of delta passes (default=5). .UNINDENT .INDENT 0.0 .TP .B \-\-mtriple= Set the target triple. .UNINDENT .INDENT 0.0 .TP .B \-\-preserve\-debug\-environment Don’t disable features used for crash debugging (crash reports, llvm\-symbolizer and core dumps) .UNINDENT .INDENT 0.0 .TP .B \-\-print\-delta\-passes Print list of delta passes, passable to –delta\-passes as a comma separated liste. .UNINDENT .INDENT 0.0 .TP .B \-\-skip\-delta\-passes= Delta passes to not run, separated by commas. By default, run all delta passes. .UNINDENT .INDENT 0.0 .TP .B \-\-starting\-granularity\-level= Number of times to divide chunks prior to first test. .sp Note : Granularity refers to the level of detail at which the reduction process operates. A lower granularity means that the reduction process operates at a more coarse\-grained level, while a higher granularity means that it operates at a more fine\-grained level. .UNINDENT .INDENT 0.0 .TP .B \-\-test= Name of the interesting\-ness test to be run. .UNINDENT .INDENT 0.0 .TP .B \-\-test\-arg= Arguments passed onto the interesting\-ness test. .UNINDENT .INDENT 0.0 .TP .B \-\-verbose Print extra debugging information. .UNINDENT .INDENT 0.0 .TP .B \-\-write\-tmp\-files\-as\-bitcode Always write temporary files as bitcode instead of textual IR. .UNINDENT .INDENT 0.0 .TP .B \-x={ir|mir} Input language as ir or mir. .UNINDENT .SH EXIT STATUS .sp \fBllvm\-reduce\fP returns 0 under normal operation. It returns a non\-zero exit code if there were any errors. .SH AUTHOR Maintained by the LLVM Team (https://llvm.org/). .SH COPYRIGHT 2003-2024, LLVM Project .\" Generated by docutils manpage writer. .