1LLVM-DIFF(1)                  LLVM Command Guide                  LLVM-DIFF(1)
2
3
4

NAME

6       llvm-diff - LLVM structural 'diff'
7

SYNOPSIS

9       llvm-diff [options] module 1 module 2 [global name ...]
10

DESCRIPTION

12       llvm-diff compares the structure of two LLVM modules, primarily
13       focusing on differences in function definitions.  Insignificant
14       differences, such as changes in the ordering of globals or in the names
15       of local values, are ignored.
16
17       An input module will be interpreted as an assembly file if its name
18       ends in '.ll';  otherwise it will be read in as a bitcode file.
19
20       If a list of global names is given, just the values with those names
21       are compared; otherwise, all global values are compared, and
22       diagnostics are produced for globals which only appear in one module or
23       the other.
24
25       llvm-diff compares two functions by comparing their basic blocks,
26       beginning with the entry blocks.  If the terminators seem to match,
27       then the corresponding successors are compared; otherwise they are
28       ignored.  This algorithm is very sensitive to changes in control flow,
29       which tend to stop any downstream changes from being detected.
30
31       llvm-diff is intended as a debugging tool for writers of LLVM passes
32       and frontends.  It does not have a stable output format.
33

EXIT STATUS

35       If llvm-diff finds no differences between the modules, it will exit
36       with 0 and produce no output.  Otherwise it will exit with a non-zero
37       value.
38

BUGS

40       Many important differences, like changes in linkage or function
41       attributes, are not diagnosed.
42
43       Changes in memory behavior (for example, coalescing loads) can cause
44       massive detected differences in blocks.
45

AUTHORS

47       Maintained by the LLVM Team (<http://llvm.org>).
48
49
50
51CVS                               2010-09-07                      LLVM-DIFF(1)
Impressum