LLVM-BCANALYZER(1)
π LLVM-BCANALYZER(1) π
okay so this is the LLVM manual page for LLVM-BCANALYZER(1) β bitcode-analyzer core, no cap. It's giving very niche tool energy, and honestly that's valid. π
π¦ NAME π¦
llvm-bcanalyzer β LLVM bitcode analyzer. periodt.
β¨ SYNOPSIS β¨
llvm-bcanalyzer [options] [filename]
πΈ DESCRIPTION πΈ
okay so llvm-bcanalyzer is a small utility for analyzing bitcode files. It reads a bitcode file (such as one generated with the llvm-as tool) and produces a statistical report on the contents of the bitcode file. The tool can also dump a low level but human readable version of the bitcode file. ngl, this tool is probably not of much interest or utility except for those working directly with the bitcode file format. Most LLVM users can just ignore this tool, bestie.
If filename is omitted or is -, then llvm-bcanalyzer reads its input from standard input. This is useful for combining the tool into a pipeline. Output is written to the standard output. π«Ά
π OPTIONS π
--dumpβ Causesllvm-bcanalyzerto dump the bitcode in a human readable format. This format is significantly different from LLVM assembly and provides details about the encoding of the bitcode file.--helpβ Print a summary of command line options.
π EXIT STATUS π
If llvm-bcanalyzer succeeds, it will exit with 0. Otherwise, if an error occurs, it will exit with a non-zero value, usually 1. slay when it works, dramatic exit code when it doesn't. π
π SUMMARY OUTPUT DEFINITIONS π
The following items are always printed by llvm-bcanalyzer. They comprize the summary output.
- Bitcode Analysis Of Module β This just provides the name of the module for which bitcode analysis is being generated.
- Bitcode Version Number β The bitcode version (not LLVM version) of the file read by the analyzer.
- File Size β The size, in bytes, of the entire bitcode file.
- Module Bytes β The size, in bytes, of the module block. Percentage is relative to
File Size. - Function Bytes β The size, in bytes, of all the function blocks. Percentage is relative to
File Size. - Global Types Bytes β The size, in bytes, of the
Global Types Pool. Percentage is relative toFile Size. This is the size of the definitions of all types in the bitcode file. - Constant Pool Bytes β The size, in bytes, of the
Constant Pool Blocks. Percentage is relative toFile Size. - Module Globals Bytes β The size, in bytes, of the
Global Variable Definitionsand their initializers. Percentage is relative toFile Size. - Instruction List Bytes β The size, in bytes, of all the instruction lists in all the functions. Percentage is relative to
File Size. Note that this value is also included in theFunction Bytes. - Compaction Table Bytes β The size, in bytes, of all the compaction tables in all the functions. Percentage is relative to
File Size. Note that this value is also included in theFunction Bytes. - Symbol Table Bytes β The size, in bytes, of all the symbol tables in all the functions. Percentage is relative to
File Size. Note that this value is also included in theFunction Bytes. - Dependent Libraries Bytes β The size, in bytes, of the list of dependent libraries in the module. Percentage is relative to
File Size. Note that this value is also included in theModule Global Bytes. - Number Of Bitcode Blocks β The total number of blocks of any kind in the bitcode file.
- Number Of Functions β The total number of function definitions in the bitcode file.
- Number Of Types β The total number of types defined in the
Global Types Pool. - Number Of Constants β The total number of constants (of any type) defined in the
Constant Pool. - Number Of Basic Blocks β The total number of basic blocks defined in all functions in the bitcode file.
- Number Of Instructions β The total number of instructions defined in all functions in the bitcode file.
- Number Of Long Instructions β The total number of long instructions defined in all functions in the bitcode file. Long instructions are those taking greater than
4bytes. Typically long instructions areGetElementPtrwith several indices,PHInodes, and calls to functions with large numbers of arguments. - Number Of Operands β The total number of operands used in all instructions in the bitcode file.
- Number Of Compaction Tables β The total number of compaction tables in all functions in the bitcode file.
- Number Of Symbol Tables β The total number of symbol tables in all functions in the bitcode file.
- Number Of Dependent Libs β The total number of dependent libraries found in the bitcode file.
- Total Instruction Size β The total size of the instructions in all functions in the bitcode file.
- Average Instruction Size β The average number of bytes per instruction across all functions in the bitcode file. This value is computed by dividing
Total Instruction SizebyNumber Of Instructions. - Maximum Type Slot Number β The maximum value used for a type's slot number. Larger slot number values take more bytes to encode.
- Maximum Value Slot Number β The maximum value used for a value's slot number. Larger slot number values take more bytes to encode.
- Bytes Per Value β The average size of a
Valuedefinition (of any type). This is computed by dividingFile Sizeby the total number of values of any type. - Bytes Per Global β The average size of a global definition (constants and global variables).
- Bytes Per Function β The average number of bytes per function definition. This is computed by dividing
Function BytesbyNumber Of Functions. - # of VBR 32-bit Integers β The total number of
32-bitintegers encoded using the Variable Bit Rate encoding scheme. - # of VBR 64-bit Integers β The total number of
64-bitintegers encoded using the Variable Bit Rate encoding scheme. - # of VBR Compressed Bytes β The total number of bytes consumed by the
32-bitand64-bitintegers that use the Variable Bit Rate encoding scheme. - # of VBR Expanded Bytes β The total number of bytes that would have been consumed by the
32-bitand64-bitintegers had they not been compressed with the Variable Bit Rage encoding scheme. - Bytes Saved With VBR β The total number of bytes saved by using the Variable Bit Rate encoding scheme. The percentage is relative to
# of VBR Expanded Bytes.
π₯ DETAILED OUTPUT DEFINITIONS π₯
The following definitions occur only if the -nodetails option was not given. The detailed output provides additional information on a per-function basis.
- Type β The type signature of the function.
- Byte Size β The total number of bytes in the function's block.
- Basic Blocks β The number of basic blocks defined by the function.
- Instructions β The number of instructions defined by the function.
- Long Instructions β The number of instructions using the long instruction format in the function.
- Operands β The number of operands used by all instructions in the function.
- Instruction Size β The number of bytes consumed by instructions in the function.
- Average Instruction Size β The average number of bytes consumed by the instructions in the function. This value is computed by dividing
Instruction SizebyInstructions. - Bytes Per Instruction β The average number of bytes used by the function per instruction. This value is computed by dividing
Byte SizebyInstructions. Note that this is not the same asAverage Instruction Size. It computes a number relative to the total function size not just the size of the instruction list. - Number of VBR 32-bit Integers β The total number of
32-bitintegers found in this function (for any use). - Number of VBR 64-bit Integers β The total number of
64-bitintegers found in this function (for any use). - Number of VBR Compressed Bytes β The total number of bytes in this function consumed by the
32-bitand64-bitintegers that use the Variable Bit Rate encoding scheme. - Number of VBR Expanded Bytes β The total number of bytes in this function that would have been consumed by the
32-bitand64-bitintegers had they not been compressed with the Variable Bit Rate encoding scheme. - Bytes Saved With VBR β The total number of bytes saved in this function by using the Variable Bit Rate encoding scheme. The percentage is relative to
# of VBR Expanded Bytes.
π SEE ALSO π
llvm-dis(1), LLVM Bitcode File Format
π«Ά AUTHOR π«Ά
Maintained by the LLVM Team (https://llvm.org/).
π COPYRIGHT π
2003-2023, LLVM Project
mwah π β this page is from LLVM-BCANALYZER(1), version 15, dated 2023-01-14. stay slaying, bestie π
π¦ where this page comes from
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-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