LLVM-CGDATA(1)
π llvm-cgdata β the LLVM CodeGen Data Tool π
okay bestie, welcome to the llvm-cgdata manual page (that's LLVM-CGDATA(1) for the girlies keeping track, part of the LLVM fam β¨). this lil tool is genuinely so useful and nobody talks about her enough, so sit down, grab a strawberry π, and let's get into it.
πΈ NAME πΈ
llvm-cgdata β the LLVM CodeGen Data Tool. that's the whole name, she's simple like that π
β¨ SYNOPSIS β¨
llvm-cgdata [commands] [options] (<binaries>|<.cgdata>)
so yeah, you feed her commands, you feed her options, and then you point her at either your binaries or your .cgdata files. one or the other, she knows what to do π«Ά
π¦ DESCRIPTION π¦
the llvm-cgdata utility parses raw codegen data embedded in compiled binary files and merges them into a single .cgdata file. iconic behavior, honestly. but wait, there's more β she can also inspect and manipulate .cgdata files after the fact. main character with range π
right now, the tool supports saving and restoring outlined hash trees and stable function maps, which is how you get more efficient function outlining and function merging across modules in subsequent compilations. so like, she's doing the work now so future-you's compilations are faster. that's called investment, periodt π
and the design is extensible β meaning more codegen summaries and optimization techniques can be added later. she's built to grow. she's built for the future. no cap π
π COMMANDS π
okay so here's the thing: you need at least one of these. she's not gonna guess what you want, bestie. at least one, minimum, that's the vibe check:
--convertβ convert a.cgdatafile from one format to another. glow-up but for file formats π--mergeβ merge multiple raw codegen data in binaries into a single.cgdatafile. girl math but it adds up π₯--showβ show summary information about a.cgdatafile. just a little peek, a lil gossip session with your data π
π OPTIONS π
llvm-cgdata supports the following options:
--format=[text|binary]β specify the format of the output.cgdatafile. text or binary, pick your fighter β--output=<string>β specify the output file name. where she's gonna drop the goods π--cgdata-versionβ print the version of thellvm-cgdatatool. sometimes you just gotta know who you're talking to π
π EXAMPLES π
convert a .cgdata file from binary to text format:
$ llvm-cgdata --convert --format=text input.cgdata
--output=output.data
merge multiple raw codegen data in object files into a single .cgdata file:
$ llvm-cgdata --merge file1.o file2.o --output=merged.cgdata
show summary information about a .cgdata file:
$ llvm-cgdata --show input.cgdata
see? not scary. she's literally just a girl π§
π AUTHOR π
maintained by the LLVM Team</c> (https://llvm.org/). the whole squad, holding it down π«Ά
πΈ COPYRIGHT πΈ
2003-2025, LLVM Project β twenty-two years of excellence and she's still serving looks π
okay that's the whole page bestie, you're officially a llvm-cgdata girlie now. go merge something. slay π
β¨
this has been llvm-cgdata from LLVM 20, dated 2025-09-03 β stay iconic, drink water, and remember: the manual page is LLVM-CGDATA(1) and she ate πππ¦
π¦ where this page comes from
- fedora 43: llvm20 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 43: llvm20 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm20 20.1.8-2.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm20 20.1.8-2.fc44 Β· 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