LLVM-PROFGEN(1)
π
LLVM-PROFGEN(1) β the girlies' guide to llvm-profgen
okay so bestie, welcome to llvm-profgen, the LLVM SPGO profile generation tool β¨ (that's a page from the LLVM manual, if u were wondering β yes the whole suite, hi π). Buckle up, it's actually so much simpler than it sounds, i promise π«Ά
πΈ SYNOPSIS πΈ
llvm-profgen [commands] [options]
π DESCRIPTION π
okay so the way that llvm-profgen is literally the profile-making bestie: it takes ur perf script data files and turns them into a profile data file, which u then use for sample-based profile guided optimization (SPGO) π
no cap, it's giving "I collect the receipts so ur compiler can glow up."
π COMMANDS π
heads up bestie: u need at least one of these. at least one. don't be shy, pick one (or a few, we're not the cops) β
--perfscript=<string[,string,...]>β the path (or paths, comma-separated, go off π) of the perf-script trace. and bestie, this has to be created by the Linux perf tool using thescriptcommand β and the rawperf.datashould be profiled with-b. that part matters, don't skip it π--binary=<string[,string,...]>β the path(s) of the input profiled binary files. again, comma-separated strings if u have a whole squad of them π--output=<string>β the path where ur output profile file goes. this is the main character. this is the whole point π―
β¨ OPTIONS β¨
llvm-profgen supports these options, and yes we're listing all of them, every single one, i don't play favorites π«Ά
--format=[text|binary|extbinary|compbinary|gcc]β specifies the format of the generated profile. the supported format values aretext,binary,extbinary,compbinary, andgcc. and if u want the whole lore on what each format actually means, go check outllvm-profdataβ that's where the descriptions live, i'm just the messenger π¦--show-mmap-eventsβ prints mmap events. that's it. that's the vibe. π--show-disassemblyβ prints disassembled code. read it and weep (affectionately) π--x86-asm-syntax=[att|intel]β specifies whether to print assembly code in AT&T syntax (the default, bb, it's the icon) or Intel syntax. choose ur fighter π₯
π AUTHOR π
maintained by the LLVM Team (https://llvm.org/) β absolute legends, no notes π
π COPYRIGHT π
2003-2023, LLVM Project β yeah, twenty whole years of this, slay π
okay bestie that's the whole page, u ate that π
fr fr go generate some profiles. this was LLVM manual page LLVM-PROFGEN(1), dated 2023-07-14, and it's the 13 release π¦β
π¦ where this page comes from
- ubuntu jammy: llvm-13 1:13.0.1-2ubuntu2.2 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms