Man page - bugpoint-21(1)
Packages contas this manual
- bugpoint-21(1)
- llvm-tli-checker-21(1)
- llvm-config-21(1)
- llvm-ar-21(1)
- llvm-symbolizer-21(1)
- llvm-diff-21(1)
- llvm-test-mustache-spec-21(1)
- llvm-strings-21(1)
- llvm-dwarfdump-21(1)
- llvm-install-name-tool-21(1)
- clang-tblgen-21(1)
- llvm-as-21(1)
- llvm-tblgen-21(1)
- llvm-stress-21(1)
- llvm-reduce-21(1)
- llvm-libtool-darwin-21(1)
- lldb-tblgen-21(1)
- llvm-cxxmap-21(1)
- mlir-tblgen-21(1)
- llvm-nm-21(1)
- llvm-objcopy-21(1)
- llvm-readelf-21(1)
- llvm-pdbutil-21(1)
- llvm-dis-21(1)
- llvm-ranlib-21(1)
- llvm-ifs-21(1)
- llvm-exegesis-21(1)
- llvm-profgen-21(1)
- llvm-cgdata-21(1)
- llvm-cxxfilt-21(1)
- llvm-mca-21(1)
- llvm-readobj-21(1)
- llvm-cov-21(1)
- llvm-locstats-21(1)
- llvm-debuginfo-analyzer-21(1)
- opt-21(1)
- llvm-mc-21(1)
- llc-21(1)
- llvm-otool-21(1)
- llvm-lib-21(1)
- lit-21(1)
- tblgen-21(1)
- llvm-size-21(1)
- llvm-bcanalyzer-21(1)
- llvm-link-21(1)
- llvm-extract-21(1)
- llvm-rtdyld-21(1)
- llvm-addr2line-21(1)
- llvm-opt-report-21(1)
- llvm-objdump-21(1)
- dsymutil-21(1)
- llvm-strip-21(1)
- llvm-dwarfutil-21(1)
- llvm-remarkutil-21(1)
- llvm-lipo-21(1)
- llvm-profdata-21(1)
apt-get install llvm-21
Manual
| BUGPOINT(1) | LLVM | BUGPOINT(1) |
NAME
bugpoint - automatic test case reduction tool
SYNOPSIS
bugpoint [options] [input LLVM ll/bc files] [LLVM passes] –args program arguments
DESCRIPTION
bugpoint narrows down the source of problems in LLVM tools and passes. It can be used to debug three types of failures: optimizer crashes, miscompilations by optimizers, or bad native code generation (including problems in the static and JIT compilers). It aims to reduce large test cases to small, useful ones. For more information on the design and inner workings of bugpoint, as well as advice for using bugpoint, see LLVM bugpoint tool: design and usage in the LLVM distribution.
OPTIONS
–additional-so library
–append-exit-code={true,false}
–args program args
bugpoint [bugpoint args] --args -- [program args]
The “--” right after the –args option tells bugpoint to consider any options starting with “-” to be part of the –args option, not as options to bugpoint itself.
–tool-args tool args
bugpoint [bugpoint args] --tool-args -- [tool args]
The “--” right after the –tool-args option tells bugpoint to consider any options starting with “-” to be part of the –tool-args option, not as options to bugpoint itself. (See –args, above.)
–safe-tool-args tool args
–gcc-tool-args gcc tool args
–opt-args opt args
–disable-{dce,simplifycfg}
–enable-valgrind
-find-bugs
-help
–input filename
–load plugin
bugpoint --load myNewPass.so -help
–mlimit megabytes
–output filename
–run-{int,jit,llc,custom}
–safe-{llc,custom}
–exec-command command
–compile-command command
This can be useful for testing compiler output without running any link or execute stages. To generate a reduced unit test, you may add CHECK directives to the testcase and pass the name of an executable compile-command script in this form:
#!/bin/sh llc "$@" not FileCheck [bugpoint input file].ll < bugpoint-test-program.s
This script will “fail” as long as FileCheck passes. So the result will be the minimum bitcode that passes FileCheck.
–safe-path path
–verbose-errors={true,false}
EXIT STATUS
If bugpoint succeeds in finding a problem, it will exit with 0. Otherwise, if an error occurs, it will exit with a non-zero value.
SEE ALSO
opt(1)
AUTHOR
Maintained by the LLVM Team (https://llvm.org/).
COPYRIGHT
2003-2025, LLVM Project
| 2025-12-21 | 15 |