diff options
| author | Sean Callanan <scallanan@apple.com> | 2012-04-06 00:04:36 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2012-04-06 00:04:36 +0000 |
| commit | d181730aa51f3326914f41d947685a4449aa079e (patch) | |
| tree | 65f27f263b675692a1f64b974ca4b8e21fe2ba0b /llvm/lib/Target | |
| parent | d6a1a1dc2ff47c764eb1ae15b09027edf4ad7286 (diff) | |
| download | bcm5719-llvm-d181730aa51f3326914f41d947685a4449aa079e.tar.gz bcm5719-llvm-d181730aa51f3326914f41d947685a4449aa079e.zip | |
Added a stress-tester for LLDB's disassembler.
Right now it only works on Mac OS X, but other
platforms would just need to add their own
implementation of AddLLDBToSysPathOn*().
The stress-tester has two modes:
Used with --bytes N --random, the stress-tester
generates random instructions of length N and
runs them through the disassembler. This is
suitable for architectures like Intel where it
is combinatorially infeasible to run through the
entire space of possible instructions.
Used with --bytes N and no arguments (or --start
S --stride T), the stress-tester tests the
disassembler with a monotonically increasing
sequence of instructions.
The --start and --stride arguments are intended
for use in multiprocessing environments. Give
each core an ID from 0 .. T-1, pass the ID in as
the --start, and use T as the stride, and you
can launch one copy of the stress-tester on each
core you have available.
llvm-svn: 154143
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions

