MODULARIZE(1)
β¨ modularize π
okay bestie, buckle up, because modularize is a User Command from the modularize 16 era and it has a LOT of options. like, an unreasonable amount. this is part 1 of 3 so drink some water and stretch, we're going on a journey π¦
πΈ NAME πΈ
modularize β manual page for modularize 16
π DESCRIPTION π
OVERVIEW: modularize. that's it, that's the overview, the page really said "you know what, short and sweet" π
USAGE:
modularize [options] <list of one or more header list files> <arguments to be passed to front end>...
so you feed it options, then one or more header list files, and then arguments to be passed to front end. iconic. slay. π
OPTIONS:
π Color Options π
--colorβ use colors in output (default=autodetect). let it cook, or don't, it figures it out itself.
β¨ General options β¨
heads up bestie: a few of these have literally no description on the page. i'm telling you, not making anything up. no cap.
-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 devirtualization CGSCC repeat pass is reached.--allow-ginsert-as-artifactβ allowG_INSERTto be considered an artifact. it's a 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-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β (no description on the page, bestie, it's giving mystery π΅οΈ)--arm-implicit-it=<value>β allow conditional instructions outdside of an IT block (yes, "outdside", the page said what it said, i'm keeping it exactly π)=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#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--cfg-hide-cold-paths=<number>β hide blocks with relative frequency below the given value--cfg-hide-deoptimize-pathsβ (no description given π)--cfg-hide-unreachable-pathsβ (also no description π)--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-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-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 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-style setjmp/longjmp handling--enable-gvn-hoistβ enable the GVN hoisting pass (default = off)--enable-gvn-memdepβ (no description, the page left us on read π)--enable-gvn-sinkβ enable the GVN sinking pass (default = off)--enable-load-in-loop-preβ (no description π)--enable-load-preβ (no description π)--enable-loop-simplifycfg-term-foldingβ (no description π)--enable-name-compressionβ enable name/filename string compression--enable-split-backedge-in-load-preβ (no description π)--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.--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). (yes, "probility", keeping it exactly as printed π)--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--hot-cold-splitβ enable hot-cold splitting pass--import-all-indexβ import all external functions in index.--incremental-linker-compatibleβ when used withfiletype=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-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)--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.--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
and that's where part 1 ends bestie, we're not even close to done, more is coming π
okay so the options marathon continues and we are not stopping, bestie β every single flag gets its moment π
--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, just a name and a dream π--max-counter-promotions=<int>β max number of allowed counter promotions--max-counter-promotions-per-loop=<uint>β max number counter promotions per loop, so register pressure doesn't get cranked up too much--mc-relax-allβ when used withfiletype=obj, relax all fixups in the emitted object file--mcabacβtbd(yes literallytbd, the devs left us on read π)--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=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.. (two dots, we keep them, no notes π)--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.--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--opaque-pointersβ use opaque pointers--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-passescompatible 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β useStructurizeCFGIR pass--rdf-dumpβ description? not found. it's giving mystery π--rdf-limit=<uint>β again no description, we love a secretive flag--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 either, mysterious king π--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>β control the use of vectorisation using tail-folding for SVE:disabledβ no loop types will vectorize using tail-foldingdefaultβ uses the default tail-folding settings for the target CPUallβ all legal loop types will vectorize using tail-foldingsimpleβ use tail-folding for simple loops (not reductions or recurrences)reductionsβ use tail-folding for loops containing reductionsrecurrencesβ use tail-folding for loops containing fixed order recurrences
--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
bestie, those two force- ones? the manpage literally says might be unsafe. respect the warning, don't just vibe your way into them π
--thinlto-assume-mergedβ assume the input has already undergone ThinLTO function importing and the other pre-optimization pipeline changes.--threads=<int>β no description provided β the silence is the vibe π--type-based-intrinsic-costβ calculate intrinsics cost based only on argument types--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β WebAssemblysetjmp/longjmphandling--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.--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 "may break assumptions about labels corresponding to particular instructions" part? use with caution, fr fr. not a drill.
--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 π¦
--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>β the max number of isl operations you're willing to throw at lifetime analysis πΈ. Set it to0and it's no limit, go feral.--polly-detect-full-functionsβ lets the detection of full functions happen. yes queen, whole functions π--polly-dump-afterβ dumps the module after Polly transformations into a file suffixed with-afterπ--polly-dump-after-file=<string>β same energy, but you pick the file: dumps the module after Polly transformations to the given file π--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, your choice, your name π--polly-enable-simplifyβ simplifies the SCoP after optimizations. tidy up bestie β¨--polly-ignore-func=<string>β ignores functions that match a regex. you can comma separate multiple regexes, and scop detection will ignore all functions that match ANY of the regexes you provided π«--polly-isl-arg=<argument>β an option passed straight to ISL π¨--polly-matmul-optβ performs optimizations of matrix multiplications based on pattern matching π₯--polly-on-isl-error-abortβ aborts if an isl error is encountered. it's giving no patience, and honestly? valid π--polly-only-func=<string>β only runs on functions that match a regex. multiple regexes can be comma separated, and scop detection will run on all functions that match ANY of the regexes provided π―--polly-only-region=<identifier>β only runs on certain regions, and the identifier you provide must appear in the name of the region's entry block π--polly-only-scop-detectionβ only runs scop detection, but no other optimizations. detection era only, no notes π--polly-optimized-scopsβ Polly dumps the 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β generates thread parallel code, isl codegen only π§΅--polly-parallel-forceβ forces generation of thread parallel code, ignoring any cost model. it does not care about your budget β--polly-pattern-matching-based-optsβ performs optimizations based on pattern matching π--polly-postoptsβ applies post-rescheduling optimizations such as tiling, and it requires-polly-rescheduleβ οΈ--polly-pragma-based-optsβ applies user-directed transformation from metadata πͺ--polly-pragma-ignore-depcheckβ skips the dependency check for pragma-based transformations πββοΈ--polly-process-unprofitableβ processes scops that are unlikely to benefit from Polly optimizations. messy but brave πͺ--polly-register-tilingβ enables register tiling π¦--polly-reportβ prints information about the activities of Polly. it's the receipts, fr fr π§Ύ--polly-rescheduleβ optimizes SCoPs using ISL π--polly-showβ highlights the code regions that will be optimized in a (CFG BBs and LLVM-IR instructions) β¨--polly-show-onlyβ highlights 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 π°=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 π--polly-tilingβ enables loop tiling π§±--polly-vectorizer=<value>β selects the vectorization strategy π=noneβ no Vectorization=pollyβ Polly internal vectorizer=stripmineβ strip-mine outer loops for the loop-vectorizer to trigger
okay that's the whole list, you made it bestie π«Ά this page is modularize version 16, dated October 2023 β so if your build is older than that, don't come for me π no cap, go optimize something iconic π
π¦ where this page comes from
- debian bookworm: clang-tools-16 1:16.0.6-15~deb12u1 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms