MODULARIZE(1)

๐Ÿ“ฆ
version 21.1.8 ยท 3 versions
, in ubuntu stonking

MODULARIZE(1) โœจ User Commands โœจ modularize 21

okay bestie, pull up a chair ๐Ÿ’– this one is LONG, so hydrate, stretch, and let's go. no skipping, every single flag is coming with us ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

modularize โ€” the manual page for modularize 21. that's it. that's the whole name. short queen behavior ๐Ÿ‘‘

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

๐Ÿ’ซ OVERVIEW ๐Ÿ’ซ

modularize.

...yeah. that's the entire overview. it's giving minimalism ๐ŸŽ€

โœจ 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, so it decides for itself whether to serve looks ๐ŸŒˆ)

๐Ÿ“ 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-indirect-call-specialization-threshold=<uint> โ€” A threshold controls whether an indirect call will be specialized
  • --amdgpu-kernarg-preload-count=<uint> โ€” How many kernel arguments to preload onto SGPRs
  • --amdgpu-module-splitting-max-depth=<uint> โ€” maximum search depth. 0 forces a greedy approach. warning: the algorithm is up to O(2^N), where N is the max depth. ๐Ÿ˜ญ
  • --amdgpu-promote-alloca-to-vector-limit=<uint> โ€” Maximum byte size to consider promote alloca to vector
  • --amdgpu-promote-alloca-to-vector-max-regs=<uint> โ€” Maximum vector size (in 32b registers) to use when promoting alloca
  • --amdgpu-promote-alloca-to-vector-vgpr-ratio=<uint> โ€” Ratio of VGPRs to budget for promoting alloca to vectors
  • --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
  • --arc-contract-use-objc-claim-rv โ€” Enable generation of calls to objc_claimAutoreleasedReturnValue
  • --argext-abi-check โ€” Verify that narrow int args are properly extended per the SystemZ ABI.
  • --arm-add-build-attributes โ€” (no description given, bestie, we're all just standing here in silence ๐Ÿ™ˆ)
  • --arm-implicit-it=<value> โ€” Allow conditional instructions outside 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)
  • --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 โ€” (no description here either ๐Ÿ’€)
  • --cfg-hide-unreachable-paths โ€” (also vibing with no description)
  • --check-functions-filter=<regex> โ€” Only emit checks for arguments of functions whose names match the given regular expression
  • --conditional-counter-update โ€” Do conditional counter updates in single byte counters mode)
  • --cost-kind=<value> โ€” Target cost kind
    • =throughput โ€” Reciprocal throughput
    • =latency โ€” Instruction latency
    • =code-size โ€” Code size
    • =size-latency โ€” Code size and latency
    • =all โ€” Print all cost kinds
  • --coverage-check-only โ€” Only do the coverage check.
  • --crel โ€” Use CREL relocation format for ELF
  • --cs-profile-generate โ€” Perform context sensitive PGO instrumentation
  • --cs-profile-path=<string> โ€” Context sensitive profile file path
  • --ctx-prof-include-empty โ€” Also write profiles with all-zero counters. Intended for testing/debugging.
  • --ctx-profile-force-is-specialized โ€” Treat the given module as-if it were containing the post-thinlink module containing the root
  • --debug-info-correlate โ€” Use debug info to correlate profiles. (Deprecated, use -profile-correlate=debug-info) โ€” yeah she's deprecated bestie, take the exit ๐Ÿšช
  • --debugify-atoms โ€” (no description, just out here existing โœจ)
  • --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
  • --emit-gnuas-syntax-on-zos โ€” Emit GNU Assembly Syntax on z/OS.
  • --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 โ€” (no description, keeping it mysterious ๐Ÿงš)
  • --enable-gvn-memoryssa โ€” (no description ๐Ÿ’œ)
  • --enable-gvn-sink โ€” Enable the GVN sinking pass (default = off)
  • --enable-jump-table-to-switch โ€” Enable JumpTableToSwitch 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 ๐Ÿ’ซ)
  • --enable-split-loopiv-heuristic โ€” Enable loop iv regalloc heuristic
  • --enable-vtable-profile-use โ€” If ThinLTO and WPD is enabled and this option is true, vtable profiles will be used by ICP pass for more efficient indirect call sequence. If false, type profiles won't be used.
  • --enable-vtable-value-profiling โ€” If true, the virtual table address will be instrumented to know the types of a C++ pointer. The information is used in indirect call promotion to do selective vtable-based comparison.

okay we're not done, keep scrolling bestie, there's more coming ๐Ÿ’–

  • --execute-concurrency=<uint> โ€” how many threads are gonna chomp through all your files in parallel ๐Ÿงต Set it to 0 and it just uses the hardware concurrency instead. Heads up bestie: this flag only applies to all-TUs.
  • --executor=<string> โ€” the name of the executor you wanna use โœจ
  • --expand-variadics-override=<value> โ€” overrides how expand-variadics behaves ๐ŸŽ€
    • =unspecified โ€” just roll with the implementation defaults
    • =disable โ€” nuke the pass entirely
    • =optimize โ€” optimise it, but the ABI stays untouched
    • =lowering โ€” actually change the variadic calling convention
  • --experimental-debug-variable-locations โ€” use the experimental new value-tracking variable locations ๐Ÿงช lowkey experimental fr
  • --fatal-warnings โ€” warnings get treated like errors. no mercy ๐Ÿ’€
  • --fdpic โ€” use the FDPIC ABI
  • --filter=<string> โ€” only process the files that match this filter ๐ŸŽฏ this one only applies to all-TUs too.
  • --force-tail-folding-style=<value> โ€” force the tail folding style ๐Ÿ’…
    • =none โ€” disable tail folding completely
    • =data โ€” create a lane mask for data only, using the active.lane.mask intrinsic
    • =data-without-lane-mask โ€” create the lane mask with compare/stepvector
    • =data-and-control โ€” create the lane mask using the active.lane.mask intrinsic, and use it for both data and control flow
    • =data-and-control-without-rt-check โ€” same energy as data-and-control, but the runtime check gets removed
    • =data-with-evl โ€” use predicated EVL instructions for tail folding. If EVL isn't supported, it falls back to data-without-lane-mask.
  • --fs-profile-debug-bw-threshold=<uint> โ€” only shows the debug message if the source branch weight is bigger than this value ๐Ÿ“Š
  • --fs-profile-debug-prob-diff-threshold=<uint> โ€” only shows the debug message if the branch probability is bigger than this value (it's in percentage!)
  • --generate-merged-base-profiles โ€” when you're generating nested context-sensitive profiles, this always generates an extra base profile for a function with all its context profiles merged into it ๐Ÿซถ
  • --gpsize=<uint> โ€” Global Pointer Addressing Size. the default size is 8.
  • --hash-based-counter-split โ€” renames the counter variable of a comdat function based on the cfg hash
  • --hexagon-add-build-attributes โ€” no description given, it's giving mystery ๐Ÿ™ˆ
  • --hexagon-rdf-limit=<uint> โ€” also no description. iconic and unknowable โœจ
  • --hot-cold-split โ€” enable the hot-cold splitting pass ๐Ÿ”ฅ๐ŸงŠ
  • --hwasan-percentile-cutoff-hot=<int> โ€” hot percentile cutoff.
  • --hwasan-random-rate=<number> โ€” a probability value in the range [0.0, 1.0] for keeping the instrumentation of a function. Note: instrumentation can get skipped randomly OR because of the hot percentile cutoff, if both of them are supplied ๐Ÿ‘€
  • --implicit-mapsyms โ€” lets a mapping symbol at the section beginning be implicit, which lowers the number of mapping symbols at the expense of some portability. Recommended for projects that can build all their object files using this option.
  • --import-all-index โ€” import all external functions in the index ๐Ÿ“ฅ
  • --incremental-linker-compatible โ€” when it's used with filetype=obj, it emits an object file that can be used with an incremental linker
  • --instcombine-code-sinking โ€” enable code sinking ๐ŸŒŠ
  • --instcombine-guard-widening-window=<uint> โ€” how wide an instruction window is allowed to bypass looking for another guard
  • --instcombine-max-num-phis=<uint> โ€” the max number of phis to handle in intptr/ptrint folding
  • --instcombine-max-sink-users=<uint> โ€” the max number of undroppable users for instruction sinking
  • --instcombine-maxarray-size=<uint> โ€” the max array size that gets considered when doing a combine
  • --instcombine-negator-enabled โ€” should we even attempt to sink negations? ๐Ÿค”
  • --instcombine-negator-max-depth=<uint> โ€” what's the maximal lookup depth when trying to check if negation sinking is viable
  • --instrprof-atomic-counter-update-all โ€” makes all profile counter updates atomic (for testing only ๐Ÿงช)
  • --internalize-public-api-file=<filename> โ€” a file containing a list of symbol names to preserve ๐Ÿ“„
  • --internalize-public-api-list=<list> โ€” a list of symbol names to preserve
  • --intrinsic-cost-strategy=<value> โ€” the costing strategy for intrinsic instructions
    • =instruction-cost โ€” use TargetTransformInfo::getInstructionCost
    • =intrinsic-cost โ€” use TargetTransformInfo::getIntrinsicInstrCost
    • =type-based-intrinsic-cost โ€” calculate the intrinsic cost based only on argument types
  • --iterative-counter-promotion โ€” allow counter promotion across the whole loop nest ๐Ÿชบ
  • --loongarch-use-aa โ€” enable the use of AA during codegen.
  • --lower-allow-check-percentile-cutoff-hot=<int> โ€” hot percentile cutoff.
  • --lower-allow-check-random-rate=<number> โ€” a probability value in the range [0.0, 1.0] of unconditional pseudo-random checks ๐ŸŽฒ
  • --lto-aix-system-assembler=<path> โ€” the 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 the optimization passes
    • =post-merge-pre-opt โ€” embed post merge, but before optimizations
  • --lto-pass-remarks-filter=<regex> โ€” only records 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> โ€” the 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, we live in a mystery โœจ
  • --max-counter-promotions=<int> โ€” the max number of allowed counter promotions
  • --max-counter-promotions-per-loop=<uint> โ€” the max number of counter promotions per loop, so register pressure doesn't get pushed too high ๐Ÿ“ˆ
  • --mc-relax-all โ€” when used with filetype=obj, it relaxes all fixups in the emitted object file
  • --mcabac โ€” tbd ๐Ÿ˜ญ
  • --merror-missing-parenthesis โ€” error for a 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
    • =v75 โ€” build for HVX v75
    • =v79 โ€” build for HVX v79
  • --mips-compact-branches=<value> โ€” MIPS Specific: the compact branch policy.
    • =never โ€” do not use compact branches if possible
    • =optimal โ€” use compact branches where appropriate (this is the 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 emitting diagnostics when profile counts are within N% of the threshold.
  • --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> โ€” turns on module map output and specifies the output path or file name. If no path is specified and the prefix option is specified, it uses the prefix for the file path ๐Ÿ—บ๏ธ
  • --ms-secure-hotpatch-functions-file=<filename> โ€” a file containing a list of mangled function names to mark for Windows Secure Hot-Patching ๐Ÿฉน
  • --ms-secure-hotpatch-functions-list=<list> โ€” a list of mangled function names to mark for Windows Secure Hot-Patching
  • --mwarn-missing-parenthesis โ€” warn for a missing parenthesis around predicate registers
  • --mwarn-noncontigious-register โ€” warn for register names that aren't contigious
  • --mwarn-sign-mismatch โ€” warn for mismatching a signed and an unsigned value โš ๏ธ
  • --no-coverage-check โ€” don't do the coverage check.
  • --no-deprecated-warn โ€” suppress all deprecated warnings ๐Ÿคซ
  • --no-discriminators โ€” turns OFF generation of discriminator info. we're saying bye to discriminators ๐Ÿ’…
  • --no-type-check โ€” suppresses type errors (this one's a Wasm girlie)
  • --no-warn โ€” suppresses all warnings. every single one. zero complaints, zero notes โœจ
  • --nvptx-approx-log2f32 โ€” NVPTX Specific: whether to use lg2.approx for log2
  • --nvptx-sched4reg โ€” NVPTX Specific: schedule for register pressue (yes bestie that's literally how it's spelled in the source, I'm just the messenger ๐Ÿ’€)
  • --object-size-offset-visitor-max-visit-instructions=<uint> โ€” maximum number of instructions for ObjectSizeOffsetVisitor to 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 โ€” creates a dot file of CFGs with block coverage inference information ๐Ÿ•ธ๏ธ
  • --prefix=<string> โ€” prepends header file paths with this prefix. If you don't specify it, the files are considered to be relative to the header list file.
  • --print-pipeline-passes โ€” prints a -passes compatible string describing the pipeline. best-effort only, so manage your expectations ๐Ÿซถ
  • --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
  • --promote-alloca-vector-loop-user-weight=<uint> โ€” the bonus weight of users of allocas within loop when sorting profitable allocas
  • --r600-ir-structurize โ€” use StructurizeCFG IR pass
  • --riscv-add-build-attributes โ€” (no description given, it's giving mystery ๐Ÿ•ต๏ธ)
  • --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 โ€” (also no description, iconic silence ๐ŸŽ€)
  • --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.
  • --sampled-instr-burst-duration=<uint> โ€” sets the profile instrumentation burst duration, which can range from 1 all the way up to the value of 'sampled-instr-period' (0 is invalid ๐Ÿšซ). this number of samples will be recorded for each 'sampled-instr-period' count update. setting it to 1 enables simple sampling, in which case it's recommended you set 'sampled-instr-period' to a prime number.
  • --sampled-instr-period=<uint> โ€” sets the profile instrumentation sample period. a sample period of 0 is invalid ๐Ÿšซ. for each sample period, a fixed number of consecutive samples will be recorded, and the number is controlled by the 'sampled-instr-burst-duration' flag. the default sample period of 65536 is optimized for generating efficient code that leverages unsigned short integer wrapping in overflow, but this is disabled under simple sampling (burst duration = 1).
  • --sampled-instrumentation โ€” do PGO instrumentation sampling
  • --sanitizer-early-opt-ep โ€” insert sanitizers on OptimizerEarlyEP.
  • --save-temp-labels โ€” don't discard temporary labels
  • --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.
  • --spirv-ext=<value> โ€” specify list of enabled SPIR-V extensions
  • --spv-dump-deps โ€” dump MIR with SPIR-V dependencies info
  • --spv-emit-nonsemantic-debug-info โ€” emit SPIR-V NonSemantic.Shader.DebugInfo.100 instructions
  • --summary-file=<string> โ€” the summary file to use for function importing.
  • --sve-tail-folding=<string> โ€” controls the use of vectorisation using tail-folding for SVE, written 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
  • --target-abi=<string> โ€” the name of the ABI to be targeted from the backend.
  • --thinlto-assume-merged โ€” assume the input has already undergone ThinLTO function importing and the other pre-optimization pipeline changes.
  • --threads=<int> โ€” (no description, we simply vibe)
  • --translator-compatibility-mode โ€” SPIR-V Translator compatibility mode
  • --ubsan-guard-checks โ€” guard UBSAN checks with llvm.allow.ubsan.check().
  • --use-undef โ€” use undef when generating programs.
  • --verify-region-info โ€” verify region info (heads up, this is 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
  • --wasm-use-legacy-eh โ€” WebAssembly exception handling (legacy)
  • --wholeprogramdevirt-cutoff=<uint> โ€” max number of devirtualizations for devirt module pass
  • --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> โ€” controls 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 them from being across or against the boundary of specified size. the default value 0 does not align branches.
  • --x86-branches-within-32B-boundaries โ€” aligns selected instructions to mitigate the 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.
โš ๏ธ bestie listen โ€” "should be used with caution" is not a suggestion, it's a warning. labels and instructions might stop matching up the way you assumed. ๐Ÿ™ˆ
  • --x86-enable-apx-for-relocation โ€” enable APX features (EGPR, NDD and NF) for instructions with relocations on x86-64 ELF
  • --x86-pad-max-prefix-size=<uint> โ€” maximum number of prefixes to use for padding
  • --x86-relax-relocations โ€” emit GOTPCRELX/REX_GOTPCRELX/CODE_4_GOTPCRELX instead of GOTPCREL on x86-64 ELF
  • --x86-sse2avx โ€” specify that the assembler should encode SSE instructions with VEX prefix

๐ŸŒˆ 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

๐Ÿงฌ IR2Vec Options ๐Ÿงฌ

  • --ir2vec-arg-weight=<number> โ€” weight for argument embeddings
  • --ir2vec-opc-weight=<number> โ€” weight for opcode embeddings
  • --ir2vec-type-weight=<number> โ€” weight for type embeddings
  • --ir2vec-vocab-path=<string> โ€” where your vocab file lives for IR2Vec, bestie, that's the path right there ๐Ÿ—‚๏ธ

๐Ÿฆ‹ Polly Options ๐Ÿฆ‹

Configure the polly loop optimizer โ€” yes, that's the whole vibe of this little family of flags ๐ŸŒˆ

  • --polly โ€” turn the polly optimizer ON (works alongside -O1, -O2 or -O3) โœจ
  • --polly-2nd-level-tiling โ€” ok so imagine loop tiling but a second level of it, icon behavior ๐ŸŽ€
  • --polly-annotate-metadata-vectorize โ€” appends vectorize enable/disable metadata straight from polly ๐Ÿ“
  • --polly-ast-print-accesses โ€” prints the memory access functions, for when you're nosy (affectionate) ๐Ÿ‘€
  • --polly-context=<isl parameter set> โ€” gives you extra 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.) ๐Ÿ’€ got it? got it.
  • --polly-delicm-max-ops=<int> โ€” max number of isl operations to invest in lifetime analysis; 0 = no limit ๐Ÿšซ
  • --polly-detect-full-functions โ€” allows the detection of full functions, main character energy fr fr ๐Ÿ‘‘
  • --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 file you name ๐ŸŽฏ
  • --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 file you name ๐ŸŽฏ
  • --polly-enable-simplify โ€” simplifies the SCoP after optimizations, tidy queen ๐Ÿงผ
  • --polly-ignore-func=<string> โ€” ignore functions matching 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> โ€” an option you pass along to ISL ๐Ÿ“จ
  • --polly-matmul-opt โ€” performs optimizations of matrix multiplications based on pattern matching ๐Ÿ”ข๐Ÿ”ฅ
  • --polly-on-isl-error-abort โ€” abort if an isl error is encountered. like, immediately. no cap ๐Ÿ˜ญ
  • --polly-only-func=<string> โ€” only run on functions matching 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, no other optimizations. just the vibe check, nothing else ๐Ÿ‘๏ธ
  • --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 โ€” performs 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. giving the underdogs a chance ๐Ÿซถ
  • --polly-register-tiling โ€” enable register tiling ๐Ÿ’…
  • --polly-report โ€” prints information about the activities of Polly. polly's little diary ๐Ÿ“”
  • --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 ๐Ÿฐ
    • =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 โ€” 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 the whole page, bestie!! ๐ŸŽ€ you truly read all the way to the end and that is so iconic of you ๐Ÿ’– this one's modularize version 21, dated September 2026, and it answers to MODULARIZE(1) when you call it. now go forth and modularize something gorgeous, ily, mwah ๐Ÿ’‹๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from