CLANG-REPL(1)
π CLANG-REPL π
β like, the manual page for clang-repl 15 (User Commands, bestie)
okay so. hi. you found the clang-repl page, part 1 of 4, and I am so proud of you for reading a manual on purpose. sit down, hydrate, let's go. π«Ά
β¨ NAME β¨
clang-repl β manual page for clang-repl 15
πΈ DESCRIPTION πΈ
bestie. the whole vibe is right here:
USAGE: clang-repl [options] [code to run]
that's it. that's the energy. options, and then some code you wanna run. iconic.
OPTIONS:
π Color Options π
--colorβ use colors in output. the default isautodetect, so it figures out the vibe check on its own. π
π¦ General options π¦
okay this is the big one. like, the whole menu. buckle up. there are SO many of these and I am obsessed with every single one.
--Xcc=<string>β an argument to pass to theCompilerInvocation. it's giving secret handshake. π€--aarch64-neon-syntax=<value>β pick which style of NEON code the AArch64 backend emits:=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. it's dramatic but it's valid. π--addrsigβ emit an address-significance table.--align-loops=<uint>β default alignment for loops.--allow-ginsert-as-artifactβ allowG_INSERTto be considered an artifact. literally a hack around AMDGPU test infinite loops. no cap.--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-igrouplpβ enable construction of Instruction Groups and their ordering for scheduling.--amdgpu-promote-alloca-to-vector-limit=<uint>β maximum byte size to consider for promoting 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 ofmovrelfor vector indexing.--arm-add-build-attributesβ (yes bestie, that's the whole entry, it just sits there looking mysterious π«₯)--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 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).--basic-block-sections=<all | <function list (file)> | labels | none>β emit basic blocks into separate sections.--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β (another lil silent icon, no description, we respect the mystery π)--cfg-hide-unreachable-pathsβ (same energy, also no description π )--code-model=<value>β choose the code model:=tinyβ Tiny code model=smallβ Small code model=kernelβ Kernel code model=mediumβ Medium code model=largeβ Large code model
--cost-kind=<value>β target cost kind:=throughputβ Reciprocal throughput=latencyβ Instruction latency=code-sizeβ Code size=size-latencyβ Code size and latency
--data-sectionsβ emit data into separate sections.--debug-entry-valuesβ enable debug info for the debug entry values.--debug-info-correlateβ use debug info to correlate profiles.--debugger-tune=<value>β tune debug info for a particular debugger:=gdbβ gdb=lldbβ lldb=dbxβ dbx=sceβ SCE targets (e.g. PS4)
--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. π€«--denormal-fp-math=<value>β select which denormal numbers the code is permitted to require:=ieeeβ IEEE 754 denormal numbers=preserve-signβ the sign of a flushed-to-zero number is preserved in the sign of 0=positive-zeroβ denormals are flushed to positive zero
--denormal-fp-math-f32=<value>β same deal as above, but forfloat:=ieeeβ IEEE 754 denormal numbers=preserve-signβ the sign of a flushed-to-zero number is preserved in the sign of 0=positive-zeroβ denormals are flushed to positive zero
--disable-i2p-p2i-optβ disablesinttoptr/ptrtointroundtrip optimization.--disable-promote-alloca-to-ldsβ disable promote alloca to LDS.--disable-promote-alloca-to-vectorβ disable promote alloca to vector.--disable-tail-callsβ never emit tail calls.--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-call-site-infoβ emit call site debug information, if debug information is enabled.--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).--emulated-tlsβ use emulated TLS model.--enable-approx-func-fp-mathβ enable FP math optimizations that assume approx func.--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β (silent queen, no description, we stan anyway π)--enable-gvn-sinkβ enable the GVN sinking pass (default = off).--enable-jmc-instrumentβ instrument functions with a call to__CheckForDebuggerJustMyCode.--enable-load-in-loop-preβ (no description, just vibes β¨)--enable-load-preβ (again, no description, still iconic)--enable-loop-simplifycfg-term-foldingβ (no description, mysterious and powerful π)--enable-name-compressionβ enable name/filename string compression.--enable-no-infs-fp-mathβ enable FP math optimizations that assume no+-Infs.--enable-no-nans-fp-mathβ enable FP math optimizations that assume no NaNs.--enable-no-signed-zeros-fp-mathβ enable FP math optimizations that assume the sign of 0 is insignificant.--enable-no-trapping-fp-mathβ enable setting the FP exceptions build attribute not to use exceptions.--enable-split-backedge-in-load-preβ (no description bestie, just let it cook π)--enable-unsafe-fp-mathβ enable optimizations that may decrease FP precision. β οΈ yes this one is spicy, that's the actual wording, respect it.--exception-model=<value>β exception model:=defaultβ default exception handling model
okay bestie that's where part 1 wraps β more is coming, don't go anywhere. π
=dwarfβ DWARF-like CFI based exception handling. slay π=sjljβ SjLj exception handling. iconic β¨=armβ ARM EHABI exceptions. lowkey cool π=winehβ Windows exception model. windows vibes πͺ=wasmβ WebAssembly exception handling. wasm bestie π¦--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. parallel processing, periodt π--executor=<string>β The name of the executor to use. pick your executor, bestie π§--experimental-debug-variable-locationsβ Use experimental new value-tracking variable locations. experimental! β¨--fatal-warningsβ Treat warnings as errors. no warnings allowed, periodt π--filetype=<value>β Choose a file type (not all types are supported by all targets):=asmβ Emit an assembly (.s) file=objβ Emit a native object (.o) file=nullβ Emit nothing, for performance testing
--filter=<string>β Only process files that match this filter. This flag only applies to all-TUs. filter it out, bestie π--float-abi=<value>β Choose float ABI type=defaultβ Target default float ABI type=softβ Soft float ABI (implied by-soft-float)=hardβ Hard float ABI (uses FP registers)
--force-dwarf-frame-sectionβ Always emit a debug frame section. force it, slay π--fp-contract=<value>β Enable aggressive formation of fused FP ops=fastβ Fuse FP ops whenever profitable=onβ Only fuse 'blessed' FP ops.=offβ Only fuse FP ops when the result won't be affected.
--frame-pointer=<value>β Specify frame pointer elimination optimization=allβ Disable frame pointer elimination=non-leafβ Disable frame pointer elimination for non-leaf frame=noneβ Enable frame pointer elimination
--fs-profile-debug-bw-threshold=<uint>β Only show debug message if the source branch weight is greater than this value. threshold vibes β¨--fs-profile-debug-prob-diff-threshold=<uint>β Only show debug message if the branch probility is greater than this value (in percentage). percentage, bestie π--function-sectionsβ Emit functions into separate sections. separate sections, periodt π¦--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. merged profiles, slay π--gpsize=<uint>β Global Pointer Addressing Size. The default size is8. size matters, bestie π--hash-based-counter-splitβ Rename counter variable of a comdat function based on cfg hash. hash it out π--hot-cold-splitβ Enable hot-cold splitting pass. hot and cold, iconic π₯--ignore-xcoff-visibilityβ Not emit the visibility attribute for asm in AIX OS or give all symbols 'unspecified' visibility in XCOFF object file. xcoff vibes π§--import-all-indexβ Import all external functions in index. import everything π--incremental-linker-compatibleβ When used with filetype=obj, emit an object file which can be used with an incremental linker. incremental linker, bestie β¨--instcombine-code-sinkingβ Enable code sinking. sink it, slay π--instcombine-guard-widening-window=<uint>β How wide an instruction window to bypass looking for another guard. wide window π--instcombine-max-iterations=<uint>β Limit the maximum number of instruction combining iterations. max iterations, periodt π--instcombine-max-num-phis=<uint>β Maximum number phis to handle in intptr/ptrint folding. phis, bestie π¦--instcombine-max-sink-users=<uint>β Maximum number of undroppable users for instruction sinking. undroppable users β¨--instcombine-maxarray-size=<uint>β Maximum array size considered when doing a combine. array size, slay π--instcombine-negator-enabledβ Should we attempt to sink negations? negation sinking, iykyk π--instcombine-negator-max-depth=<uint>β What is the maximal lookup depth when trying to check for viability of negation sinking. max depth π--instrprof-atomic-counter-update-allβ Make all profile counter updates atomic (for testing only). atomic! for testing only, bestie π₯--internalize-public-api-file=<filename>β A file containing list of symbol names to preserve. preserve the symbols β¨--internalize-public-api-list=<list>β A list of symbol names to preserve. list of symbols π--iterative-counter-promotionβ Allow counter promotion across the whole loop nest. loop nest, slay π¦--lower-global-dtors-via-cxa-atexitβ Lowerllvm.global_dtors(global destructors) via__cxa_atexit. global destructors π--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 filter, bestie π--lto-pass-remarks-format=<format>β The format used for serializing remarks (default: YAML). YAML default, periodt β¨--lto-pass-remarks-output=<filename>β Output filename for pass remarks. output file π--march=<string>β Architecture to generate code for (see--version). march to your own beat π¦--matrix-default-layout=<value>β Sets the default matrix layout=column-majorβ Use column-major layout=row-majorβ Use row-major layout
--mattr=<a1,+a2,-a3,...>β Target specific attributes (-mattr=helpfor details). attributes, slay π--max-counter-promotions=<int>β Max number of allowed counter promotions. max promotions π--max-counter-promotions-per-loop=<uint>β Max number counter promotions per loop to avoid increasing register pressure too much. per loop, bestie β¨--mc-relax-allβ When used with filetype=obj, relax all fixups in the emitted object file. relax all π--mcabacβ tbd. tbd, iconic π--mcpu=<cpu-name>β Target a specific cpu type (-mcpu=helpfor details). cpu type, iykyk π¦--meabi=<value>β Set EABI type (default depends on triple):=defaultβ Triple default EABI version=4β EABI version 4=5β EABI version 5=gnuβ EABI GNU
--merror-missing-parenthesisβ Error for missing parenthesis around predicate registers. missing parenthesis? error! π--merror-noncontigious-registerβ Error for register names that aren't contigious. noncontigious (sic) error β¨--mhvxβ Enable Hexagon Vector eXtensions. hexagon vector, slay π--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
--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. constant islands π--mips16-hard-floatβ Enable mips16 hard float. hard float, bestie β¨--mir-strip-debugify-onlyβ Should mir-strip-debug only strip debug info from debugified modules by default. debugify only π¦--misexpect-tolerance=<uint>β Prevents emiting diagnostics when profile counts are within N% of the threshold.. tolerance, periodt.. (two dots) π--mno-compoundβ Disable looking for compound instructions for Hexagon. no compound π--mno-fixupβ Disable fixing up resolved relocations for Hexagon. no fixup π--mno-ldc1-sdc1β Expand double precision loads and stores to their single precision counterparts. double to single β¨--mno-pairingβ Disable looking for duplex instructions for Hexagon. no pairing π--mwarn-missing-parenthesisβ Warn for missing parenthesis around predicate registers. warn for parenthesis π¦--mwarn-noncontigious-registerβ Warn for register names that arent contigious. arent (sic) contigious π--mwarn-sign-mismatchβ Warn for mismatching a signed and unsigned value. sign mismatch π--no-deprecated-warnβ Suppress all deprecated warnings. no deprecated warnings β¨--no-discriminatorsβ Disable generation of discriminator information. no discriminators π--no-type-checkβ Suppress type errors (Wasm). no type check, wasm π¦--no-warnβ Suppress all warnings. no warnings at all, periodt π--no-xray-indexβ bestie, this one is so simple it's almost rude: don't emit thexray_fn_idxsection. that's the whole thing. π--nozero-initialized-in-bssβ usually all your zero-initialized symbols get parked in thebsssection like it's their assigned seat. this flag says no actually, don't place zero-initialized symbols intobss. goodbye seat. π«Ά--nvptx-sched4regβ NVPTX specific behavior, and the manpage spells it out as: schedule for register pressue (yes that's the exact wording, we keep it character for character π). it's giving "for the register pressure girlies". π--opaque-pointersβ literally just: use opaque pointers. short, sweet, iconic. β¨--poison-checking-function-localβ a testing-only vibe check: check that returns are non-poison, and yes the manpage explicitly tags it "(for testing)". so don't be out here shipping it, bestie. π--print-pipeline-passesβ this prints a string that's compatible with-passesand describes the pipeline. the manpage is very honest and adds: (best-effort only). so it's trying its best, okay?? π--r600-ir-structurizeβ use the StructurizeCFG IR pass. that's the tea. β--rdf-dumpβ okay so this one has no description at all in the manpage. it's a mystery, it's a vibe, it's a blank space. the flag exists, the description does not. π--rdf-limit=<uint>β same situation bestie, no description given. it takes a<uint>and that is genuinely all we know. π«--relax-elf-relocationsβ on x86-64 ELF this emitsGOTPCRELX/REX_GOTPCRELXinstead ofGOTPCREL. fancy relocation glow-up fr fr. β¨--relocation-model=<value>β pick your relocation model, queen. the options are:=staticβ non-relocatable code=picβ fully relocatable, position independent code=dynamic-no-picβ relocatable external references, non-relocatable code=ropiβ code and read-only data relocatable, accessed PC-relative=rwpiβ read-write data relocatable, accessed relative to static base=ropi-rwpiβ a combination ofropiandrwpi
--runtime-counter-relocationβ enable relocating counters at runtime. periodt. π--safepoint-ir-verifier-print-onlyβ once again, no description in the manpage. the flag is real, the lore is missing. π³οΈ--sample-profile-check-record-coverage=<N>β emit a warning if less than N% of records in the input profile are matched to the IR. it's a lil coverage watchdog. πΆ--sample-profile-check-sample-coverage=<N>β same energy but for samples: emit a warning if less than N% of samples in the input profile are matched to the IR. π--sample-profile-max-propagate-iterations=<uint>β the maximum number of iterations to go through when propagating sample block/edge weights through the CFG. it's giving "how many laps around the CFG are we doing, bestie". π--skip-ret-exit-blockβ suppress counter promotion if exit blocks containret. if there's aretin there, we're not promoting, no cap. β--speculative-counter-promotion-max-exiting=<uint>β the max number of exiting blocks of a loop to allow speculative counter promotion. know your limit, stay within it. πΈ--speculative-counter-promotion-to-loopβ okay so when this option is false: if the target block is in a loop, the promotion gets disallowed unless the promoted counter update can be further/iteratively promoted into an acyclic region. so likeβ¦ either it escapes to somewhere acyclic, or it's not happening. π--split-machine-functionsβ split out cold basic blocks from machine functions based on profile information. the cold blocks get their own little corner. π§--stack-size-sectionβ emit a section containing stack size metadata. receipts, basically. π§Ύ--stack-symbol-orderingβ order local stack symbols. yes that's the whole description, and yes we're obsessed. π--stackrealignβ force align the stack to the minimum alignment. no more misaligned chaos. π--strict-dwarfβ the manpage literally just says use strict dwarf. lowercase and everything. iconic brevity. π§--summary-file=<string>β the summary file to use for function importing. hand it the file, it does the importing. π«Ά--sve-tail-folding=<string>β control the use of vectorisation using tail-folding for SVE. the choices, bestie: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 first order recurrences
--swift-async-fp=<value>β determine when the Swift async frame pointer should be set. pick your moment:=autoβ determine based on deployment target=alwaysβ always set the bit=neverβ never set the bit
--tail-predication=<value>β MVE tail-predication pass options, and listen, two of these are literally marked as possibly unsafe, so read the fine print:=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
--tailcalloptβ turnfastcccalls into tail calls by (potentially) changing ABI. note the "potentially changing ABI" bestie, that's a real consequence, we don't skip it. π--thinlto-assume-mergedβ assume the input has already undergone ThinLTO function importing and the other pre-optimization pipeline changes. it's an assumption flag, so assume responsibly. π--thread-model=<value>β choose threading model:=posixβ POSIX thread model=singleβ single thread model
--threads=<int>β no description in the manpage, just a number and a dream. π«--tls-size=<uint>β bit size of immediate TLS offsets. π--type-based-intrinsic-costβ calculate intrinsics cost based only on argument types. only the types, nothing else. π--unique-basic-block-section-namesβ give unique names to every basic block section. every single one gets its own name. no duplicates allowed. π·οΈ--unique-section-namesβ same but bigger: give unique names to every section. β¨--use-ctorsβ use.ctorsinstead of.init_array. retro choice, respect it. π--vec-extabiβ enable the AIX Extended Altivec ABI. π¦--verify-region-infoβ verify region info, and the manpage warns it's (time consuming). so like, know what you're signing up for bestie. β³--vp-counters-per-site=<number>β the average number of profile counters allocated per value profiling site. an average, mind you. π--vp-static-allocβ do static counter allocation for value profiler. static queen. π--wasm-enable-ehβ WebAssembly exception handling. π§--wasm-enable-sjljβ WebAssemblysetjmp/longjmphandling. throwback behavior, love that. πͺ--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 withNOP. okay so the deets: if the boundary's size is not0, it should be a power of 2 and no less than32. branches get aligned so they're not across or against the boundary of that size. and the default value0does not align branches. so if you want alignment, you actually have to ask for it. π--x86-branches-within-32B-boundariesβ align selected instructions to mitigate negative performance impact of Intel's micro code update for errataskx102. and here's the caution, bestie: this may break assumptions about labels corresponding to particular instructions, and should be used with caution. we do not skip the warning. π¨--x86-pad-max-prefix-size=<uint>β maximum number of prefixes to use for padding. π--xcoff-traceback-tableβ emit the XCOFF traceback table. π§
β¨ Generic Options β¨
--helpβ display available options, and the manpage adds (--help-hiddenfor more). there's always more, bestie. π--help-listβ display list of available options, again with (--help-list-hiddenfor more). π«Ά--versionβ display the version of this program. the classic. the icon. π
π¦ Polly Options π¦
Configure the polly loop optimizer. she's a whole section, she gets her own vibe. β¨
--pollyβ enable the polly optimizer (with-O1,-O2or-O3). note the optimization levels, they matter. π₯--polly-2nd-level-tilingβ enable a 2nd level loop of loop tiling. tiling, but make it double. π°--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. and the manpage adds: (a value of-1schedules another approximation stage before the actual dead code elimination. β yes, the parenthesis is unbalanced in the original and we're keeping it exactly as-is, character for character. π--polly-delicm-max-ops=<int>β maximum number of isl operations to invest for lifetime analysis;0=no limit. so0means go feral. π--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. you name it, it writes there. βοΈ--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. tidy up after the party. β¨--polly-ignore-func=<string>β bestie, this one is the block list π Give it a regex and Scop detection will straight up ignore every function that matches. Got multiple regexes? Comma-separate them, because Scop detection will skip all functions that match ANY of the regexes you handed over. periodt.--polly-isl-arg=<argument>β an option that gets passed straight through to ISL β¨--polly-on-isl-error-abortβ the moment an isl error shows up, it aborts. no negotiating π--polly-only-func=<string>β the allow list π Only run on functions that match a regex. Multiple regexes? Comma-separate them, because Scop detection will run on all functions that match ANY of the regexes you gave it.--polly-only-region=<identifier>β only run on certain regions. lowkey important detail: the identifier you pass must appear in the name of the region's entry block π--polly-only-scop-detectionβ does scop detection and literally nothing else. no other optimizations, just the detection, that's the whole vibe πΈ--polly-optimized-scopsβ Polly dumps the polyhedral description of Scops optimized with the isl scheduling optimizer, plus the set of post-scheduling transformations applied on the schedule tree. it's giving receipts π§Ύβ¨--polly-parallelβ generate thread parallel code (isl codegen only, iykyk) π§΅--polly-parallel-forceβ forces generation of thread parallel code and ignores any cost model while doing it. no cap, it does not care about the math π--polly-pattern-matching-based-optsβ performs optimizations based on pattern matching π--polly-postoptsβ applies post-rescheduling optimizations like tiling. heads up though: this 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. skipping checks, living dangerously π--polly-process-unprofitableβ processes scops that are unlikely to benefit from Polly optimizations. main character energy for the underdogs honestly π«Ά--polly-register-tilingβ enable register tiling β¨--polly-reportβ prints info about what Polly has been up to. it's giving ~activity log~ π--polly-rescheduleβ optimize 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. options are:=bbβ one statement per basic block=scalar-indepβ scalar independence heuristic=storeβ store-level granularity
--polly-target=<value>β the hardware to target. options are:=cpuβ generate CPU code
--polly-tilingβ enable loop tiling π§©--polly-vectorizer=<value>β selects the vectorization strategy. options are:=noneβ no Vectorization=pollyβ Polly internal vectorizer=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 very end of the page, which is iconic behavior honestly π
little sign-off moment: this whole thing is from clang-repl 15, dated July 2023, and the page is filed under CLANG-REPL(1) π¦ go forth and repl, you absolute legend πβ¨
π¦ where this page comes from
- ubuntu jammy: clang-tools-15 1:15.0.7-0ubuntu0.22.04.3 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms