MODULARIZE(1)
π MODULARIZE(1) π
okay so first things first bestie: this is the manual page for modularize, and she's on version 18. It's a User Command, so like, it lives in the commands section of the manual, iykyk. π
πΈ NAME πΈ
modularize β the manual page for modularize 18 π«Ά
π DESCRIPTION π
β¨ OVERVIEW β¨
OVERVIEW: modularize.
That's it. That's the overview. Short queen, says everything and nothing, we love her for it. π
π USAGE π
USAGE:
modularize [options] <list of one or more header list files> <arguments to be passed to front end>...
So yeah β you give her a list of one or more header list files (that's the <list of one or more header list files> part, don't skip it), and then arguments to be passed to front end. That trailing ... is doing a lot of heavy lifting, no cap.
βοΈ OPTIONS βοΈ
OPTIONS: β buckle up, there are so many. This is a long one, but every single one matters, so we're doing all of them. Periodt. π₯
π Color Options π
--colorβ use colors in output (default=autodetect). Yes she autodetects, she's considerate like that. π
π General options π
-I <path>β include path for the coverage check.--aarch64-neon-syntax=<value>β choose the style of NEON code to emit from the 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 the devirtualization CGSCC repeat pass is reached. She said "we're done here," dramatic but valid. π--allow-ginsert-as-artifactβ allowG_INSERTto be considered an artifact. Literally described as a hack around AMDGPU test infinite loops. Iconic workaround energy.--amdgpu-atomic-optimizer-strategy=<value>β select the DPP or Iterative strategy for scan:=DPPβ use DPP operations for scan=Iterativeβ use the Iterative approach for scan=Noneβ disable the 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 the 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-kernarg-preload-count=<uint>β how many kernel arguments to preload onto SGPRs.--amdgpu-promote-alloca-to-vector-limit=<uint>β maximum byte size to consider for promote alloca to vector.--amdgpu-sdwa-peepholeβ enable the 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 ofmovrelfor vector indexing.--arm-add-build-attributesβ (no description given, bestie. She's mysterious. Keep it that way. π)--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 the 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 the first counter in a function (usually the entry counter).--block-check-header-list-onlyβ only warn if#includedirectives 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.--bounds-checking-unique-trapsβ always use one trap per check.--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β (no description in the source, she's just vibing. β¨)--cfg-hide-unreachable-pathsβ (also description-less, twin of the one above. π«Ά)--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. > Heads up: this one is deprecated, use-profile-correlate=debug-infoinstead. She's retired but still showing up to the function, we respect the legacy. π--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 the emscriptenEMSCRIPTEN_CATCHING_ALLOWEDoptions).--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-stylesetjmp/longjmphandling.--enable-gvn-hoistβ enable the GVN hoisting pass (default = off).--enable-gvn-memdepβ (no description, she's keeping secrets π).--enable-gvn-sinkβ enable the GVN sinking pass (default = off).--enable-load-in-loop-preβ (no description, mysterious icon π ).--enable-load-preβ (also no description, matching set π).--enable-loop-simplifycfg-term-foldingβ (no description, she's lowkey shy).--enable-name-compressionβ enable name/filename string compression.--enable-split-backedge-in-load-preβ (no description given).--enable-split-loopiv-heuristicβ enable loop iv regalloc heuristic.--execute-concurrency=<uint>β the number of threads used to process all files in parallel. Set to0for 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.--experimental-debuginfo-iteratorsβ enable communicating debuginfo positions through iterators, eliminating intrinsics.--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 theactive.lane.maskintrinsic=data-without-lane-maskβ create lane mask with compare/stepvector=data-and-controlβ create lane mask using theactive.lane.maskintrinsic, 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 an extra base profile for a function with all its context profiles merged into it.--gpsize=<uint>β Global Pointer Addressing Size. The default size is8.--hash-based-counter-splitβ rename counter variable of a comdat function based on cfg hash.--hexagon-rdf-limit=<uint>β (no description in the source, she's simply too cool to explain herself π).
okay and that's not even the whole list bestie, we're just getting started β more coming in the next part, don't go anywhere πβ¨
okay so we're still in the OPTIONS section and it's LONG, but every single flag is here, no skips, periodt. π
--hot-cold-splitβ enable the hot-cold splitting pass. it's giving temperature-based optimization π₯βοΈ--import-all-indexβ import all external functions in index. all of them, bestie.--incremental-linker-compatibleβ when used withfiletype=obj, emit an object file which can be used with an incremental linker. slay.--instcombine-code-sinkingβ enable code sinking. let it sink, periodt.--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 inintptr/ptrintfolding.--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? asking for a friend.--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).--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 thing.--lto-aix-system-assembler=<path>β path to a system assembler, picked up on AIX only.--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.--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 in the original, just a mysterious icon β¨)--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 withfiletype=obj, relax all fixups in the emitted object file.--mcabacβtbd. literally just tbd, bestie.--merror-missing-parenthesisβ error for missing parenthesis around predicate registers.--merror-noncontigious-registerβ error for register names that aren't contigious. yes, that spelling.--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β shouldmir-strip-debugonly 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, iconic)--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 ifprefixoption is specified, useprefixfor file path.--mwarn-missing-parenthesisβ warn for missing parenthesis around predicate registers.--mwarn-noncontigious-registerβ warn for register names that arent contigious. again, that spelling.--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. their spelling, not mine.--object-size-offset-visitor-max-visit-instructions=<uint>β maximum number of instructions forObjectSizeOffsetVisitorto look at.--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.--profile-correlate=<value>β use debug info or binary file to correlate profiles.=<empty>β no profile correlation.=debug-infoβ use debug info to correlate.=binaryβ use binary to correlate.
--r600-ir-structurizeβ useStructurizeCFGIR pass.--relink-builtin-bitcode-postopβ re-link builtin bitcodes after optimization.--riscv-add-build-attributesβ (no description in the original, just vibes π¦)--riscv-use-aaβ enable the use of AA during codegen.--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 in the original, mysterious β¨)--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 onOptimizerEarlyEP.--skip-ret-exit-blockβ suppress counter promotion if exit blocks containret.--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>β controls whether we vectorize using tail-folding for SVE</p>, and bestie you write it in the form(Initial)[+(Flag1|Flag2|...)]. The flavors are:disabledβ (Initial) No loop types will vectorize using tail-folding. nope, none, not today πdefaultβ (Initial) Uses the default tail-folding settings for the target CPUallβ (Initial) All legal loop types will vectorize using tail-folding. go big or go home β¨simpleβ (Initial) Use tail-folding for simple loops (not reductions or recurrences)reductionsβ Use tail-folding for loops containing reductionsnoreductionsβ Inverse of aboverecurrencesβ Use tail-folding for loops containing fixed order recurrencesnorecurrencesβ Inverse of abovereverseβ Use tail-folding for loops requiring reversed predicatesnoreverseβ Inverse of above
--tail-predication=<value>β MVE tail-predication pass options. The menu:=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 π
bestie the "force" ones literally say "might be unsafe" in the docs. that is not me being dramatic, that is the manpage. proceed with caution fr fr π«Ά
--thinlto-assume-mergedβ Assume the input has already undergone ThinLTO function importing and the other pre-optimization pipeline changes.--threads=<int>β literally no description. it's giving mystery. it's giving enigma. the manpage just hands you the flag and walks away π--type-based-intrinsic-costβ Calculate intrinsics cost based only on argument types--ubsan-unique-trapsβ Deoptimize traps for UBSAN so there is 1 trap per check--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 jumpsfusedβ indicates fused conditional jumpsjmpβ indicates direct unconditional jumpscallβ indicates direct and indirect callsretβ indicates retsindirectβ 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. (so 0 = leave them alone, which is the whole mood honestly)--x86-branches-within-32B-boundariesβ Align selected instructions to mitigate negative performance impact of Intel's micro code update for errataskx102. May break assumptions about labels corresponding to particular instructions, and should be used with caution.
β οΈ okay that caution is not a garnish, it's real. it can break assumptions about labels corresponding to particular instructions. use with caution, periodt.
--x86-pad-max-prefix-size=<uint>β Maximum number of prefixes to use for padding
β¨ Generic Options β¨
--helpβ Display available options (--help-hiddenfor more)--help-listβ Display list of available options (--help-list-hiddenfor more)--versionβ Display the version of this program
π¦ Polly Options π¦
Configure the polly loop optimizer β the loop-glow-up department π
--pollyβ Enable the polly optimizer (with-O1,-O2or-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-1schedules 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-matmul-optβ Perform optimizations of matrix multiplications based on pattern matching--polly-on-isl-error-abortβ Abort if an isl error is encountered--polly-only-func=<string>β Only run 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.--polly-only-region=<identifier>β Only run on certain regions (The provided identifier must appear in the name of the region's entry block--polly-only-scop-detectionβ Only run scop detection, but no other optimizations--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--polly-parallelβ Generate thread parallel code (isl codegen only)--polly-parallel-forceβ Force generation of thread parallel code ignoring any cost model--polly-pattern-matching-based-optsβ Perform optimizations based on pattern matching--polly-postoptsβ Apply post-rescheduling optimizations such as tiling (requires-polly-reschedule)--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.--polly-register-tilingβ Enable register tiling--polly-reportβ Print information about the activities of Polly--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>β Algorithm to use for splitting basic blocks into multiple statements:=bbβ One statement per basic block=scalar-indepβ Scalar independence heuristic=storeβ Store-level granularity
--polly-tc-optβ Perform optimizations of tensor contractions based on pattern matching--polly-tilingβ Enable loop tiling--polly-vectorizer=<value>β Select the vectorization strategy:=noneβ No Vectorization=stripmineβ Strip-mine outer loops for the loop-vectorizer to trigger
πΈ and that's a wrap on the options, bestie. you made it to the end of the entire page, which is genuinely iconic of you π
this page is modularize version 18, dated June 2025, and it lives at section MODULARIZE(1) in the manual. go forth and modularize responsibly, mwah π
ππ¦
π¦ where this page comes from
- debian trixie: clang-tools-18 1:18.1.8-18+b1 Β· APACHE-2-LLVM-EXCEPTIONS
- ubuntu questing: clang-tools-18 1:18.1.8-18ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms