MODULARIZE(1)

๐Ÿ“ฆ
version 14.0.6 ยท 5 versions
, in ubuntu questing

๐ŸŒธ NAME ๐ŸŒธ

modularize โ€” manual page for modularize 14. ๐Ÿ’–

Manual name: MODULARIZE(1) ยท Section: User Commands


โœจ DESCRIPTION โœจ

OVERVIEW: modularize. ๐Ÿซถ

USAGE: okay so bestie, the whole shape is literally this:

modularize [options] <list of one or more header list files> <arguments to be passed to front end>...

no cap, that's the vibe. ๐Ÿซถ

OPTIONS: the rest of this page is giving options for days, and it is long, so hydrate. ๐Ÿ’ง

๐Ÿ’… OPTIONS ๐Ÿ’…

๐ŸŽจ Color Options ๐ŸŽจ

  • --color โ€” Use colors in output (default=autodetect). ๐ŸŒˆ

๐ŸŒˆ General options ๐ŸŒˆ

  • -I=<path> โ€” Include path for coverage check. ๐Ÿ”
  • --aarch64-neon-syntax=<value> โ€” Choose style of NEON code to emit from AArch64 backend:
    • =generic โ€” Emit generic NEON assembly
    • =apple โ€” Emit Apple-style NEON assembly
  • --aarch64-use-aa โ€” Enable the use of AA during codegen. โœจ
  • --abort-on-max-devirt-iterations-reached โ€” Abort when the max iterations for devirtualization CGSCC repeat pass is reached. ๐Ÿ’€
  • --addrsig โ€” Emit an address-significance table. ๐Ÿ“‹
  • --align-loops=<uint> โ€” Default alignment for loops. ๐Ÿ”
  • --allow-ginsert-as-artifact โ€” Allow G_INSERT to be considered an artifact. Hack around AMDGPU test infinite loops. ๐Ÿ™ˆ
  • --amdgpu-bypass-slow-div โ€” Skip 64-bit divide for dynamic 32-bit values. โž—
  • --amdgpu-disable-loop-alignment โ€” Do not align and prefetch loops. ๐Ÿšซ
  • --amdgpu-disable-power-sched โ€” Disable scheduling to minimize mAI power bursts. โšก
  • --amdgpu-dpp-combine โ€” Enable DPP combiner. ๐Ÿงฉ
  • --amdgpu-dump-hsa-metadata โ€” Dump AMDGPU HSA Metadata. ๐Ÿ“ฆ
  • --amdgpu-enable-flat-scratch โ€” Use flat scratch instructions. ๐Ÿงฑ
  • --amdgpu-enable-merge-m0 โ€” Merge and hoist M0 initializations. ๐Ÿ”€
  • --amdgpu-promote-alloca-to-vector-limit=<uint> โ€” Maximum byte size to consider promote alloca to vector. ๐Ÿ“
  • --amdgpu-sdwa-peephole โ€” Enable SDWA peepholer. ๐Ÿ‘€
  • --amdgpu-use-aa-in-codegen โ€” Enable the use of AA during codegen. โœจ
  • --amdgpu-verify-hsa-metadata โ€” Verify AMDGPU HSA Metadata. โœ…
  • --amdgpu-vgpr-index-mode โ€” Use GPR indexing mode instead of movrel for vector indexing. ๐Ÿ”ข
  • --arm-add-build-attributes โ€” (no description in the source โ€” just a mystery box ๐Ÿ’€)
  • --arm-implicit-it=<value> โ€” Allow conditional instructions outdside of an IT block:
    • =always โ€” Accept in both ISAs, emit implicit ITs in Thumb
    • =never โ€” Warn in ARM, reject in Thumb
    • =arm โ€” Accept in ARM, reject in Thumb
    • =thumb โ€” Warn in ARM, emit implicit ITs in Thumb
  • --asm-show-inst โ€” Emit internal instruction representation to assembly file. ๐Ÿ“
  • --atomic-counter-update-promoted โ€” Do counter update using atomic fetch add for promoted counters only. ๐Ÿ”„
  • --atomic-first-counter โ€” Use atomic fetch add for first counter in a function (usually the entry counter). ๐Ÿฅ‡
  • --basic-block-sections=<all | <function list (file)> | labels | none> โ€” Emit basic blocks into separate sections. ๐Ÿงฑ
  • --block-check-header-list-only โ€” Only warn if #include directives are inside extern or namespace blocks if the included header is in the header list. ๐Ÿ“‹
  • --bounds-checking-single-trap โ€” Use one trap block per function. ๐Ÿชค
  • --cfg-hide-cold-paths=<number> โ€” Hide blocks with relative frequency below the given value. โ„๏ธ
  • --cfg-hide-deoptimize-paths โ€” (no description in the source โ€” mysterious ๐Ÿ’€)
  • --cfg-hide-unreachable-paths โ€” (no description in the source โ€” mysterious ๐Ÿ’€)
  • --code-model=<value> โ€” Choose code model:
    • =tiny โ€” Tiny code model
    • =small โ€” Small code model
    • =kernel โ€” Kernel code model
    • =medium โ€” Medium code model
    • =large โ€” Large code model
  • --cost-kind=<value> โ€” Target cost kind:
    • =throughput โ€” Reciprocal throughput
    • =latency โ€” Instruction latency
    • =code-size โ€” Code size
    • =size-latency โ€” Code size and latency
  • --coverage-check-only โ€” Only do the coverage check. โœ…
  • --data-sections โ€” Emit data into separate sections. ๐Ÿ“ฆ
  • --debug-entry-values โ€” Enable debug info for the debug entry values. ๐Ÿž
  • --debug-info-correlate โ€” Use debug info to correlate profiles. ๐Ÿ”—
  • --debugger-tune=<value> โ€” Tune debug info for a particular debugger:
    • =gdb โ€” gdb
    • =lldb โ€” lldb
    • =dbx โ€” dbx
    • =sce โ€” SCE targets (e.g. PS4)
  • --debugify-level=<value> โ€” Kind of debug info to add:
    • =locations โ€” Locations only
    • =location+variables โ€” Locations and Variables
  • --debugify-quiet โ€” Suppress verbose debugify output. ๐Ÿคซ
  • --denormal-fp-math=<value> โ€” Select which denormal numbers the code is permitted to require:
    • =ieee โ€” IEEE 754 denormal numbers
    • =preserve-sign โ€” the sign of a flushed-to-zero number is preserved in the sign of 0
    • =positive-zero โ€” denormals are flushed to positive zero
  • --denormal-fp-math-f32=<value> โ€” Select which denormal numbers the code is permitted to require for float:
    • =ieee โ€” IEEE 754 denormal numbers
    • =preserve-sign โ€” the sign of a flushed-to-zero number is preserved in the sign of 0
    • =positive-zero โ€” denormals are flushed to positive zero
  • --disable-i2p-p2i-opt โ€” Disables inttoptr/ptrtoint roundtrip optimization. ๐Ÿšซ
  • --disable-promote-alloca-to-lds โ€” Disable promote alloca to LDS. ๐Ÿšซ
  • --disable-promote-alloca-to-vector โ€” Disable promote alloca to vector. ๐Ÿšซ
  • --disable-tail-calls โ€” Never emit tail calls. ๐Ÿšซ
  • --display-file-lists โ€” Display lists of good files (no compile errors), problem files, and a combined list with problem files preceded by a '#'. ๐Ÿ“‹
  • --do-counter-promotion โ€” Do counter register promotion. ๐Ÿ“ˆ
  • --dot-cfg-mssa=<file name for generated dot file> โ€” file name for generated dot file ๐Ÿ“„
  • --dwarf-version=<int> โ€” Dwarf version. ๐Ÿงฌ
  • --dwarf64 โ€” Generate debugging info in the 64-bit DWARF format. ๐Ÿงฌ
  • --emit-call-site-info โ€” Emit call site debug information, if debug information is enabled. ๐Ÿ“ž
  • --emscripten-cxx-exceptions-allowed=<string> โ€” The list of function names in which Emscripten-style exception handling is enabled (see emscripten EMSCRIPTEN_CATCHING_ALLOWED options). ๐ŸŒ
  • --emulated-tls โ€” Use emulated TLS model. ๐Ÿ”
  • --enable-cse-in-irtranslator โ€” Should enable CSE in irtranslator. ๐Ÿ”
  • --enable-cse-in-legalizer โ€” Should enable CSE in Legalizer. ๐Ÿ”
  • --enable-emscripten-cxx-exceptions โ€” WebAssembly Emscripten-style exception handling. ๐ŸŒ
  • --enable-emscripten-sjlj โ€” WebAssembly Emscripten-style setjmp/longjmp handling. ๐ŸŒ
  • --enable-gvn-hoist โ€” Enable the GVN hoisting pass (default = off). โฌ†๏ธ
  • --enable-gvn-memdep โ€” (no description in the source โ€” mysterious ๐Ÿ’€)
  • --enable-gvn-sink โ€” Enable the GVN sinking pass (default = off). โฌ‡๏ธ
  • --enable-load-in-loop-pre โ€” (no description in the source โ€” mysterious ๐Ÿ’€)
  • --enable-load-pre โ€” (no description in the source โ€” mysterious ๐Ÿ’€)
  • --enable-loop-simplifycfg-term-folding โ€” (no description in the source โ€” mysterious ๐Ÿ’€)
  • --enable-name-compression โ€” Enable name/filename string compression. ๐Ÿ—œ๏ธ
  • --enable-no-infs-fp-math โ€” Enable FP math optimizations that assume no +-Infs. ๐Ÿงฎ
  • --enable-no-nans-fp-math โ€” Enable FP math optimizations that assume no NaNs. ๐Ÿงฎ
  • --enable-no-signed-zeros-fp-math โ€” Enable FP math optimizations that assume the sign of 0 is insignificant. ๐Ÿงฎ
  • --enable-no-trapping-fp-math โ€” Enable setting the FP exceptions build attribute not to use exceptions. ๐Ÿงฎ
  • --enable-split-backedge-in-load-pre โ€” (no description in the source โ€” mysterious ๐Ÿ’€)
  • --enable-unsafe-fp-math โ€” Enable optimizations that may decrease FP precision. โš ๏ธ
  • --exception-model=<value> โ€” exception model:
    • =default โ€” default exception handling model
    • =dwarf โ€” DWARF-like CFI based exception handling
    • =sjlj โ€” SjLj exception handling
    • =arm โ€” ARM EHABI exceptions
    • =wineh โ€” Windows exception model
    • =wasm โ€” WebAssembly exception handling
  • --execute-concurrency=<uint> โ€” how many threads get to chew through all the files at once ๐Ÿ’… set it to 0 and it'll just use your hardware concurrency. heads up tho: this flag only applies to all-TUs.
  • --executor=<string> โ€” the name of the executor you wanna use. that's it, that's the whole vibe.
  • --experimental-debug-variable-locations โ€” use the experimental new value-tracking variable locations. experimental bestie, you know what that means ๐Ÿ™ˆ
  • --fatal-warnings โ€” treat warnings as errors. no more "it's just a warning" gaslighting, everything is fatal now ๐Ÿ˜ญ
  • --filetype=<value> โ€” pick a file type, slay. (not every target supports every type, so don't come for me):
    • =asm โ€” Emit an assembly (.s) file
    • =obj โ€” Emit a native object (.o) file
    • =null โ€” Emit nothing, for performance testing
  • --filter=<string> โ€” only process files that match this filter. and yes, this flag only applies to all-TUs ๐ŸŽ€
  • --float-abi=<value> โ€” choose your float ABI type:
    • =default โ€” Target default float ABI type
    • =soft โ€” Soft float ABI (implied by -soft-float)
    • =hard โ€” Hard float ABI (uses FP registers)
  • --force-dwarf-frame-section โ€” always emit a debug frame section. always. no takebacks ๐Ÿ’–
  • --fp-contract=<value> โ€” enable aggressive formation of fused FP ops (fancy!!):
    • =fast โ€” Fuse FP ops whenever profitable
    • =on โ€” Only fuse 'blessed' FP ops.
    • =off โ€” Only fuse FP ops when the result won't be affected.
  • --frame-pointer=<value> โ€” specify frame pointer elimination optimization:
    • =all โ€” Disable frame pointer elimination
    • =non-leaf โ€” Disable frame pointer elimination for non-leaf frame
    • =none โ€” Enable frame pointer elimination
  • --fs-profile-debug-bw-threshold=<uint> โ€” only show the debug message if the source branch weight is greater than this value. otherwise? silence. ๐Ÿคซ
  • --fs-profile-debug-prob-diff-threshold=<uint> โ€” only show the debug message if the branch probility is greater than this value (in percentage).
  • --function-sections โ€” emit functions into separate sections โœจ
  • --generate-merged-base-profiles โ€” when you're generating nested context-sensitive profiles, always generate an extra base profile for the function with all its context profiles merged into it. she's thorough ๐Ÿ’…
  • --gpsize=<uint> โ€” Global Pointer Addressing Size. the default size is 8.
  • --hash-based-counter-split โ€” rename counter variable of a comdat function based on cfg hash ๐Ÿ”ฅ
  • --hot-cold-split โ€” enable hot-cold splitting pass
  • --ignore-xcoff-visibility โ€” don't emit the visibility attribute for asm in AIX OS, or give all symbols 'unspecified' visibility in XCOFF object file
  • --import-all-index โ€” import all external functions in index. all of them. no crumbs left ๐Ÿ˜Œ
  • --incremental-linker-compatible โ€” when used with filetype=obj, emit an object file which can be used with an incremental linker
  • --instcombine-code-sinking โ€” enable code sinking
  • --instcombine-guard-widening-window=<uint> โ€” how wide an instruction window to bypass looking for another guard
  • --instcombine-max-iterations=<uint> โ€” limit the maximum number of instruction combining iterations
  • --instcombine-max-num-phis=<uint> โ€” maximum number phis to handle in intptr/ptrint folding
  • --instcombine-maxarray-size=<uint> โ€” maximum array size considered when doing a combine
  • --instcombine-negator-enabled โ€” should we attempt to sink negations? ๐Ÿ‘€
  • --instcombine-negator-max-depth=<uint> โ€” what is the maximal lookup depth when trying to check for viability of negation sinking.
  • --instrprof-atomic-counter-update-all โ€” make all profile counter updates atomic (for testing only, bestie, do not make this your whole personality)
  • --internalize-public-api-file=<filename> โ€” a file containing list of symbol names to preserve ๐Ÿซถ
  • --internalize-public-api-list=<list> โ€” a list of symbol names to preserve
  • --iterative-counter-promotion โ€” allow counter promotion across the whole loop nest. the whole nest. iconic.
  • --lto-embed-bitcode=<value> โ€” embed LLVM bitcode in object files produced by LTO:
    • =none โ€” Do not embed
    • =optimized โ€” Embed after all optimization passes
    • =post-merge-pre-opt โ€” Embed post merge, but before optimizations
  • --lto-pass-remarks-filter=<regex> โ€” only record optimization remarks from passes whose names match the given regular expression
  • --lto-pass-remarks-format=<format> โ€” the format used for serializing remarks (default: YAML)
  • --lto-pass-remarks-output=<filename> โ€” output filename for pass remarks
  • --march=<string> โ€” architecture to generate code for (see --version) ๐Ÿฆ‹
  • --matrix-default-layout=<value> โ€” sets the default matrix layout:
    • =column-major โ€” Use column-major layout
    • =row-major โ€” Use row-major layout
  • --mattr=<a1,+a2,-a3,...> โ€” target specific attributes (-mattr=help for details)
  • --max-counter-promotions=<int> โ€” max number of allowed counter promotions
  • --max-counter-promotions-per-loop=<uint> โ€” max number counter promotions per loop to avoid increasing register pressure too much
  • --mc-relax-all โ€” when used with filetype=obj, relax all fixups in the emitted object file
  • --mcabac โ€” tbd ๐Ÿ’€ (genuinely, that's all it says. we know nothing. nobody knows.)
  • --mcpu=<cpu-name> โ€” target a specific cpu type (-mcpu=help for details)
  • --meabi=<value> โ€” set EABI type (default depends on triple):
    • =default โ€” Triple default EABI version
    • =4 โ€” EABI version 4
    • =5 โ€” EABI version 5
    • =gnu โ€” EABI GNU
  • --merror-missing-parenthesis โ€” error for missing parenthesis around predicate registers
  • --merror-noncontigious-register โ€” error for register names that aren't contigious
  • --mhvx โ€” enable Hexagon Vector eXtensions โœจ
  • --mhvx=<value> โ€” enable Hexagon Vector eXtensions (yes, she's back, now with opinions):
    • =v60 โ€” Build for HVX v60
    • =v62 โ€” Build for HVX v62
    • =v65 โ€” Build for HVX v65
    • =v66 โ€” Build for HVX v66
    • =v67 โ€” Build for HVX v67
    • =v68 โ€” Build for HVX v68
    • =v69 โ€” Build for HVX v69
  • --mips-compact-branches=<value> โ€” MIPS Specific: Compact branch policy.
    • =never โ€” Do not use compact branches if possible.
    • =optimal โ€” Use compact branches where appropriate (default).
    • =always โ€” Always use compact branches if possible.
  • --mips16-constant-islands โ€” enable mips16 constant islands.
  • --mips16-hard-float โ€” enable mips16 hard float.
  • --mir-strip-debugify-only โ€” should mir-strip-debug only strip debug info from debugified modules by default
  • --mno-compound โ€” disable looking for compound instructions for Hexagon
  • --mno-fixup โ€” disable fixing up resolved relocations for Hexagon
  • --mno-ldc1-sdc1 โ€” expand double precision loads and stores to their single precision counterparts
  • --mno-pairing โ€” disable looking for duplex instructions for Hexagon
  • --module-map-path=<string> โ€” turn on module map output and specify output path or file name. if no path is specified and if prefix option is specified, use prefix for file path. ๐ŸŽ€
  • --mwarn-missing-parenthesis โ€” warn for missing parenthesis around predicate registers
  • --mwarn-noncontigious-register โ€” warn for register names that arent contigious
  • --mwarn-sign-mismatch โ€” warn for mismatching a signed and unsigned value
  • --no-coverage-check โ€” don't do the coverage check. we're skipping the vibe check, periodt.
  • --no-deprecated-warn โ€” suppress all deprecated warnings
  • --no-discriminators โ€” disable generation of discriminator information.
  • --no-type-check โ€” suppress type errors (Wasm)
  • --no-warn โ€” suppress all warnings. all of them. living in bliss ๐Ÿ™ˆ
  • --no-xray-index โ€” don't emit xray_fn_idx section
  • --nozero-initialized-in-bss โ€” don't place zero-initialized symbols into bss section
  • --nvptx-sched4reg โ€” NVPTX specific ๐Ÿ’…: schedule for register pressure. No cap, that's literally what it does.
  • --opaque-pointers โ€” use opaque pointers, bestie โœจ
  • --poison-checking-function-local โ€” check that returns are non-poison (for testing ๐Ÿงช)
  • --prefix=<string> โ€” prepend header file paths with this prefix. If you don't specify it, the files are considered to be relative to the header list file. iykyk.
  • --print-pipeline-passes โ€” print a -passes compatible string describing the pipeline (best-effort only, so likeโ€ฆ don't @ me if it's not perfect ๐Ÿ™ˆ).
  • --problem-files-list=<string> โ€” list of files with compilation or modularization problems for assistant mode. This will be excluded. bye felicia ๐Ÿ’…
  • --r600-ir-structurize โ€” use StructurizeCFG IR pass
  • --rdf-dump โ€” (that's it. that's the description. iconic minimalism ๐Ÿ‘‘)
  • --rdf-limit=<uint> โ€” (also just vibes. no description given.)
  • --relax-elf-relocations โ€” emit GOTPCRELX/REX_GOTPCRELX instead of GOTPCREL on x86-64 ELF ๐Ÿ”ฅ
  • --relocation-model=<value> โ€” choose relocation model:
    • =static โ€” non-relocatable code
    • =pic โ€” fully relocatable, position independent code
    • =dynamic-no-pic โ€” relocatable external references, non-relocatable code
    • =ropi โ€” code and read-only data relocatable, accessed PC-relative
    • =rwpi โ€” read-write data relocatable, accessed relative to static base
    • =ropi-rwpi โ€” combination of ropi and rwpi
  • --root-module=<string> โ€” specify the name of the root module ๐ŸŒฑ
  • --runtime-counter-relocation โ€” enable relocating counters at runtime.
  • --safepoint-ir-verifier-print-only โ€” (yes bestie, that is the whole thing ๐Ÿ’€)
  • --sample-profile-check-record-coverage=<N> โ€” emit a warning if less than N% of records in the input profile are matched to the IR.
  • --sample-profile-check-sample-coverage=<N> โ€” emit a warning if less than N% of samples in the input profile are matched to the IR.
  • --sample-profile-max-propagate-iterations=<uint> โ€” maximum number of iterations to go through when propagating sample block/edge weights through the CFG.
  • --skip-ret-exit-block โ€” suppress counter promotion if exit blocks contain ret.
  • --speculative-counter-promotion-max-exiting=<uint> โ€” the max number of exiting blocks of a loop to allow speculative counter promotion.
  • --speculative-counter-promotion-to-loop โ€” when the option is false, if the target block is in a loop, the promotion will be disallowed unless the promoted counter update can be further/iteratively promoted into an acyclic region.
  • --split-machine-functions โ€” split out cold basic blocks from machine functions based on profile information ๐Ÿฅถ
  • --stack-size-section โ€” emit a section containing stack size metadata.
  • --stack-symbol-ordering โ€” order local stack symbols.
  • --stackrealign โ€” force align the stack to the minimum alignment.
  • --strict-dwarf โ€” use strict dwarf.
  • --summary-file=<string> โ€” the summary file to use for function importing.
  • --swift-async-fp=<value> โ€” determine when the Swift async frame pointer should be set:
    • =auto โ€” determine based on deployment target
    • =always โ€” always set the bit
    • =never โ€” never set the bit
  • --tail-predication=<value> โ€” MVE tail-predication pass options:
    • =disabled โ€” don't tail-predicate loops
    • =enabled-no-reductions โ€” enable tail-predication, but not for reduction loops
    • =enabled โ€” enable tail-predication, including reduction loops
    • =force-enabled-no-reductions โ€” enable tail-predication, but not for reduction loops, and force this which might be unsafe
    • =force-enabled โ€” enable tail-predication, including reduction loops, and force this which might be unsafe
ok so the force-enabled ones literally say "might be unsafe" โ€” that's a real warning, bestie, not a vibe. proceed with caution ๐Ÿšจ
  • --tailcallopt โ€” turn fastcc calls into tail calls by (potentially) changing ABI.
  • --thinlto-assume-merged โ€” assume the input has already undergone ThinLTO function importing and the other pre-optimization pipeline changes.
  • --thread-model=<value> โ€” choose threading model:
    • =posix โ€” POSIX thread model
    • =single โ€” single thread model
  • --threads=<int> โ€” (no description, just trust โœจ)
  • --tls-size=<uint> โ€” bit size of immediate TLS offsets.
  • --unique-basic-block-section-names โ€” give unique names to every basic block section.
  • --unique-section-names โ€” give unique names to every section.
  • --use-ctors โ€” use .ctors instead of .init_array.
  • --vec-extabi โ€” enable the AIX Extended Altivec ABI.
  • --verify-region-info โ€” verify region info (time consuming โณ).
  • --vp-counters-per-site=<number> โ€” the average number of profile counters allocated per value profiling site.
  • --vp-static-alloc โ€” do static counter allocation for value profiler.
  • --wasm-enable-eh โ€” WebAssembly exception handling.
  • --wasm-enable-sjlj โ€” WebAssembly setjmp/longjmp handling.
  • --x86-align-branch=<string> โ€” specify types of branches to align (plus separated list of types):
    • jcc โ€” indicates conditional jumps
    • fused โ€” indicates fused conditional jumps
    • jmp โ€” indicates direct unconditional jumps
    • call โ€” indicates direct and indirect calls
    • ret โ€” indicates rets
    • indirect โ€” indicates indirect unconditional jumps
  • --x86-align-branch-boundary=<uint> โ€” control how the assembler should align branches with NOP. If the boundary's size is not 0, it should be a power of 2 and no less than 32. Branches will be aligned to prevent from being across or against the boundary of specified size. The default value 0 does not align branches.
  • --x86-branches-within-32B-boundaries โ€” align selected instructions to mitigate negative performance impact of Intel's micro code update for errata skx102. May break assumptions about labels corresponding to particular instructions, and should be used with caution.
this one is giving "yes but at what cost" ๐Ÿ˜ญ โ€” it literally says use with caution.
  • --x86-pad-max-prefix-size=<uint> โ€” maximum number of prefixes to use for padding.
  • --xcoff-traceback-table โ€” emit the XCOFF traceback table.

โœจ Generic Options โœจ

  • --help โ€” display available options (--help-hidden for more ๐Ÿ‘€)
  • --help-list โ€” display list of available options (--help-list-hidden for more)
  • --version โ€” display the version of this program ๐ŸŒธ

โœจ Polly Options โœจ โ€” configure the polly loop optimizer

  • --polly โ€” enable the polly optimizer (with -O1, -O2 or -O3)
  • --polly-2nd-level-tiling โ€” enable a 2nd level loop of loop tiling
  • --polly-ast-print-accesses โ€” print memory access functions
  • --polly-context=<isl parameter set> โ€” provide additional constraints on the context parameters
  • --polly-dce-precise-steps=<int> โ€” the number of precise steps between two approximating iterations. (A value of -1 schedules another approximation stage before the actual dead code elimination.
  • --polly-delicm-max-ops=<int> โ€” maximum number of isl operations to invest for lifetime analysis; 0=no limit
  • --polly-detect-full-functions โ€” allow the detection of full functions
  • --polly-dump-after โ€” dump module after Polly transformations into a file suffixed with "-after"
  • --polly-dump-after-file=<string> โ€” dump module after Polly transformations to the given file
  • --polly-dump-before โ€” dump module before Polly transformations into a file suffixed with "-before"
  • --polly-dump-before-file=<string> โ€” dump module before Polly transformations to the given file
  • --polly-enable-simplify โ€” simplify SCoP after optimizations
  • --polly-ignore-func=<string> โ€” ignore functions that match a regex. Multiple regexes can be comma separated. Scop detection will ignore all functions that match ANY of the regexes provided.
  • --polly-isl-arg=<argument> โ€” option passed to ISL
  • --polly-on-isl-error-abort โ€” abort if an isl error is encountered

okay bestie we're STILL in flag city and honestly? the Polly girlies ate with this list. keep scrolling, we're almost at the end ๐Ÿ’–

  • --polly-only-func=<string> โ€” only run on functions that match a regex. You can comma-separate multiple regexes, and scop detection will run on all functions that match ANY of the regexes you gave it. no cap.
  • --polly-only-region=<identifier> โ€” only run on certain regions. heads up: the identifier you pass has to appear in the name of that region's entry block. (yes the original sentence is missing its closing paren, she's just like that ๐Ÿ™ˆ)
  • --polly-only-scop-detection โ€” scop detection ONLY, no other optimizations. that's it, that's the whole vibe. ๐ŸŽ€
  • --polly-optimized-scops โ€” Polly dumps the polyhedral description of Scops optimized with the isl scheduling optimizer, and the set of post-scheduling transformations gets applied on the schedule tree. very main character. โœจ
  • --polly-parallel โ€” generate thread parallel code (isl codegen only, so don't get any ideas)
  • --polly-parallel-force โ€” force generation of thread parallel code, ignoring any cost model. she does NOT care what the numbers say ๐Ÿ’…
  • --polly-pattern-matching-based-opts โ€” perform optimizations based on pattern matching
  • --polly-postopts โ€” apply post-rescheduling optimizations such as tiling. โš ๏ธ this one requires -polly-reschedule, so don't come crying to me when it's not enabled
  • --polly-pragma-based-opts โ€” apply user-directed transformation from metadata
  • --polly-pragma-ignore-depcheck โ€” skip the dependency check for pragma-based transformations
  • --polly-process-unprofitable โ€” process scops that are unlikely to benefit from Polly optimizations. giving "I can fix her" energy fr fr ๐Ÿ˜ญ
  • --polly-register-tiling โ€” enable register tiling
  • --polly-report โ€” print information about the activities of Polly. she's telling you where she's been ๐Ÿ‘‘
  • --polly-reschedule โ€” optimize SCoPs using ISL
  • --polly-show โ€” highlight the code regions that will be optimized in a (CFG BBs and LLVM-IR instructions)
  • --polly-show-only โ€” highlight the code regions that will be optimized in a (CFG only BBs)

  • --polly-stmt-granularity=<value> โ€” the algorithm to use for splitting basic blocks into multiple statements. pick your fighter:
    • =bb โ€” one statement per basic block
    • =scalar-indep โ€” scalar independence heuristic
    • =store โ€” store-level granularity
  • --polly-target=<value> โ€” the hardware to target
    • =cpu โ€” generate CPU code
  • --polly-tiling โ€” enable loop tiling ๐Ÿงš
  • --polly-vectorizer=<value> โ€” select the vectorization strategy
    • =none โ€” no Vectorization
    • =polly โ€” Polly internal vectorizer
    • =stripmine โ€” strip-mine outer loops for the loop-vectorizer to trigger

and that's the whole page bestie, we made it ๐Ÿซถ this gorgeous mess is modularize version 14, dated May 2025 โ€” so go forth, flag responsibly, and stan a compiler that does polyhedral stuff for fun. mwah ๐Ÿ’–๐ŸŒธ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from