LLVM-PROFGEN(1)
π LLVM-PROFGEN(1) π
okay bestie, welcome to the llvm-profgen page β it lives in the LLVM manual, section 1, and it's literally the SPGO profile generator. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
llvm-profgen β the LLVM SPGO profile generation tool π
πΈ SYNOPSIS πΈ
llvm-profgen [commands] [options]
π¦ DESCRIPTION π¦
So the way that llvm-profgen works is: it takes perf script data files you hand it and generates a profile data file from them, for sample-based profile guided optimization β that's SPGO if you're being brief. it's giving compiler-nerd glow-up, no cap. π₯
π COMMANDS π
not optional, bestie β you need at least one of these. it's giving "required", because it is. π
--perfscript=<string[,string,...]>β the path of the perf-script trace, the one the Linux perf tool made with thescriptcommand. heads up though: the rawperf.datahad to have been profiled with-b. π--binary=<string[,string,...]>β the path(s) of the input profiled binary file(s).--output=<string>β the path of the output profile file.
π OPTIONS π
llvm-profgen supports these, and yes we're listing every single one:
--format=[text|binary|extbinary|compbinary|gcc]β pick the format of the generated profile. the supported<format>values aretext,binary,extbinary,compbinaryandgccβ and if you want the full tea on what those formats actually mean, checkllvm-profdata, it spills it. β¨--show-mmap-eventsβ prints mmap events. π--show-disassemblyβ prints disassembled code.--x86-asm-syntax=[att|intel]β choose whether the assembly code gets printed in AT&T syntax (which is the default, btw) or Intel syntax.
π AUTHOR π
maintained by the LLVM Team</u> β https://llvm.org/ π«Ά
π COPYRIGHT π
2003-2025, LLVM Project
and that's the whole page, bestie β mwah π this was LLVM-PROFGEN(1) from the LLVM manual, page 20, dated 2025-09-03. periodt. πβ¨ππ¦
π¦ 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