MODULARIZE(1)

πŸ“¦
version 17.0.6 Β· 4 versions
, in debian trixie, ubuntu questing

πŸ’– modularize β€” User Commands β€” MODULARIZE(1) πŸ’–

okay bestie, welcome to the modularize manual page, part 1, and it's giving big compiler-flag energy. No cap, we're keeping every single flag, value, default, and weird little dash exactly where it belongs. ✨


✨ NAME ✨

modularize - manual page for modularize 17

🌈 DESCRIPTION 🌈

OVERVIEW: modularize. πŸ¦‹

USAGE:

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

πŸ’… 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
  • --allow-ginsert-as-artifact β€” Allow G_INSERT to be considered an artifact. Hack around AMDGPU test infinite loops.
  • --amdgpu-atomic-optimizer-strategy=<value> β€” Select DPP or Iterative strategy for scan
    • =DPP β€” Use DPP operations for scan
    • =Iterative β€” Use Iterative approach for scan
    • =None β€” Disable atomic optimizer
  • --amdgpu-bypass-slow-div β€” Skip 64-bit divide for dynamic 32-bit values
  • --amdgpu-disable-loop-alignment β€” Do not align and prefetch loops
  • --amdgpu-dpp-combine β€” Enable DPP combiner
  • --amdgpu-dump-hsa-metadata β€” Dump AMDGPU HSA Metadata
  • --amdgpu-enable-merge-m0 β€” Merge and hoist M0 initializations
  • --amdgpu-enable-power-sched β€” Enable scheduling to minimize mAI power bursts
  • --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 β€” blank in the original, just a dash πŸ•΅οΈβ€β™€οΈ
  • --arm-implicit-it=<value> β€” Allow conditional instructions outdside of an IT block (yes, β€œoutdside” is exactly what it says, no cap 😭)
    • =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)
  • --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
  • --bpf-stack-size=<int> β€” Specify the BPF stack size limit
  • --cfg-hide-cold-paths=<number> β€” Hide blocks with relative frequency below the given value
  • --cfg-hide-deoptimize-paths β€” blank in the original, just a dash πŸ’€
  • --cfg-hide-unreachable-paths β€” blank in the original, just a dash πŸ’€
  • --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.
  • --cs-profile-generate β€” Perform context sensitive PGO instrumentation
  • --cs-profile-path=<string> β€” Context sensitive profile file path
  • --debug-info-correlate β€” Use debug info to correlate profiles.
  • --debugify-func-limit=<ulong> β€” Set max number of processed functions per pass.
  • --debugify-level=<value> β€” Kind of debug info to add
    • =locations β€” Locations only
    • =location+variables β€” Locations and Variables
  • --debugify-quiet β€” Suppress verbose debugify output
  • --disable-auto-upgrade-debug-info β€” Disable autoupgrade of debug info
  • --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
  • --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-compact-unwind-non-canonical β€” Whether to try to emit Compact Unwind for non canonical entries.
  • --emit-dwarf-unwind=<value> β€” Whether to emit DWARF EH frame entries.
    • =always β€” Always emit EH frame entries
    • =no-compact-unwind β€” Only emit EH frame entries when compact unwind is not available
    • =default β€” Use target platform default
  • --emscripten-cxx-exceptions-allowed=<string> β€” The list of function names in which Emscripten-style exception handling is enabled (see emscripten EMSCRIPTEN_CATCHING_ALLOWED options)
  • --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 β€” blank in the original, just a dash πŸ’€
  • --enable-gvn-sink β€” Enable the GVN sinking pass (default = off)
  • --enable-load-in-loop-pre β€” blank in the original, just a dash πŸ’€
  • --enable-load-pre β€” blank in the original, just a dash πŸ’€
  • --enable-loop-simplifycfg-term-folding β€” blank in the original, just a dash πŸ’€
  • --enable-name-compression β€” Enable name/filename string compression
  • --enable-split-backedge-in-load-pre β€” blank in the original, just a dash πŸ’€
  • --execute-concurrency=<uint> β€” The number of threads used to process all files in parallel. Set to 0 for hardware concurrency. This flag only applies to all-TUs.
  • --executor=<string> β€” The name of the executor to use.
  • --experimental-debug-variable-locations β€” Use experimental new value-tracking variable locations
  • --fatal-warnings β€” Treat warnings as errors
  • --filter=<string> β€” Only process files that match this filter. This flag only applies to all-TUs.
  • --force-tail-folding-style=<value> β€” Force the tail folding style
    • =none β€” Disable tail folding
    • =data β€” Create lane mask for data only, using active.lane.mask intrinsic
    • =data-without-lane-mask β€” Create lane mask with compare/stepvector
    • =data-and-control β€” Create lane mask using active.lane.mask intrinsic, and use it for both data and control flow
    • =data-and-control-without-rt-check β€” Similar to data-and-control, but remove the runtime check
  • --fs-profile-debug-bw-threshold=<uint> β€” Only show debug message if the source branch weight is greater than this value.
  • --fs-profile-debug-prob-diff-threshold=<uint> β€” Only show debug message if the branch probility is greater than this value (in percentage).
  • --generate-merged-base-profiles β€” When generating nested context-sensitive profiles, always generate extra base profile for function with all its context profiles merged into it.
  • --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
  • --hexagon-rdf-limit=<uint> β€” blank in the original, just a dash πŸ’€
  • --hot-cold-split β€” Enable hot-cold splitting pass
  • --import-all-index β€” Import all external functions in index.
  • --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-num-phis=<uint> β€” Maximum number phis to handle in intptr/ptrint folding
  • --instcombine-max-sink-users=<uint> β€” Maximum number of undroppable users for instruction sinking
  • --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, don't you dare use this in prod πŸ’…)
  • --internalize-public-api-file=<filename> β€” A file containing list of symbol names to preserve (like a VIP list for symbols πŸŽ€)
  • --internalize-public-api-list=<list> β€” A list of symbol names to preserve (the direct VIP list, no file needed ✨)
  • --iterative-counter-promotion β€” Allow counter promotion across the whole loop nest. Slay, the whole nest! πŸ’…
  • --lto-aix-system-assembler=<path> β€” Path to a system assembler, picked up on AIX only (iykyk if you're on AIX πŸ‘‘)
  • --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 (regex goes brrr πŸ¦‹)
  • --lto-pass-remarks-format=<format> β€” The format used for serializing remarks (default: YAML)
  • --lto-pass-remarks-output=<filename> β€” Output filename for pass remarks
  • --matrix-default-layout=<value> β€” Sets the default matrix layout
    • =column-major β€” Use column-major layout
    • =row-major β€” Use row-major layout
  • --matrix-print-after-transpose-opt β€” (no description, it's giving mystery ✨)
  • --max-counter-promotions=<int> β€” Max number of allowed counter promotions (don't get too greedy, bestie 😭)
  • --max-counter-promotions-per-loop=<uint> β€” Max number counter promotions per loop to avoid increasing register pressure too much (register pressure is real, protect your registers 🫢)
  • --mc-relax-all β€” When used with filetype=obj, relax all fixups in the emitted object file
  • --mcabac β€” tbd (like, the devs are still figuring it out, bestie πŸ€”)
  • --merror-missing-parenthesis β€” Error for missing parenthesis around predicate registers
  • --merror-noncontigious-register β€” Error for register names that aren't contigious (yes, "contigious", iconic typo πŸ’€)
  • --mhvx β€” Enable Hexagon Vector eXtensions
  • --mhvx=<value> β€” Enable Hexagon Vector eXtensions
    • =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
    • =v71 β€” Build for HVX v71
    • =v73 β€” Build for HVX v73
  • --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
  • --misexpect-tolerance=<uint> β€” Prevents emiting diagnostics when profile counts are within N% of the threshold.. (double period, it's a vibe πŸ’…)
  • --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 (again with the "contigious", we stan πŸ’€)
  • --mwarn-sign-mismatch β€” Warn for mismatching a signed and unsigned value
  • --no-coverage-check β€” Don't do the coverage check.
  • --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
  • --nvptx-sched4reg β€” NVPTX Specific: schedule for register pressue (typo "pressue", but we move πŸ’…)
  • --pgo-block-coverage β€” Use this option to enable basic block coverage instrumentation
  • --pgo-temporal-instrumentation β€” Use this option to enable temporal instrumentation
  • --pgo-view-block-coverage-graph β€” Create a dot file of CFGs with block coverage inference information
  • --poison-checking-function-local β€” Check that returns are non-poison (for testing)
  • --prefix=<string> β€” Prepend header file paths with this prefix. If not specified, the files are considered to be relative to the header list file.
  • --print-pipeline-passes β€” Print a '-passes' compatible string describing the pipeline (best-effort only).
  • --problem-files-list=<string> β€” List of files with compilation or modularization problems for assistant mode. This will be excluded.
  • --r600-ir-structurize β€” Use StructurizeCFG IR pass
  • --riscv-add-build-attributes β€” (no description, it's giving mystery ✨)
  • --root-module=<string> β€” Specify the name of the root module.
  • --runtime-counter-relocation β€” Enable relocating counters at runtime.
  • --safepoint-ir-verifier-print-only β€” (no description, it's giving mystery ✨)
  • --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.
  • --sanitizer-early-opt-ep β€” Insert sanitizers on OptimizerEarlyEP.
  • --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.
  • --summary-file=<string> β€” The summary file to use for function importing.
  • --sve-tail-folding=<string> β€” Control the use of vectorisation using tail-folding for SVE where the option is specified in the form (Initial)[+(Flag1|Flag2|...)]:
    • disabled β€” (Initial) No loop types will vectorize using tail-folding
    • default β€” (Initial) Uses the default tail-folding settings for the target CPU
    • all β€” (Initial) All legal loop types will vectorize using tail-folding
    • simple β€” (Initial) Use tail-folding for simple loops (not reductions or recurrences)
    • reductions β€” Use tail-folding for loops containing reductions
    • noreductions β€” Inverse of above
    • recurrences β€” Use tail-folding for loops containing fixed order recurrences
    • norecurrences β€” Inverse of above
    • reverse β€” Use tail-folding for loops requiring reversed predicates
    • noreverse β€” Inverse of above
  • --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
  • --thinlto-assume-merged β€” Assume the input has already undergone ThinLTO function importing and the other pre-optimization pipeline changes.
  • --threads=<int> β€” (no description, it's giving mystery ✨)
  • --type-based-intrinsic-cost β€” Calculate intrinsics cost based only on argument types
  • --verify-region-info β€” Verify region info (time consuming) (time consuming, so maybe grab a snack πŸ“)
  • --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> β€” tells the assembler how to line up branches using NOPs. If the boundary size isn't 0, it has to be a power of 2 and no smaller than 32, periodt. Branches get aligned so they're never chilling across or against the boundary of the size you picked. Default is 0, and 0 means no aligning, sorry bestie 🫢
  • --x86-branches-within-32B-boundaries β€” aligns selected instructions to soften the negative performance impact of Intel's micro code update for errata skx102. ✨
⚠️ heads up: this may break assumptions about labels that correspond to particular instructions. The original literally says it should be used with caution, and like… please do. This one's giving chaos if you're careless. πŸ’€
  • --x86-pad-max-prefix-size=<uint> β€” max number of prefixes you're allowed to use for padding. That's the whole vibe, no notes. πŸ’…

πŸŽ€ Generic Options πŸŽ€

  • --help β€” shows you the available options. Want the hidden ones too? That's --help-hidden. πŸ•΅οΈ
  • --help-list β€” prints the list of available options. And yeah, --help-list-hidden exists for the more secret menu. πŸ‘€
  • --version β€” spits out the version of this program. Quick lil flex. πŸ‘‘

πŸ’… Polly Options πŸ’…

Configure the polly loop optimizer. Say it with me: loop optimization, but make it polyhedral. 🌈

  • --polly β€” turns on the polly optimizer (works with -O1, -O2 or -O3). Slay.
  • --polly-2nd-level-tiling β€” enables a 2nd level loop of loop tiling. Tiling inside tiling, inception core. πŸŒ€
  • --polly-ast-print-accesses β€” prints memory access functions. Reading the receipts, fr fr. 🧾
  • --polly-context=<isl parameter set> β€” hands over extra constraints on the context parameters. Your rules, your world. 🌸
  • --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. Budget girlies, this one's for you πŸ’Έ
  • --polly-detect-full-functions β€” allows the detection of full functions. The whole entire function, bestie. 😌
  • --polly-dump-after β€” dumps the module after Polly transformations into a file suffixed with "-after". πŸ«™
  • --polly-dump-after-file=<string> β€” dumps the module after Polly transformations to the given file. You pick the name, iconic behavior. ✍️
  • --polly-dump-before β€” dumps the module before Polly transformations into a file suffixed with "-before". βͺ
  • --polly-dump-before-file=<string> β€” dumps the module before Polly transformations to the given file. Same energy, earlier era. πŸ’Ύ
  • --polly-enable-simplify β€” simplifies SCoP after optimizations. Cleanup era ✨
  • --polly-ignore-func=<string> β€” ignores functions that match a regex. Multiple regexes can be comma separated. Scop detection will ignore all functions that match ANY of the regexes provided. Not you, not you, and definitely not you. πŸ™ˆ
  • --polly-isl-arg=<argument> β€” an option passed to ISL. Hand it off and let it cook. 🍳
  • --polly-matmul-opt β€” performs optimizations of matrix multiplications based on pattern matching. Math but make it slay. πŸ”₯
  • --polly-on-isl-error-abort β€” aborts if an isl error is encountered. No error tolerance, zero chill, we ball. πŸ’€
  • --polly-only-func=<string> β€” only runs on functions that match a regex. Multiple regexes can be comma separated. Scop detection will run on all functions that match ANY of the regexes provided. Chosen ones only, iykyk. πŸ‘‘
  • --polly-only-region=<identifier> β€” only runs on certain regions (The provided identifier must appear in the name of the region's entry block
  • --polly-only-scop-detection β€” only runs scop detection, but no other optimizations. Look, don't touch. πŸ‘€
  • --polly-optimized-scops β€” Polly - Dump polyhedral description of Scops optimized with the isl scheduling optimizer and the set of post-scheduling transformations is applied on the schedule tree. Full deep-dive energy. 🌊
  • --polly-parallel β€” generates thread parallel code (isl codegen only). Multithreaded main character moment. ⚑
  • --polly-parallel-force β€” forces generation of thread parallel code ignoring any cost model. The cost model said no; this said bet. 😀
  • --polly-pattern-matching-based-opts β€” performs optimizations based on pattern matching. Spot the pattern, eat it up. πŸ“
  • --polly-postopts β€” applies post-rescheduling optimizations such as tiling (requires -polly-reschedule). ⚠️ needs its bestie along for the ride.
  • --polly-pragma-based-opts β€” applies user-directed transformation from metadata. You said it, it does it. πŸ’…
  • --polly-pragma-ignore-depcheck β€” skips the dependency check for pragma-based transformations. Bold. Very bold. 🫣
  • --polly-process-unprofitable β€” processes scops that are unlikely to benefit from Polly optimizations. Investing in the underdogs, honestly? Respect. 🫢
  • --polly-register-tiling β€” enables register tiling. Tiles in your registers, cozy. 🧚
  • --polly-report β€” prints information about the activities of Polly. Storytime about what Polly's been up to πŸ“–
  • --polly-reschedule β€” optimizes SCoPs using ISL. Reschedule the whole calendar, glow-up edition. πŸ“†
  • --polly-show β€” highlights the code regions that will be optimized in a (CFG BBs and LLVM-IR instructions). Spotlight, please 🎀
  • --polly-show-only β€” highlights the code regions that will be optimized in a (CFG only BBs). Same spotlight, but strictly CFG, no LLVM-IR invited. πŸ’‘
  • --polly-stmt-granularity=<value> β€” the algorithm to use for splitting basic blocks into multiple statements. Pick your flavor:
    • =bb β€” One statement per basic block
    • =scalar-indep β€” Scalar independence heuristic
    • =store β€” Store-level granularity
  • --polly-tc-opt β€” performs optimizations of tensor contractions based on pattern matching. Tensor contractions but make it cute. 🌸
  • --polly-tiling β€” enables loop tiling. Tiles for days. 🧱
  • --polly-vectorizer=<value> β€” selects the vectorization strategy. Choose wisely:
    • =none β€” No Vectorization
    • =stripmine β€” Strip-mine outer loops for the loop-vectorizer to trigger

and that's the whole page, bestie 🫢 you just read modularize version 17, from June 2025 β€” it lives in section 1 of the manual, and it ate. go forth and align your branches responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from