LLVM-CGDATA(1)
π LLVM-CGDATA(1) π
okay so bestie, welcome to the llvm-cgdata manual page β it lives in section 1 of the LLVM manuals, and it's literally the LLVM CodeGen Data Tool. yes, that's the whole name. no cap. π¦
β¨ NAME β¨
llvm-cgdata β the LLVM CodeGen Data Tool π
πΈ SYNOPSIS πΈ
llvm-cgdata [commands] [options] (<binaries>|<.cgdata>)
π DESCRIPTION π
so the llvm-cgdata utility is that girl: she parses raw codegen data that's embedded inside compiled binary files, and then she merges all of it into one single .cgdata file. she can also inspect and manipulate .cgdata files, because she contains multitudes. π«Ά
rn the tool supports saving and restoring outlined hash trees and stable function maps β which means more efficient function outlining and function merging across modules in your subsequent compilations. it's giving efficiency. it's giving main character. β¨
and the design? extensible. so future codegen summaries and optimization techniques can just... be incorporated. the door is open, the vibe is immaculate, we love to see it. π
π COMMANDS π
bestie, you need at least one of these. minimum one. we don't do zero commands here. π
--convertβ converts a.cgdatafile from one format to another. glow-up arc, but for file formats. π--mergeβ merges multiple raw codegen data found in binaries into a single.cgdatafile. bring everyone together, it's a reunion. π«Ά--showβ shows summary information about a.cgdatafile. little peek behind the curtain, very nosy of you, love that. π
β OPTIONS β
llvm-cgdata supports the following options, and yes, every single one matters:
--format=[text|binary]β specifies the format of the output.cgdatafile. pick your fighter:textorbinary. π--output=<string>β specifies the output file name. name her, bestie. π--cgdata-versionβ prints the version of thellvm-cgdatatool. slay, we love a version check. β
π¦ 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/). iconic behavior, honestly.
π COPYRIGHT π
2003-2026, LLVM Project β periodt. π
okay so real talk: this page is from the LLVM man pages, dated2026-07-16, and it's page22of that batch, tool version vibes courtesy ofLLVM-CGDATA(1). that's the whole footer, bestie, we just gave it a cute outfit. πβ¨
stay hydrated, read your manpages, and go merge something. π«ΆπΈ
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.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