MODULARIZE(1)
π 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#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--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 withfiletype=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β 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, 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-foldingdefaultβ (Initial) Uses the default tail-folding settings for the target CPUallβ (Initial) All legal loop types will vectorize using tail-foldingsimpleβ (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=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 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>β tells the assembler how to line up branches usingNOPs. If the boundary size isn't0, 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 is0, and0means 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 errataskx102. β¨
β οΈ 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-hiddenexists 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,-O2or-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-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. 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
- debian trixie: clang-tools-17 1:17.0.6-22+b2 Β· APACHE-2-LLVM-EXCEPTIONS
- ubuntu questing: clang-tools-17 1:17.0.6-22build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms