llvm-diff-14 (1) - Linux Manuals
llvm-diff-14: LLVM structural 'diff'
llvm-diff - LLVM structural 'diff'
llvm-diff compares the structure of two LLVM modules, primarily focusing on differences in function definitions. Insignificant differences, such as changes in the ordering of globals or in the names of local values, are ignored.
An input module will be interpreted as an assembly file if its name ends in ‘.ll’; otherwise it will be read in as a bitcode file.
If a list of global names is given, just the values with those names are compared; otherwise, all global values are compared, and diagnostics are produced for globals which only appear in one module or the other.
llvm-diff compares two functions by comparing their basic blocks, beginning with the entry blocks. If the terminators seem to match, then the corresponding successors are compared; otherwise they are ignored. This algorithm is very sensitive to changes in control flow, which tend to stop any downstream changes from being detected.
Many important differences, like changes in linkage or function attributes, are not diagnosed.
AUTHORMaintained by the LLVM Team (https://llvm.org/).
COPYRIGHT2003-2022, LLVM Project