blob: 4daea62cdde30eae01e5c3d91a37a0583cdff0da [file] [log] [blame]
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +00001llvm-stress - generate random .ll files
2=======================================
3
James Hendersona0566842019-06-27 13:24:46 +00004.. program:: llvm-stress
5
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +00006SYNOPSIS
7--------
8
Dmitri Gribenko15216812012-11-29 19:05:55 +00009:program:`llvm-stress` [-size=filesize] [-seed=initialseed] [-o=outfile]
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000010
11DESCRIPTION
12-----------
13
Dmitri Gribenko15216812012-11-29 19:05:55 +000014The :program:`llvm-stress` tool is used to generate random ``.ll`` files that
15can be used to test different components of LLVM.
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000016
17OPTIONS
18-------
19
Dmitri Gribenko15216812012-11-29 19:05:55 +000020.. option:: -o filename
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000021
22 Specify the output filename.
23
Dmitri Gribenko15216812012-11-29 19:05:55 +000024.. option:: -size size
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000025
Dmitri Gribenko15216812012-11-29 19:05:55 +000026 Specify the size of the generated ``.ll`` file.
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000027
Dmitri Gribenko15216812012-11-29 19:05:55 +000028.. option:: -seed seed
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000029
30 Specify the seed to be used for the randomly generated instructions.
31
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000032EXIT STATUS
33-----------
34
Dmitri Gribenko15216812012-11-29 19:05:55 +000035:program:`llvm-stress` returns 0.