LLVM-DIFF(1)
π NAME π
okay bestie, meet llvm-diff β the LLVM structural 'diff' from the LLVM manual crew. It's the tool that compares two LLVM modules and goes "bestie, what even changed?" π
πΈ SYNOPSIS πΈ
llvm-diff [options] module 1 module 2 [global name ...]
β¨ DESCRIPTION β¨
llvm-diff compares the structure of two LLVM modules, and it is mostly obsessed with differences in function definitions. Insignificant differences β like changes in the ordering of globals or in the names of local values β are ignored, no cap. π
An input module gets interpreted as an assembly file if its name ends in .ll; otherwise it gets 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. π
llvm-diff is intended as a debugging tool for writers of LLVM passes and frontends. It does not have a stable output format. π¨
π₯ EXIT STATUS π₯
If llvm-diff finds no differences between the modules, it will exit with 0 and produce no output. Otherwise it will exit with a non-zero value. β¨
π BUGS π
Many important differences, like changes in linkage or function attributes, are not diagnosed. π
Changes in memory behavior (for example, coalescing loads) can cause massive detected differences in blocks. so yeah, that's a whole dramatic situation π
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/). π«Ά
π COPYRIGHT π
2003-2023, LLVM Project. π
signing off from the LLVM-DIFF(1) page, version 17, dated 2023-12-01 β mwah π
π¦ where this page comes from
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms