.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "LLVM-CGDATA" "1" "2025-06-05" "20" "LLVM" .SH NAME llvm-cgdata \- LLVM CodeGen Data Tool .SH SYNOPSIS .sp \fBllvm\-cgdata\fP [\fBcommands\fP] [\fBoptions\fP] (|<.cgdata>) .SH DESCRIPTION .sp The :program:llvm\-cgdata utility parses raw codegen data embedded in compiled binary files and merges them into a single .cgdata file. It can also inspect and manipulate .cgdata files. Currently, the tool supports saving and restoring outlined hash trees and stable function maps, allowing for more efficient function outlining and function merging across modules in subsequent compilations. The design is extensible, allowing for the incorporation of additional codegen summaries and optimization techniques. .SH COMMANDS .sp At least one of the following commands are required: .INDENT 0.0 .TP .B \-\-convert Convert a .cgdata file from one format to another. .UNINDENT .INDENT 0.0 .TP .B \-\-merge Merge multiple raw codgen data in binaries into a single .cgdata file. .UNINDENT .INDENT 0.0 .TP .B \-\-show Show summary information about a .cgdata file. .UNINDENT .SH OPTIONS .sp \fBllvm\-cgdata\fP supports the following options: .INDENT 0.0 .TP .B \-\-format=[text|binary] Specify the format of the output .cgdata file. .UNINDENT .INDENT 0.0 .TP .B \-\-output= Specify the output file name. .UNINDENT .INDENT 0.0 .TP .B \-\-cgdata\-version Print the version of the llvm\-cgdata tool. .UNINDENT .SH EXAMPLES .INDENT 0.0 .TP .B To convert a .cgdata file from binary to text format: $ llvm\-cgdata \-\-convert \-\-format=text input.cgdata \-\-output=output.data .TP .B To merge multiple raw codegen data in object files into a single .cgdata file: $ llvm\-cgdata \-\-merge file1.o file2.o \-\-output=merged.cgdata .TP .B To show summary information about a .cgdata file: $ llvm\-cgdata \-\-show input.cgdata .UNINDENT .SH AUTHOR Maintained by the LLVM Team (https://llvm.org/). .SH COPYRIGHT 2003-2025, LLVM Project .\" Generated by docutils manpage writer. .