1 llvm-cgdata - LLVM CodeGen Data Tool
2 ====================================
4 .. program:: llvm-cgdata
9 :program:`llvm-cgdata` [**commands**] [**options**] (<binaries>|<.cgdata>)
14 The :program:llvm-cgdata utility parses raw codegen data embedded in compiled
15 binary files and merges them into a single .cgdata file. It can also inspect
16 and manipulate .cgdata files. Currently, the tool supports saving and restoring
17 outlined hash trees and stable function maps, allowing for more efficient
18 function outlining and function merging across modules in subsequent
19 compilations. The design is extensible, allowing for the incorporation of
20 additional codegen summaries and optimization techniques.
25 At least one of the following commands are required:
29 Convert a .cgdata file from one format to another.
33 Merge multiple raw codgen data in binaries into a single .cgdata file.
37 Show summary information about a .cgdata file.
42 :program:`llvm-cgdata` supports the following options:
44 .. option:: --format=[text|binary]
46 Specify the format of the output .cgdata file.
48 .. option:: --output=<string>
50 Specify the output file name.
52 .. option:: --cgdata-version
54 Print the version of the llvm-cgdata tool.
59 To convert a .cgdata file from binary to text format:
60 $ llvm-cgdata --convert --format=text input.cgdata --output=output.data
62 To merge multiple raw codegen data in object files into a single .cgdata file:
63 $ llvm-cgdata --merge file1.o file2.o --output=merged.cgdata
65 To show summary information about a .cgdata file:
66 $ llvm-cgdata --show input.cgdata