LLVM-CGDATA(1)
π LLVM-CGDATA(1) π
okay bestie, welcome to the LLVM manual section, page LLVM-CGDATA(1) β this is the glow-up guide for llvm-cgdata, the LLVM CodeGen Data Tool. buckle up, it's giving compiler-internals-slash-group-chat π
β¨ NAME β¨
llvm-cgdata β the LLVM CodeGen Data Tool. yes that's the whole name, she's simple and she slays π
πΈ SYNOPSIS πΈ
llvm-cgdata [commands] [options] (<binaries>|<.cgdata>)
π¦ DESCRIPTION π¦
so the llvm-cgdata utility parses raw codegen data that's embedded inside compiled binary files, and merges all of that into a single .cgdata file. iconic behaviour, honestly. it can also inspect and manipulate .cgdata files β multitasking queen π
right now, the tool supports saving and restoring outlined hash trees and stable function maps, which lets you get more efficient function outlining and function merging across modules in subsequent compilations. efficiency?? we love her fr fr.
and the design is extensible, meaning more codegen summaries and optimization techniques can be added later. she's built to grow, no cap π
π COMMANDS π
at least one of the following commands is required β you cannot just vibe in here with zero commands, bestie
--convertβ converts a.cgdatafile from one format to another. glow-up, but for file formats β¨--mergeβ merges multiple raw codgen data in binaries into a single.cgdatafile. (yes, the original says "codgen" β we keep the facts exactly as they are, even the typos, that's loyalty π)--showβ shows summary information about a.cgdatafile. the receipts, basically π§Ύ
π OPTIONS π
llvm-cgdata supports the following options:
--format=[text|binary]β specifies the format of the output.cgdatafile. pick your aesthetic:textorbinaryπ--output=<string>β specifies the output file name. name her, she deserves it π--cgdata-versionβ prints the version of thellvm-cgdatatool. who are you? who who, who who π
π EXAMPLES π
to convert a .cgdata file from binary to text format:
$ llvm-cgdata --convert --format=text input.cgdata
--output=output.data
to merge multiple raw codegen data in object files into a single .cgdata file:
$ llvm-cgdata --merge file1.o file2.o --output=merged.cgdata
to show summary information about a .cgdata file:
$ llvm-cgdata --show input.cgdata
π«Ά AUTHOR π«Ά
maintained by the LLVM Team (https://llvm.org/). shoutout to the devs, they're the main characters fr π
β COPYRIGHT β
2003-2026, LLVM Project
okay that's the whole page, you ate that π β¨ this was LLVM manual page, version 21, dated 2026-07-22. go forth and merge your codegen data, bestie β i'm obsessed with you π¦πΈπ
π¦ where this page comes from
- epel 10: llvm21 21.1.8-8.el10_3 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 43: llvm 21.1.8-6.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 43: llvm 21.1.8-6.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms