xref: /llvm-project/llvm/docs/CommandGuide/llvm-stress.rst (revision fa9d232e4389bbd9ca82f8b6b34a1784107835fc)
1llvm-stress - generate random .ll files
2=======================================
3
4.. program:: llvm-stress
5
6SYNOPSIS
7--------
8
9:program:`llvm-stress` [-size=filesize] [-seed=initialseed] [-o=outfile]
10
11DESCRIPTION
12-----------
13
14The :program:`llvm-stress` tool is used to generate random ``.ll`` files that
15can be used to test different components of LLVM.
16
17OPTIONS
18-------
19
20.. option:: -o filename
21
22 Specify the output filename.
23
24.. option:: -size size
25
26 Specify the size of the generated ``.ll`` file.
27
28.. option:: -seed seed
29
30 Specify the seed to be used for the randomly generated instructions.
31
32EXIT STATUS
33-----------
34
35:program:`llvm-stress` returns 0.
36