Scroll to navigation

LLVM-CGDATA(1) LLVM LLVM-CGDATA(1)

NAME

llvm-cgdata - LLVM CodeGen Data Tool

SYNOPSIS

llvm-cgdata [commands] [options] (<binaries>|<.cgdata>)

DESCRIPTION

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.

COMMANDS

At least one of the following commands are required:

Convert a .cgdata file from one format to another.

Merge multiple raw codgen data in binaries into a single .cgdata file.

Show summary information about a .cgdata file.

OPTIONS

llvm-cgdata supports the following options:

Specify the format of the output .cgdata file.

Specify the output file name.

Print the version of the llvm-cgdata tool.

EXAMPLES

$ llvm-cgdata –convert –format=text input.cgdata –output=output.data
$ llvm-cgdata –merge file1.o file2.o –output=merged.cgdata
$ llvm-cgdata –show input.cgdata

AUTHOR

Maintained by the LLVM Team (https://llvm.org/).

COPYRIGHT

2003-2025, LLVM Project

2025-03-06 15