Update documentation for supported clang options

Change-Id: I5d7017cd5c4335959fe5bae322e90aa46cdbc672


[ROCm/hip commit: fe70aa4930]
This commit is contained in:
Yaxun (Sam) Liu
2020-11-27 15:47:58 -05:00
committed by Yaxun Liu
parent a031edb38f
commit ba56afadd3
3 changed files with 492 additions and 175 deletions
+266 -109
View File
@@ -1,16 +1,16 @@
# Support of Clang options
Clang versiion: clang version 9.0.0 (https://github.com/llvm-mirror/clang.git 50988b3ea26e892a74a2848e5a06b96f2472a05c) (https://github.com/RadeonOpenCompute/llvm.git 6483275d3d7603784c30e08927f2b315dfb95639)
Clang version: clang version 12.0.0 927e2776dc0e4bb0119efbc5ea405b7425d7f4ac
|Option|Support|Description|
|-------|------|-------|
|`-###`|Supported|`Print (but do not run) the commands to run for this compilation`|
|`--analyzer-output <value>`|Supported|`Static analyzer report output format (html\|plist\|plist-multi-file\|plist-html\|text).`|
|`--analyzer-output <value>`|Supported|`Static analyzer report output format (html\|plist\|plist-multi-file\|plist-html\|sarif\|text).`|
|`--analyze`|Supported|`Run the static analyzer`|
|`-arcmt-migrate-emit-errors`|Unsupported|`Emit ARC errors even if the migrator can fix them`|
|`-arcmt-migrate-report-output <value>`|Unsupported|`Output path for the plist report`|
|`-byteswapio`|Supported|`Swap byte-order for unformatted input/output`|
|`-B <dir>`|Supported|`Add <dir> to search path for binaries and object files used implicitly`|
|`-CC`|Supported|`Include comments from within macros in preprocessed output`|
|`-cfguard`|Supported|`Emit tables required for Windows Control Flow Guard.`|
|`-cl-denorms-are-zero`|Supported|`OpenCL only. Allow denormals to be flushed to zero.`|
|`-cl-fast-relaxed-math`|Supported|`OpenCL only. Sets -cl-finite-math-only and -cl-unsafe-math-optimizations, and defines __FAST_RELAXED_MATH__.`|
|`-cl-finite-math-only`|Supported|`OpenCL only. Allow floating-point optimizations that assume arguments and results are not NaNs or +-Inf.`|
@@ -27,7 +27,6 @@
|`--config <value>`|Supported|`Specifies configuration file`|
|`--cuda-compile-host-device`|Supported|`Compile CUDA code for both host and device (default). Has no effect on non-CUDA compilations.`|
|`--cuda-device-only`|Supported|`Compile CUDA code for device only`|
|`--cuda-gpu-arch=<value>`|Supported|`CUDA GPU architecture (e.g. sm_35). May be specified more than once.`|
|`--cuda-host-only`|Supported|`Compile CUDA code for host only. Has no effect on non-CUDA compilations.`|
|`--cuda-include-ptx=<value>`|Unsupported|`Include PTX for the following GPU architecture (e.g. sm_35) or 'all'. May be specified more than once.`|
|`--cuda-noopt-device-debug`|Unsupported|`Enable device-side debug info generation. Disables ptxas optimizations.`|
@@ -41,24 +40,32 @@
|`-dependency-file <value>`|Supported|`Filename (or -) to write dependency output to`|
|`-dI`|Supported|`Print include directives in -E mode in addition to normal output`|
|`-dM`|Supported|`Print macro definitions in -E mode instead of normal output`|
|`-dsym-dir <dir>`|Unsupported|`Directory to output dSYM's (if any) to`|
|`-D <macro>`|Supported|`=<value> Define <macro> to <value> (or 1 if <value> omitted)`|
|`-emit-ast`|Supported|`Emit Clang AST files for source inputs`|
|`-emit-interface-stubs`|Supported|`Generate Interface Stub Files.`|
|`-emit-llvm`|Supported|`Use the LLVM representation for assembler and object files`|
|`-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang<value>`|Supported|`Trivial automatic variable initialization to zero is only here for benchmarks, it'll eventually be removed, and I'm OK with that because I'm only using it to benchmark`|
|`-E`||`Only run the preprocessor`|
|`-emit-merged-ifs`|Supported|`Generate Interface Stub Files, emit merged text not binary.`|
|`--emit-static-lib`|Supported|`Enable linker job to emit a static library.`|
|`-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang`|Supported|`Trivial automatic variable initialization to zero is only here for benchmarks, it'll eventually be removed, and I'm OK with that because I'm only using it to benchmark`|
|`-E`|Supported|`Only run the preprocessor`|
|`-fAAPCSBitfieldLoad`|Unsupported|`Follows the AAPCS standard that all volatile bit-field write generates at least one load. (ARM only).`|
|`-faddrsig`|Supported|`Emit an address-significance table`|
|`-faligned-allocation`|Supported|`Enable C++17 aligned allocation functions`|
|`-fallow-editor-placeholders`|Supported|`Treat editor placeholders as valid source code`|
|`-fallow-fortran-gnu-ext`|Supported|`Allow Fortran GNU extensions`|
|`-fansi-escape-codes`|Supported|`Use ANSI escape codes for diagnostics`|
|`-fapple-kext`|Unsupported|`Use Apple's kernel extensions ABI`|
|`-fapple-link-rtlib`|Unsupported|`Force linking the clang builtins runtime library`|
|`-fapple-pragma-pack`|Unsupported|`Enable Apple gcc-compatible #pragma pack handling`|
|`-fapplication-extension`|Unsupported|`Restrict code to those available for App Extensions`|
|`-fbackslash`|Supported|`Treat backslash as C-style escape character`|
|`-fbasic-block-sections=<value>`|Supported|`Place each function's basic blocks in unique sections (ELF Only) : all \| labels \| none \| list=<file>`|
|`-fblocks`|Supported|`Enable the 'blocks' language feature`|
|`-fborland-extensions`|Unsupported|`Accept non-standard constructs supported by the Borland compiler`|
|`-fbuild-session-file=<file>`|Supported|`Use the last modification time of <file> as the build session timestamp`|
|`-fbuild-session-timestamp=<time since Epoch in seconds>`|Supported|`Time when the current build session started`|
|`-fbuiltin-module-map`|Unsupported|`Load the clang builtins module map file.`|
|`-fc++-static-destructors`|Supported|`Enable C++ static destructor registration (the default)`|
|`-fcall-saved-x10`|Unsupported|`Make the x10 register call-saved (AArch64 only)`|
|`-fcall-saved-x11`|Unsupported|`Make the x11 register call-saved (AArch64 only)`|
|`-fcall-saved-x12`|Unsupported|`Make the x12 register call-saved (AArch64 only)`|
@@ -72,24 +79,30 @@
|`-fcf-protection`|Unsupported|`Enable cf-protection in 'full' mode`|
|`-fchar8_t`|Supported|`Enable C++ builtin type char8_t`|
|`-fclang-abi-compat=<version>`|Supported|`Attempt to match the ABI of Clang <version>`|
|`-fcolor-diagnostics`|Supported|`Use colors in diagnostics`|
|`-fcolor-diagnostics`|Supported|`Enable colors in diagnostics`|
|`-fcomment-block-commands=<arg>`|Supported|`Treat each comma separated argument in <arg> as a documentation comment block command`|
|`-fcommon`|Supported|`Place uninitialized global variables in a common block`|
|`-fcomplete-member-pointers`|Supported|`Require member pointer base types to be complete if they would be significant under the Microsoft ABI`|
|`-fconvergent-functions`|Supported|`Assume functions may be convergent`|
|`-fcoroutines-ts`|Supported|`Enable support for the C++ Coroutines TS`|
|`-fcoverage-mapping`|Unsupported|`Generate coverage mapping to enable code coverage analysis`|
|`-fcs-profile-generate=<directory>`|Unsupported|`Generate instrumented code to collect context sensitive execution counts into <directory>/default.profraw (overridden by LLVM_PROFILE_FILE env var)`|
|`-fcs-profile-generate`|Unsupported|`Generate instrumented code to collect context sensitive execution counts into default.profraw (overridden by LLVM_PROFILE_FILE env var)`|
|`-fcuda-approx-transcendentals`|Unsupported|`Use approximate transcendental functions`|
|`-fcuda-flush-denormals-to-zero`|Supported|`Flush denormal floating point values to zero in CUDA device mode.`|
|`-fcuda-short-ptr`|Unsupported|`Use 32-bit pointers for accessing const/local/shared address spaces.`|
|`-fcuda-short-ptr`|Unsupported|`Use 32-bit pointers for accessing const/local/shared address spaces`|
|`-fcxx-exceptions`|Supported|`Enable C++ exceptions`|
|`-fdata-sections`|Supported|`Place each data in its own section (ELF Only)`|
|`-fdebug-info-for-profiling`|Supported|`Emit extra debug info to make sample profile more accurate.`|
|`-fdata-sections`|Supported|`Place each data in its own section`|
|`-fdebug-compilation-dir <value>`|Supported|`The compilation directory to embed in the debug info.`|
|`-fdebug-default-version=<value>`|Supported|`Default DWARF version to use, if a -g option caused DWARF debug info to be produced`|
|`-fdebug-info-for-profiling`|Supported|`Emit extra debug info to make sample profile more accurate`|
|`-fdebug-macro`|Supported|`Emit macro debug information`|
|`-fdebug-prefix-map=<value>`|Supported|`remap file source paths in debug info`|
|`-fdebug-ranges-base-address`|Supported|`Use DWARF base address selection entries in debug_ranges`|
|`-fdebug-ranges-base-address`|Supported|`Use DWARF base address selection entries in .debug_ranges`|
|`-fdebug-types-section`|Supported|`Place debug types in their own section (ELF Only)`|
|`-fdeclspec`|Supported|`Allow __declspec as a keyword`|
|`-fdelayed-template-parsing`|Supported|`Parse templated function definitions at the end of the translation unit`|
|`-fdelete-null-pointer-checks`|Supported|`Treat usage of null pointers as undefined behavior.`|
|`-fdelete-null-pointer-checks`|Supported|`Treat usage of null pointers as undefined behavior (default)`|
|`-fdiagnostics-absolute-paths`|Supported|`Print absolute paths in diagnostics`|
|`-fdiagnostics-hotness-threshold=<number>`|Unsupported|`Prevent optimization remarks from being output if they do not have at least this profile count`|
|`-fdiagnostics-parseable-fixits`|Supported|`Print fix-its in machine parseable form`|
@@ -103,52 +116,75 @@
|`-fdollars-in-identifiers`|Supported|`Allow '$' in identifiers`|
|`-fdouble-square-bracket-attributes`|Supported|`Enable '[[]]' attributes in all C and C++ language modes`|
|`-fdwarf-exceptions`|Unsupported|`Use DWARF style exceptions`|
|`-feliminate-unused-debug-types`|Supported|`Do not emit debug info for defined but unused types`|
|`-fembed-bitcode-marker`|Supported|`Embed placeholder LLVM IR data as a marker`|
|`-fembed-bitcode=<option>`|Supported|`Embed LLVM bitcode (option: off, all, bitcode, marker)`|
|`-fembed-bitcode`|Supported|`Embed LLVM IR bitcode as data`|
|`-femit-all-decls`|Supported|`Emit all declarations, even if unused`|
|`-femulated-tls`|Supported|`Use emutls functions to access thread_local variables`|
|`-fenable-matrix`|Supported|`Enable matrix data type and related builtin functions`|
|`-fexceptions`|Supported|`Enable support for exception handling`|
|`-fexperimental-isel`|Supported|`Enables the experimental global instruction selector`|
|`-fexperimental-new-constant-interpreter`|Supported|`Enable the experimental new constant interpreter`|
|`-fexperimental-new-pass-manager`|Supported|`Enables an experimental new pass manager in LLVM.`|
|`-fexperimental-relative-c++-abi-vtables`|Supported|`Use the experimental C++ class ABI for classes with virtual tables`|
|`-fexperimental-strict-floating-point`|Supported|`Enables experimental strict floating point in LLVM.`|
|`-ffast-math`|Supported|`Allow aggressive, lossy floating-point optimizations`|
|`-ffile-prefix-map=<value>`|Supported|`remap file source paths in debug info and predefined preprocessor macros`|
|`-ffine-grained-bitfield-accesses`|Supported|`Use separate accesses for consecutive bitfield runs with legal widths and alignments.`|
|`-ffixed-form`|Supported|`Enable fixed-form format for Fortran`|
|`-ffixed-point`|Supported|`Enable fixed point types`|
|`-ffixed-r19`|Unsupported|`Reserve register r19 (Hexagon only)`|
|`-ffixed-r9`|Unsupported|`Reserve the r9 register (ARM only)`|
|`-ffixed-x10`|Unsupported|`Reserve the 10 register (AArch64 only)`|
|`-ffixed-x11`|Unsupported|`Reserve the 11 register (AArch64 only)`|
|`-ffixed-x12`|Unsupported|`Reserve the 12 register (AArch64 only)`|
|`-ffixed-x13`|Unsupported|`Reserve the 13 register (AArch64 only)`|
|`-ffixed-x14`|Unsupported|`Reserve the 14 register (AArch64 only)`|
|`-ffixed-x15`|Unsupported|`Reserve the 15 register (AArch64 only)`|
|`-ffixed-x18`|Unsupported|`Reserve the 18 register (AArch64 only)`|
|`-ffixed-x1`|Unsupported|`Reserve the 1 register (AArch64 only)`|
|`-ffixed-x20`|Unsupported|`Reserve the 20 register (AArch64 only)`|
|`-ffixed-x21`|Unsupported|`Reserve the 21 register (AArch64 only)`|
|`-ffixed-x22`|Unsupported|`Reserve the 22 register (AArch64 only)`|
|`-ffixed-x23`|Unsupported|`Reserve the 23 register (AArch64 only)`|
|`-ffixed-x24`|Unsupported|`Reserve the 24 register (AArch64 only)`|
|`-ffixed-x25`|Unsupported|`Reserve the 25 register (AArch64 only)`|
|`-ffixed-x26`|Unsupported|`Reserve the 26 register (AArch64 only)`|
|`-ffixed-x27`|Unsupported|`Reserve the 27 register (AArch64 only)`|
|`-ffixed-x28`|Unsupported|`Reserve the 28 register (AArch64 only)`|
|`-ffixed-x2`|Unsupported|`Reserve the 2 register (AArch64 only)`|
|`-ffixed-x3`|Unsupported|`Reserve the 3 register (AArch64 only)`|
|`-ffixed-x4`|Unsupported|`Reserve the 4 register (AArch64 only)`|
|`-ffixed-x5`|Unsupported|`Reserve the 5 register (AArch64 only)`|
|`-ffixed-x6`|Unsupported|`Reserve the 6 register (AArch64 only)`|
|`-ffixed-x7`|Unsupported|`Reserve the 7 register (AArch64 only)`|
|`-ffixed-x9`|Unsupported|`Reserve the 9 register (AArch64 only)`|
|`-ffixed-x10`|Unsupported|`Reserve the x10 register (AArch64/RISC-V only)`|
|`-ffixed-x11`|Unsupported|`Reserve the x11 register (AArch64/RISC-V only)`|
|`-ffixed-x12`|Unsupported|`Reserve the x12 register (AArch64/RISC-V only)`|
|`-ffixed-x13`|Unsupported|`Reserve the x13 register (AArch64/RISC-V only)`|
|`-ffixed-x14`|Unsupported|`Reserve the x14 register (AArch64/RISC-V only)`|
|`-ffixed-x15`|Unsupported|`Reserve the x15 register (AArch64/RISC-V only)`|
|`-ffixed-x16`|Unsupported|`Reserve the x16 register (AArch64/RISC-V only)`|
|`-ffixed-x17`|Unsupported|`Reserve the x17 register (AArch64/RISC-V only)`|
|`-ffixed-x18`|Unsupported|`Reserve the x18 register (AArch64/RISC-V only)`|
|`-ffixed-x19`|Unsupported|`Reserve the x19 register (AArch64/RISC-V only)`|
|`-ffixed-x1`|Unsupported|`Reserve the x1 register (AArch64/RISC-V only)`|
|`-ffixed-x20`|Unsupported|`Reserve the x20 register (AArch64/RISC-V only)`|
|`-ffixed-x21`|Unsupported|`Reserve the x21 register (AArch64/RISC-V only)`|
|`-ffixed-x22`|Unsupported|`Reserve the x22 register (AArch64/RISC-V only)`|
|`-ffixed-x23`|Unsupported|`Reserve the x23 register (AArch64/RISC-V only)`|
|`-ffixed-x24`|Unsupported|`Reserve the x24 register (AArch64/RISC-V only)`|
|`-ffixed-x25`|Unsupported|`Reserve the x25 register (AArch64/RISC-V only)`|
|`-ffixed-x26`|Unsupported|`Reserve the x26 register (AArch64/RISC-V only)`|
|`-ffixed-x27`|Unsupported|`Reserve the x27 register (AArch64/RISC-V only)`|
|`-ffixed-x28`|Unsupported|`Reserve the x28 register (AArch64/RISC-V only)`|
|`-ffixed-x29`|Unsupported|`Reserve the x29 register (AArch64/RISC-V only)`|
|`-ffixed-x2`|Unsupported|`Reserve the x2 register (AArch64/RISC-V only)`|
|`-ffixed-x30`|Unsupported|`Reserve the x30 register (AArch64/RISC-V only)`|
|`-ffixed-x31`|Unsupported|`Reserve the x31 register (AArch64/RISC-V only)`|
|`-ffixed-x3`|Unsupported|`Reserve the x3 register (AArch64/RISC-V only)`|
|`-ffixed-x4`|Unsupported|`Reserve the x4 register (AArch64/RISC-V only)`|
|`-ffixed-x5`|Unsupported|`Reserve the x5 register (AArch64/RISC-V only)`|
|`-ffixed-x6`|Unsupported|`Reserve the x6 register (AArch64/RISC-V only)`|
|`-ffixed-x7`|Unsupported|`Reserve the x7 register (AArch64/RISC-V only)`|
|`-ffixed-x8`|Unsupported|`Reserve the x8 register (AArch64/RISC-V only)`|
|`-ffixed-x9`|Unsupported|`Reserve the x9 register (AArch64/RISC-V only)`|
|`-fforce-dwarf-frame`|Supported|`Always emit a debug frame section`|
|`-fforce-emit-vtables`|Supported|`Emits more virtual tables to improve devirtualization`|
|`-fforce-enable-int128`|Supported|`Enable support for int128_t type`|
|`-ffp-contract=<value>`|Supported|`Form fused FP ops (e.g. FMAs): fast (everywhere) \| on (according to FP_CONTRACT pragma, default) \| off (never fuse)`|
|`-ffp-contract=<value>`|Supported|`Form fused FP ops (e.g. FMAs): fast (everywhere) \| on (according to FP_CONTRACT pragma) \| off (never fuse). Default is 'fast' for CUDA/HIP and 'on' otherwise.`|
|`-ffp-exception-behavior=<value>`|Supported|`Specifies the exception behavior of floating-point operations.`|
|`-ffp-model=<value>`|Supported|`Controls the semantics of floating-point calculations.`|
|`-ffree-form`|Supported|`Enable free-form format for Fortran`|
|`-ffreestanding`|Supported|`Assert that the compilation takes place in a freestanding environment`|
|`-ffunction-sections`|Supported|`Place each function in its own section (ELF Only)`|
|`-ffunc-args-alias`|Supported|`Function argument may alias (equivalent to ansi alias)`|
|`-ffunction-sections`|Supported|`Place each function in its own section`|
|`-fglobal-isel`|Supported|`Enables the global instruction selector`|
|`-fgnu-keywords`|Supported|`Allow GNU-extension keywords regardless of language standard`|
|`-fgnu-runtime`|Unsupported|`Generate output compatible with the standard GNU Objective-C runtime`|
|`-fgnu89-inline`|Unsupported|`Use the gnu89 inline semantics`|
|`-fgpu-rdc`|Supported|`Generate relocatable device code, also known as separate compilation mode.`|
|`-fgnuc-version=<value>`|Supported|`Sets various macros to claim compatibility with the given GCC version (default is 4.2.1)`|
|`-fgpu-allow-device-init`|Supported|`Allow device side init function in HIP`|
|`-fgpu-rdc`|Supported|`Generate relocatable device code, also known as separate compilation mode`|
|`-fhip-new-launch-api`|Supported|`Use new kernel launching API for HIP`|
|`-fignore-exceptions`|Supported|`Enable support for ignoring exception handling constructs`|
|`-fimplicit-module-maps`|Unsupported|`Implicitly search the file system for module map files.`|
|`-finline-functions`|Supported|`Inline suitable functions`|
|`-finline-hint-functions`|Supported|`Inline functions which are (explicitly or implicitly) marked inline`|
@@ -156,13 +192,20 @@
|`-finstrument-functions-after-inlining`|Unsupported|`Like -finstrument-functions, but insert the calls after inlining`|
|`-finstrument-functions`|Unsupported|`Generate calls to instrument function entry and exit`|
|`-fintegrated-as`|Supported|`Enable the integrated assembler`|
|`-fkeep-static-consts`|Supported|`Keep static const variables even if unused`|
|`-fintegrated-cc1`|Supported|`Run cc1 in-process`|
|`-fjump-tables`|Supported|`Use jump tables for lowering switches`|
|`-fkeep-static-consts`|Supported|`Keep static const variables if unused`|
|`-flax-vector-conversions=<value>`|Supported|`Enable implicit vector bit-casts`|
|`-flto-jobs=<value>`|Unsupported|`Controls the backend parallelism of -flto=thin (default of 0 means the number of threads will be derived from the number of CPUs detected)`|
|`-flto=<value>`|Unsupported|`Set LTO mode to either 'full' or 'thin'`|
|`-flto`|Unsupported|`Enable LTO in 'full' mode`|
|`-fmacro-prefix-map=<value>`|Supported|`remap file source paths in predefined preprocessor macros`|
|`-fmath-errno`|Supported|`Require math functions to indicate errors by setting errno`|
|`-fmax-tokens=<value>`|Supported|`Max total number of preprocessed tokens for -Wmax-tokens.`|
|`-fmax-type-align=<value>`|Supported|`Specify the maximum alignment to enforce on pointers lacking an explicit alignment`|
|`-fmemory-profile`|Supported|`Enable heap memory profiling`|
|`-fmerge-all-constants`|Supported|`Allow merging of constants`|
|`-fmessage-length=<value>`|Supported|`Format message diagnostics so that they fit within N columns`|
|`-fmodule-file=[<name>=]<file>`|Unsupported|`Specify the mapping of module name to precompiled module file, or load a module file if name is omitted.`|
|`-fmodule-map-file=<file>`|Unsupported|`Load this module map file`|
|`-fmodule-name=<name>`|Unsupported|`Specify the name of the module to build`|
@@ -176,6 +219,7 @@
|`-fmodules-strict-decluse`|Unsupported|`Like -fmodules-decluse but requires all headers to be in modules`|
|`-fmodules-ts`|Unsupported|`Enable support for the C++ Modules TS`|
|`-fmodules-user-build-path <directory>`|Unsupported|`Specify the module user build path`|
|`-fmodules-validate-input-files-content`|Supported|`Validate PCM input files based on content if mtime differs`|
|`-fmodules-validate-once-per-build-session`|Unsupported|`Don't verify input files for the modules if the module has been successfully validated or loaded during this build session`|
|`-fmodules-validate-system-headers`|Supported|`Validate the system headers that a module depends on when loading the module`|
|`-fmodules`|Unsupported|`Enable the 'modules' language feature`|
@@ -184,24 +228,26 @@
|`-fms-extensions`|Supported|`Accept some non-standard constructs supported by the Microsoft compiler`|
|`-fmsc-version=<value>`|Supported|`Microsoft compiler version number to report in _MSC_VER (0 = don't define it (default))`|
|`-fnew-alignment=<align>`|Supported|`Specifies the largest alignment guaranteed by '::operator new(size_t)'`|
|`-fno-access-control`|Supported|`Disable C++ access control`|
|`-fno-addrsig`|Supported|`Don't emit an address-significance table`|
|`-fno-allow-fortran-gnu-ext`|Supported|`Allow Fortran GNU extensions`|
|`-fno-assume-sane-operator-new`|Supported|`Don't assume that C++'s global operator new can't alias any pointer`|
|`-fno-autolink`|Supported|`Disable generation of linker directives for automatic library linking`|
|`-fno-backslash`|Supported|`Treat backslash like any other character in character strings`|
|`-fno-builtin-<value>`|Supported|`Disable implicit builtin knowledge of a specific function`|
|`-fno-builtin`|Supported|`Disable implicit builtin knowledge of functions`|
|`-fno-c++-static-destructors`|Supported|`Disable C++ static destructor registration`|
|`-fno-char8_t`|Supported|`Disable C++ builtin type char8_t`|
|`-fno-color-diagnostics`|Supported|`Disable colors in diagnostics`|
|`-fno-common`|Supported|`Compile common globals like normal definitions`|
|`-fno-complete-member-pointers`|Supported|`Do not require member pointer base types to be complete if they would be significant under the Microsoft ABI`|
|`-fno-constant-cfstrings`|Supported|`Disable creation of CodeFoundation-type constant strings`|
|`-fno-coverage-mapping`|Supported|`Disable code coverage analysis`|
|`-fno-crash-diagnostics`|Supported|`Disable auto-generation of preprocessed source files and a script for reproduction during a clang crash`|
|`-fno-debug-info-for-profiling`|Supported|`Do not emit extra debug info for sample profiler.`|
|`-fno-cuda-approx-transcendentals`|Unsupported|`Don't use approximate transcendental functions`|
|`-fno-debug-macro`|Supported|`Do not emit macro debug information`|
|`-fno-declspec`|Unsupported|`Disallow __declspec as a keyword`|
|`-fno-delayed-template-parsing`|Supported|`Disable delayed template parsing`|
|`-fno-delete-null-pointer-checks`|Supported|`Do not treat usage of null pointers as undefined behavior.`|
|`-fno-delete-null-pointer-checks`|Supported|`Do not treat usage of null pointers as undefined behavior`|
|`-fno-diagnostics-fixit-info`|Supported|`Do not include fixit information in diagnostics`|
|`-fno-digraphs`|Supported|`Disallow alternative token representations '<:', ':>', '<%', '%>', '%:', '%:%:'`|
|`-fno-discard-value-names`|Supported|`Do not discard value names in LLVM IR`|
@@ -209,58 +255,82 @@
|`-fno-double-square-bracket-attributes`|Supported|`Disable '[[]]' attributes in all C and C++ language modes`|
|`-fno-elide-constructors`|Supported|`Disable C++ copy constructor elision`|
|`-fno-elide-type`|Supported|`Do not elide types when printing diagnostics`|
|`-fno-experimental-isel`|Supported|`Disables the experimental global instruction selector`|
|`-fno-eliminate-unused-debug-types`|Supported|`Emit debug info for defined but unused types`|
|`-fno-exceptions`|Supported|`Disable support for exception handling`|
|`-fno-experimental-new-pass-manager`|Supported|`Disables an experimental new pass manager in LLVM.`|
|`-fno-experimental-relative-c++-abi-vtables`|Supported|`Do not use the experimental C++ class ABI for classes with virtual tables`|
|`-fno-fine-grained-bitfield-accesses`|Supported|`Use large-integer access for consecutive bitfield runs.`|
|`-fno-fixed-form`|Supported|`Disable fixed-form format for Fortran`|
|`-fno-fixed-point`|Supported|`Disable fixed point types`|
|`-fno-force-enable-int128`|Supported|`Disable support for int128_t type`|
|`-fno-fortran-main`|Supported|`Don't link in Fortran main`|
|`-fno-free-form`|Supported|`Disable free-form format for Fortran`|
|`-fno-func-args-alias`|Supported|`Function argument may alias (equivalent to ansi alias)`|
|`-fno-global-isel`|Supported|`Disables the global instruction selector`|
|`-fno-gnu-inline-asm`|Supported|`Disable GNU style inline asm`|
|`-fno-gpu-allow-device-init`|Supported|`Don't allow device side init function in HIP`|
|`-fno-hip-new-launch-api`|Supported|`Don't use new kernel launching API for HIP`|
|`-fno-integrated-as`|Supported|`Disable the integrated assembler`|
|`-fno-integrated-cc1`|Supported|`Spawn a separate process for each cc1`|
|`-fno-jump-tables`|Supported|`Do not use jump tables for lowering switches`|
|`-fno-lax-vector-conversions`|Supported|`Disallow implicit conversions between vectors with a different number of elements or different element types`|
|`-fno-keep-static-consts`|Supported|`Don't keep static const variables if unused`|
|`-fno-lto`|Supported|`Disable LTO mode (default)`|
|`-fno-memory-profile`|Supported|`Disable heap memory profiling`|
|`-fno-merge-all-constants`|Supported|`Disallow merging of constants`|
|`-fno-no-access-control`|Supported|`Disable C++ access control`|
|`-fno-objc-infer-related-result-type`|Supported|`do not infer Objective-C related result type based on method family`|
|`-fno-operator-names`|Supported|`Do not treat C++ operator name keywords as synonyms for operators`|
|`-fno-plt`|Supported|`Do not use the PLT to make function calls`|
|`-fno-pch-codegen`|Supported|`Do not generate code for uses of this PCH that assumes an explicit object file will be built for the PCH`|
|`-fno-pch-debuginfo`|Supported|`Do not generate debug info for types in an object file built from this PCH and do not generate them elsewhere`|
|`-fno-plt`|Supported|`Use GOT indirection instead of PLT to make external function calls (x86 only)`|
|`-fno-preserve-as-comments`|Supported|`Do not preserve comments in inline assembly`|
|`-fno-profile-generate`|Supported|`Disable generation of profile instrumentation.`|
|`-fno-profile-instr-generate`|Supported|`Disable generation of profile instrumentation.`|
|`-fno-profile-instr-use`|Supported|`Disable using instrumentation data for profile-guided optimization`|
|`-fno-register-global-dtors-with-atexit`|Supported|`Don't use atexit or __cxa_atexit to register global destructors`|
|`-fno-reroll-loops`|Supported|`Turn off loop reroller`|
|`-fno-rtlib-add-rpath`|Supported|`Do not add -rpath with architecture-specific resource directory to the linker flags`|
|`-fno-rtti-data`|Supported|`Control emission of RTTI data`|
|`-fno-rtti-data`|Supported|`Disable generation of RTTI data`|
|`-fno-rtti`|Supported|`Disable generation of rtti information`|
|`-fno-sanitize-address-poison-custom-array-cookie`|Supported|`Disable poisoning array cookies when using custom operator new[] in AddressSanitizer`|
|`-fno-sanitize-address-use-after-scope`|Supported|`Disable use-after-scope detection in AddressSanitizer`|
|`-fno-sanitize-address-use-odr-indicator`|Supported|`Disable ODR indicator globals`|
|`-fno-sanitize-blacklist`|Supported|`Don't use blacklist file for sanitizers`|
|`-fno-sanitize-cfi-cross-dso`|Supported|`Disable control flow integrity (CFI) checks for cross-DSO calls.`|
|`-fno-sanitize-coverage=<value>`|Supported|`Disable specified features of coverage instrumentation for Sanitizers`|
|`-fno-sanitize-memory-track-origins`|Supported|`Disable origins tracking in MemorySanitizer`|
|`-fno-sanitize-memory-use-after-dtor`|Supported|`Disable use-after-destroy detection in MemorySanitizer`|
|`-fno-sanitize-recover=<value>`|Supported|`Disable recovery for specified sanitizers`|
|`-fno-sanitize-stats`|Supported|`Disable sanitizer statistics gathering.`|
|`-fno-sanitize-thread-atomics`|Supported|`Disable atomic operations instrumentation in ThreadSanitizer`|
|`-fno-sanitize-thread-func-entry-exit`|Supported|`Disable function entry/exit instrumentation in ThreadSanitizer`|
|`-fno-sanitize-thread-memory-access`|Supported|`Disable memory access instrumentation in ThreadSanitizer`|
|`-fno-sanitize-trap=<value>`|Supported|`Disable trapping for specified sanitizers`|
|`-fno-sanitize-address-poison-custom-array-cookie`|Supported on Host only|`Disable poisoning array cookies when using custom operator new[] in AddressSanitizer`|
|`-fno-sanitize-address-use-after-scope`|Supported on Host only|`Disable use-after-scope detection in AddressSanitizer`|
|`-fno-sanitize-address-use-odr-indicator`|Supported on Host only|`Disable ODR indicator globals`|
|`-fno-sanitize-blacklist`|Supported on Host only|`Don't use blacklist file for sanitizers`|
|`-fno-sanitize-cfi-canonical-jump-tables`|Supported on Host only|`Do not make the jump table addresses canonical in the symbol table`|
|`-fno-sanitize-cfi-cross-dso`|Supported on Host only|`Disable control flow integrity (CFI) checks for cross-DSO calls.`|
|`-fno-sanitize-coverage=<value>`|Supported on Host only|`Disable specified features of coverage instrumentation for Sanitizers`|
|`-fno-sanitize-memory-track-origins`|Supported on Host only|`Disable origins tracking in MemorySanitizer`|
|`-fno-sanitize-memory-use-after-dtor`|Supported on Host only|`Disable use-after-destroy detection in MemorySanitizer`|
|`-fno-sanitize-recover=<value>`|Supported on Host only|`Disable recovery for specified sanitizers`|
|`-fno-sanitize-stats`|Supported on Host only|`Disable sanitizer statistics gathering.`|
|`-fno-sanitize-thread-atomics`|Supported on Host only|`Disable atomic operations instrumentation in ThreadSanitizer`|
|`-fno-sanitize-thread-func-entry-exit`|Supported on Host only|`Disable function entry/exit instrumentation in ThreadSanitizer`|
|`-fno-sanitize-thread-memory-access`|Supported on Host only|`Disable memory access instrumentation in ThreadSanitizer`|
|`-fno-sanitize-trap=<value>`|Supported on Host only|`Disable trapping for specified sanitizers`|
|`-fno-sanitize-trap`|Supported on Host only|`Disable trapping for all sanitizers`|
|`-fno-short-wchar`|Supported|`Force wchar_t to be an unsigned int`|
|`-fno-show-column`|Supported|`Do not include column number on diagnostics`|
|`-fno-show-source-location`|Supported|`Do not include source location information with diagnostics`|
|`-fno-signed-char`|Supported|`Char is unsigned`|
|`-fno-signed-char`|Supported|`char is unsigned`|
|`-fno-signed-zeros`|Supported|`Allow optimizations that ignore the sign of floating point zeros`|
|`-fno-spell-checking`|Supported|`Disable spell-checking`|
|`-fno-split-machine-functions`|Supported|`Disable late function splitting using profile information (x86 ELF)`|
|`-fno-stack-clash-protection`|Supported|`Disable stack clash protection`|
|`-fno-stack-protector`|Supported|`Disable the use of stack protectors`|
|`-fno-stack-size-section`|Supported|`Don't emit section containing metadata on function stack sizes`|
|`-fno-standalone-debug`|Supported|`Limit debug information produced to reduce size of debug binary`|
|`-fno-strict-float-cast-overflow`|Supported|`Relax language rules and try to match the behavior of the target's native float-to-int conversion instructions`|
|`-fno-strict-return`|Supported|`Don't treat control flow paths that fall off the end of a non-void function as unreachable`|
|`-fno-sycl`|Unsupported|`Disable SYCL kernels compilation for device`|
|`-fno-temp-file`|Supported|`Directly create compilation output files. This may lead to incorrect incremental builds if the compiler crashes`|
|`-fno-threadsafe-statics`|Supported|`Do not emit code to make initialization of local statics thread safe`|
|`-fno-trigraphs`|Supported|`Do not process trigraph sequences`|
|`-fno-unique-section-names`|Supported|`Don't use unique names for text and data sections`|
|`-fno-unroll-loops`|Supported|`Turn off loop unroller`|
|`-fno-use-cxa-atexit`|Supported|`Don't use __cxa_atexit for calling destructors`|
|`-fno-use-init-array`|Supported|`Don't use .init_array instead of .ctors`|
|`-fno-use-flang-math-libs`|Supported|`Use Flang internal runtime math library instead of LLVM math intrinsics.`|
|`-fno-use-init-array`|Supported|`Use .ctors/.dtors instead of .init_array/.fini_array`|
|`-fno-visibility-inlines-hidden-static-local-var`|Supported|`Disables -fvisibility-inlines-hidden-static-local-var (this is the default on non-darwin targets)`|
|`-fno-xray-function-index`|Unsupported|`Omit function index section at the expense of single-function patching performance`|
|`-fno-zero-initialized-in-bss`|Supported|`Don't place zero initialized data in BSS`|
|`-fobjc-arc-exceptions`|Unsupported|`Use EH-safe code when synthesizing retains and releases in -fobjc-arc`|
|`-fobjc-arc`|Unsupported|`Synthesize retain and release calls for Objective-C pointers`|
|`-fobjc-exceptions`|Unsupported|`Enable Objective-C exceptions`|
@@ -269,12 +339,18 @@
|`-fopenmp-simd`|Unsupported|`Emit OpenMP code only for SIMD-based constructs.`|
|`-fopenmp-targets=<value>`|Unsupported|`Specify comma-separated list of triples OpenMP offloading targets to be supported`|
|`-fopenmp`|Unsupported|`Parse OpenMP pragmas and generate parallel code.`|
|`-foptimization-record-file=<value>`|Supported|`Specify the file name of any generated YAML optimization record`|
|`-foptimization-record-file=<file>`|Supported|`Specify the output name of the file containing the optimization remarks. Implies -fsave-optimization-record. On Darwin platforms, this cannot be used with multiple -arch <arch> options.`|
|`-foptimization-record-passes=<regex>`|Supported|`Only include passes which match a specified regular expression in the generated optimization record (by default, include all passes)`|
|`-forder-file-instrumentation`|Supported|`Generate instrumented code to collect order file into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)`|
|`-fpack-struct=<value>`|Unsupported|`Specify the default maximum struct packing alignment`|
|`-fpascal-strings`|Supported|`Recognize and construct Pascal-style string literals`|
|`-fpass-plugin=<dsopath>`|Supported|`Load pass plugin from a dynamic shared object file (only with new pass manager).`|
|`-fpatchable-function-entry=<N,M>`|Supported|`Generate M NOPs before function entry and N-M NOPs after function entry`|
|`-fpcc-struct-return`|Unsupported|`Override the default ABI to return all structs on the stack`|
|`-fplt`|Supported|`Use the PLT to make function calls`|
|`-fpch-codegen`|Supported|`Generate code for uses of this PCH that assumes an explicit object file will be built for the PCH`|
|`-fpch-debuginfo`|Supported|`Generate debug info for types in an object file built from this PCH and do not generate them elsewhere`|
|`-fpch-instantiate-templates`|Supported|`Instantiate templates already while building a PCH`|
|`-fpch-validate-input-files-content`|Supported|`Validate PCH input files based on content if mtime differs`|
|`-fplugin=<dsopath>`|Supported|`Load the named plugin (dynamic shared object)`|
|`-fprebuilt-module-path=<directory>`|Unsupported|`Specify the prebuilt module path`|
|`-fprofile-exclude-files=<value>`|Unsupported|`Instrument only functions from files where names don't match all the regexes separated by a semi-colon`|
@@ -293,71 +369,97 @@
|`-fregister-global-dtors-with-atexit`|Supported|`Use atexit or __cxa_atexit to register global destructors`|
|`-frelaxed-template-template-args`|Supported|`Enable C++17 relaxed template template argument matching`|
|`-freroll-loops`|Supported|`Turn on loop reroller`|
|`-fropi`|Unsupported|`Generate read-only position independent code (ARM only)`|
|`-frtlib-add-rpath`|Supported|`Add -rpath with architecture-specific resource directory to the linker flags`|
|`-fsanitize-address-field-padding=<value>`|Unsupported|`Level of field padding for AddressSanitizer`|
|`-fsanitize-address-globals-dead-stripping`|Unsupported|`Enable linker dead stripping of globals in AddressSanitizer`|
|`-fsanitize-address-poison-custom-array-cookie`|Unsupported|`Enable poisoning array cookies when using custom operator new[] in AddressSanitizer`|
|`-fsanitize-address-use-after-scope`|Unsupported|`Enable use-after-scope detection in AddressSanitizer`|
|`-fsanitize-address-use-odr-indicator`|Unsupported|`Enable ODR indicator globals to avoid false ODR violation reports in partially sanitized programs at the cost of an increase in binary size`|
|`-fsanitize-blacklist=<value>`|Unsupported|`Path to blacklist file for sanitizers`|
|`-fsanitize-cfi-cross-dso`|Unsupported|`Enable control flow integrity (CFI) checks for cross-DSO calls.`|
|`-fsanitize-cfi-icall-generalize-pointers`|Unsupported|`Generalize pointers in CFI indirect call type signature checks`|
|`-fsanitize-coverage=<value>`|Unsupported|`Specify the type of coverage instrumentation for Sanitizers`|
|`-fsanitize-hwaddress-abi=<value>`|Unsupported|`Select the HWAddressSanitizer ABI to target (interceptor or platform, default interceptor)`|
|`-fsanitize-memory-track-origins=<value>`|Unsupported|`Enable origins tracking in MemorySanitizer`|
|`-fsanitize-memory-track-origins`|Unsupported|`Enable origins tracking in MemorySanitizer`|
|`-fsanitize-memory-use-after-dtor`|Unsupported|`Enable use-after-destroy detection in MemorySanitizer`|
|`-fsanitize-recover=<value>`|Unsupported|`Enable recovery for specified sanitizers`|
|`-fsanitize-stats`|Unsupported|`Enable sanitizer statistics gathering.`|
|`-fsanitize-thread-atomics`|Unsupported|`Enable atomic operations instrumentation in ThreadSanitizer (default)`|
|`-fsanitize-thread-func-entry-exit`|Unsupported|`Enable function entry/exit instrumentation in ThreadSanitizer (default)`|
|`-fsanitize-thread-memory-access`|Unsupported|`Enable memory access instrumentation in ThreadSanitizer (default)`|
|`-fsanitize-trap=<value>`|Unsupported|`Enable trapping for specified sanitizers`|
|`-fsanitize-undefined-strip-path-components=<number>`|Unsupported|`Strip (or keep only, if negative) a given number of path components when emitting check metadata.`|
|`-fsanitize=<check>`|Unsupported|`Turn on runtime checks for various forms of undefined or suspicious behavior. See user manual for available checks`|
|`-frwpi`|Unsupported|`Generate read-write position independent code (ARM only)`|
|`-fsanitize-address-field-padding=<value>`|Supported on Host only|`Level of field padding for AddressSanitizer`|
|`-fsanitize-address-globals-dead-stripping`|Supported on Host only|`Enable linker dead stripping of globals in AddressSanitizer`|
|`-fsanitize-address-poison-custom-array-cookie`|Supported on Host only|`Enable poisoning array cookies when using custom operator new[] in AddressSanitizer`|
|`-fsanitize-address-use-after-scope`|Supported on Host only|`Enable use-after-scope detection in AddressSanitizer`|
|`-fsanitize-address-use-odr-indicator`|Supported on Host only|`Enable ODR indicator globals to avoid false ODR violation reports in partially sanitized programs at the cost of an increase in binary size`|
|`-fsanitize-blacklist=<value>`|Supported on Host only|`Path to blacklist file for sanitizers`|
|`-fsanitize-cfi-canonical-jump-tables`|Supported on Host only|`Make the jump table addresses canonical in the symbol table`|
|`-fsanitize-cfi-cross-dso`|Supported on Host only|`Enable control flow integrity (CFI) checks for cross-DSO calls.`|
|`-fsanitize-cfi-icall-generalize-pointers`|Supported on Host only|`Generalize pointers in CFI indirect call type signature checks`|
|`-fsanitize-coverage-allowlist=<value>`|Supported on Host only|`Restrict sanitizer coverage instrumentation exclusively to modules and functions that match the provided special case list, except the blocked ones`|
|`-fsanitize-coverage-blacklist=<value>`|Supported on Host only|`Deprecated, use -fsanitize-coverage-blocklist= instead`|
|`-fsanitize-coverage-blocklist=<value>`|Supported on Host only|`Disable sanitizer coverage instrumentation for modules and functions that match the provided special case list, even the allowed ones`|
|`-fsanitize-coverage-whitelist=<value>`|Supported on Host only|`Deprecated, use -fsanitize-coverage-allowlist= instead`|
|`-fsanitize-coverage=<value>`|Supported on Host only|`Specify the type of coverage instrumentation for Sanitizers`|
|`-fsanitize-hwaddress-abi=<value>`|Supported on Host only|`Select the HWAddressSanitizer ABI to target (interceptor or platform, default interceptor). This option is currently unused.`|
|`-fsanitize-memory-track-origins=<value>`|Supported on Host only|`Enable origins tracking in MemorySanitizer`|
|`-fsanitize-memory-track-origins`|Supported on Host only|`Enable origins tracking in MemorySanitizer`|
|`-fsanitize-memory-use-after-dtor`|Supported on Host only|`Enable use-after-destroy detection in MemorySanitizer`|
|`-fsanitize-recover=<value>`|Supported on Host only|`Enable recovery for specified sanitizers`|
|`-fsanitize-stats`|Supported on Host only|`Enable sanitizer statistics gathering.`|
|`-fsanitize-system-blacklist=<value>`|Supported on Host only|`Path to system blacklist file for sanitizers`|
|`-fsanitize-thread-atomics`|Supported on Host only|`Enable atomic operations instrumentation in ThreadSanitizer (default)`|
|`-fsanitize-thread-func-entry-exit`|Supported on Host only|`Enable function entry/exit instrumentation in ThreadSanitizer (default)`|
|`-fsanitize-thread-memory-access`|Supported on Host only|`Enable memory access instrumentation in ThreadSanitizer (default)`|
|`-fsanitize-trap=<value>`|Supported on Host only|`Enable trapping for specified sanitizers`|
|`-fsanitize-trap`|Supported on Host only|`Enable trapping for all sanitizers`|
|`-fsanitize-undefined-strip-path-components=<number>`|Supported on Host only|`Strip (or keep only, if negative) a given number of path components when emitting check metadata.`|
|`-fsanitize=<check>`|Supported on Host only|`Turn on runtime checks for various forms of undefined or suspicious behavior. See user manual for available checks`|
|`-fsave-optimization-record=<format>`|Supported|`Generate an optimization record file in a specific format`|
|`-fsave-optimization-record`|Supported|`Generate a YAML optimization record file`|
|`-fseh-exceptions`|Supported|`Use SEH style exceptions`|
|`-fshort-enums`|Supported|`Allocate to an enum type only as many bytes as it needs for the declared range of possible values`|
|`-fshort-wchar`|Unsupported|`Force wchar_t to be a short unsigned int`|
|`-fshow-overloads=<value>`|Supported|`Which overload candidates to show when overload resolution fails: best\|all; defaults to all`|
|`-fsigned-char`|Supported|`char is signed`|
|`-fsized-deallocation`|Supported|`Enable C++14 sized global deallocation functions`|
|`-fsjlj-exceptions`|Supported|`Use SjLj style exceptions`|
|`-fslp-vectorize`|Supported|`Enable the superword-level parallelism vectorization passes`|
|`-fsplit-dwarf-inlining`|Unsupported|`Provide minimal debug info in the object/executable to facilitate online symbolication/stack traces in the absence of .dwo/.dwp files when using Split DWARF`|
|`-fsplit-lto-unit`|Unsupported|`Enables splitting of the LTO unit.`|
|`-fsplit-lto-unit`|Unsupported|`Enables splitting of the LTO unit`|
|`-fsplit-machine-functions`|Supported|`Enable late function splitting using profile information (x86 ELF)`|
|`-fstack-clash-protection`|Supported|`Enable stack clash protection`|
|`-fstack-protector-all`|Unsupported|`Enable stack protectors for all functions`|
|`-fstack-protector-strong`|Unsupported|`Enable stack protectors for some functions vulnerable to stack smashing. Compared to -fstack-protector, this uses a stronger heuristic that includes functions containing arrays of any size (and any type), as well as any calls to alloca or the taking of an address from a local variable`|
|`-fstack-protector`|Unsupported|`Enable stack protectors for some functions vulnerable to stack smashing. This uses a loose heuristic which considers functions vulnerable if they contain a char (or 8bit integer) array or constant sized calls to alloca, which are of greater size than ssp-buffer-size (default: 8 bytes). All variable sized calls to alloca are considered vulnerable`|
|`-fstack-protector`|Unsupported|`Enable stack protectors for some functions vulnerable to stack smashing. This uses a loose heuristic which considers functions vulnerable if they contain a char (or 8bit integer) array or constant sized calls to alloca , which are of greater size than ssp-buffer-size (default: 8 bytes). All variable sized calls to alloca are considered vulnerable. A function with a stack protector has a guard value added to the stack frame that is checked on function exit. The guard value must be positioned in the stack frame such that a buffer overflow from a vulnerable variable will overwrite the guard value before overwriting the function's return address. The reference stack guard value is stored in a global variable.`|
|`-fstack-size-section`|Supported|`Emit section containing metadata on function stack sizes`|
|`-fstandalone-debug`|Supported|`Emit full debug info for all types used by the program`|
|`-fstrict-enums`|Supported|`Enable optimizations based on the strict definition of an enum's value range`|
|`-fstrict-float-cast-overflow`|Supported|`Assume that overflowing float-to-int casts are undefined (default)`|
|`-fstrict-return`|Supported|`Always treat control flow paths that fall off the end of a non-void function as unreachable`|
|`-fstrict-vtable-pointers`|Supported|`Enable optimizations based on the strict rules for overwriting polymorphic C++ objects`|
|`-fsycl`|Unsupported|`Enable SYCL kernels compilation for device`|
|`-fsystem-module`|u|`Build this module as a system module. Only used with -emit-module`|
|`-fthin-link-bitcode=<value>`|Supported|`Write minimized bitcode to <file> for the ThinLTO thin link only`|
|`-fthinlto-index=<value>`|Unsupported|`Perform ThinLTO importing using provided function summary index`|
|`-ftime-trace-granularity=<value>`|Supported|`Minimum time granularity (in microseconds) traced by time profiler`|
|`-ftime-trace`|Supported|`Turn on time profiler. Generates JSON file based on output filename.`|
|`-ftrap-function=<value>`|Unsupported|`Issue call to specified function rather than a trap instruction`|
|`-ftrapv-handler=<function name>`|Unsupported|`Specify the function to be called on overflow`|
|`-ftrapv`|Unsupported|`Trap on integer overflow`|
|`-ftrigraphs`|Supported|`Process trigraph sequences`|
|`-ftrivial-auto-var-init-stop-after=<value>`|Supported|`Stop initializing trivial automatic stack variables after the specified number of instances`|
|`-ftrivial-auto-var-init=<value>`|Supported|`Initialize trivial automatic stack variables: uninitialized (default) \| pattern`|
|`-funique-section-names`|Supported|`Use unique names for text and data sections (ELF Only)`|
|`-funique-basic-block-section-names`|Supported|`Use unique names for basic block sections (ELF Only)`|
|`-funique-internal-linkage-names`|Supported|`Uniqueify Internal Linkage Symbol Names by appending the MD5 hash of the module path`|
|`-funroll-loops`|Supported|`Turn on loop unroller`|
|`-fuse-init-array`|Supported|`Use .init_array instead of .ctors`|
|`-fuse-flang-math-libs`|Supported|`Use Flang internal runtime math library instead of LLVM math intrinsics.`|
|`-fuse-line-directives`|Supported|`Use #line in preprocessed output`|
|`-fvalidate-ast-input-files-content`|Supported|`Compute and store the hash of input files used to build an AST. Files with mismatching mtime's are considered valid if both contents is identical`|
|`-fveclib=<value>`|Unsupported|`Use the given vector functions library`|
|`-fvectorize`|Unsupported|`Enable the loop vectorization passes`|
|`-fverbose-asm`|Supported|`Generate verbose assembly output`|
|`-fvirtual-function-elimination`|Supported|`Enables dead virtual function elimination optimization. Requires -flto=full`|
|`-fvisibility-global-new-delete-hidden`|Supported|`Give global C++ operator new and delete declarations hidden visibility`|
|`-fvisibility-inlines-hidden-static-local-var`|Supported|`When -fvisibility-inlines-hidden is enabled, static variables in inline C++ member functions will also be given hidden visibility by default`|
|`-fvisibility-inlines-hidden`|Supported|`Give inline C++ member functions hidden visibility by default`|
|`-fvisibility-ms-compat`|Supported|`Give global types 'default' visibility and global functions and variables 'hidden' visibility by default`|
|`-fvisibility=<value>`|Supported|`Set the default symbol visibility for all global declarations`|
|`-fwasm-exceptions`|Unsupported|`Use WebAssembly style exceptions`|
|`-fwhole-program-vtables`|Unsupported|`Enables whole-program vtable optimization. Requires -flto`|
|`-fwrapv`|Supported|`Treat signed integer overflow as two's complement`|
|`-fwritable-strings`|Supported|`Store string literals as writable data`|
|`-fxray-always-emit-customevents`|Unsupported|`Determine whether to always emit __xray_customevent(...) calls even if the function it appears in is not always instrumented.`|
|`-fxray-always-emit-typedevents`|Unsupported|`Determine whether to always emit __xray_typedevent(...) calls even if the function it appears in is not always instrumented.`|
|`-fxray-always-emit-customevents`|Unsupported|`Always emit __xray_customevent(...) calls even if the containing function is not always instrumented`|
|`-fxray-always-emit-typedevents`|Unsupported|`Always emit __xray_typedevent(...) calls even if the containing function is not always instrumented`|
|`-fxray-always-instrument= <value>`|Unsupported|`DEPRECATED: Filename defining the whitelist for imbuing the 'always instrument' XRay attribute.`|
|`-fxray-attr-list= <value>`|Unsupported|`Filename defining the list of functions/types for imbuing XRay attributes.`|
|`-fxray-ignore-loops`|Unsupported|`Don't instrument functions with loops unless they also meet the minimum function size`|
|`-fxray-instruction-threshold= <value>`|Unsupported|`Sets the minimum function size to instrument with XRay`|
|`-fxray-instrumentation-bundle= <value>`|Unsupported|`Select which XRay instrumentation points to emit. Options: all, none, function, custom. Default is 'all'.`|
|`-fxray-instrumentation-bundle= <value>`|Unsupported|`Select which XRay instrumentation points to emit. Options: all, none, function-entry, function-exit, function, custom. Default is 'all'. 'function' includes both 'function-entry' and 'function-exit'.`|
|`-fxray-instrument`|Unsupported|`Generate XRay instrumentation sleds on function entry and exit`|
|`-fxray-link-deps`|Unsupported|`Tells clang to add the link dependencies for XRay.`|
|`-fxray-modes= <value>`|Unsupported|`List of modes to link in by default into XRay instrumented binaries.`|
@@ -371,11 +473,14 @@
|`-gdwarf-3`|Supported|`Generate source-level debug information with dwarf version 3`|
|`-gdwarf-4`|Supported|`Generate source-level debug information with dwarf version 4`|
|`-gdwarf-5`|Supported|`Generate source-level debug information with dwarf version 5`|
|`-gdwarf`|Supported|`Generate source-level debug information with the default dwarf version`|
|`-gembed-source`|Supported|`Embed source text in DWARF debug sections`|
|`-gline-directives-only`|Supported|`Emit debug line info directives only`|
|`-gline-tables-only`|Supported|`Emit debug line number tables only`|
|`-gmodules`|Supported|`Generate debug info with external references to clang modules or precompiled headers`|
|`-gno-embed-source`|Supported|`Restore the default behavior of not embedding source text in DWARF debug sections`|
|`-gno-inline-line-tables`|Supported|`Don't emit inline line tables`|
|`--gpu-max-threads-per-block=<value>`|Supported|`Default max threads per block for kernel launch bounds for HIP`|
|`-gsplit-dwarf=<value>`|Supported|`Set DWARF fission mode to either 'split' or 'single'`|
|`-gz=<value>`|Supported|`DWARF debug sections compression type`|
|`-gz`|Supported|`DWARF debug sections compression type`|
@@ -383,11 +488,12 @@
|`-g`|Supported|`Generate source-level debug information`|
|`--help-hidden`|Supported|`Display help for hidden options`|
|`-help`|Supported|`Display available options`|
|`--hip-device-lib-path=<value>`|Supported|`HIP device library path`|
|`--hip-device-lib=<value>`|Supported|`HIP device library`|
|`--hip-link`|Supported|`Link clang-offload-bundler bundles for HIP`|
|`--hip-version=<value>`|Supported|`HIP version in the format of major.minor.patch`|
|`-H`|Supported|`Show header includes and nesting depth`|
|`-I-`|Supported|`Restrict all prior -I flags to double-quoted inclusion and remove current directory from include path`|
|`-ibuiltininc`|Supported|`Enable builtin #include directories even when -nostdinc is used before or after -ibuiltininc. Using -nobuiltininc after the option disables it`|
|`-idirafter <value>`|Supported|`Add directory to AFTER include search path`|
|`-iframeworkwithsysroot <directory>`|Unsupported|`Add directory to SYSTEM framework search path, absolute paths are relative to -isysroot`|
|`-iframework <value>`|Unsupported|`Add directory to SYSTEM framework search path`|
@@ -404,21 +510,34 @@
|`-iwithprefixbefore <dir>`|Supported|`Set directory to include search path with prefix`|
|`-iwithprefix <dir>`|Supported|`Set directory to SYSTEM include search path with prefix`|
|`-iwithsysroot <directory>`|Supported|`Add directory to SYSTEM include search path, absolute paths are relative to -isysroot`|
|`-I <dir>`|Supported|`Add directory to include search path`|
|`-I <dir>`|Supported|`Add directory to include search path. If there are multiple -I options, these directories are searched in the order they are given before the standard system directories are searched. If the same directory is in the SYSTEM include search paths, for example if also specified with -isystem, the -I option will be ignored`|
|`--libomptarget-nvptx-path=<value>`|Unsupported|`Path to libomptarget-nvptx libraries`|
|`-L <dir>`|Supported|`Add directory to library search path`|
|`-mabicalls`|Unsupported|`Enable SVR4-style position-independent code (Mips only)`|
|`-maix-struct-return`|Unsupported|`Return all structs in memory (PPC32 only)`|
|`-malign-branch-boundary=<value>`|Supported|`Specify the boundary's size to align branches`|
|`-malign-branch=<value>`|Supported|`Specify types of branches to align`|
|`-malign-double`|Supported|`Align doubles to two words in structs (x86 only)`|
|`-Mallocatable=<value>`|Unsupported|`Select semantics for assignments to allocatables (F03 or F95)`|
|`-mbackchain`|Unsupported|`Link stack frames through backchain on System Z`|
|`-mbranch-protection=<value>`|Unsupported|`Enforce targets of indirect branches and function returns`|
|`-mcode-object-v3`|Unsupported|`Enable code object v3 (AMDGPU only)`|
|`-mbranches-within-32B-boundaries`|Supported|`Align selected branches (fused, jcc, jmp) within 32-byte boundary`|
|`-mcmodel=medany`|Unsupported|`Equivalent to -mcmodel=medium, compatible with RISC-V gcc.`|
|`-mcmodel=medlow`|Unsupported|`Equivalent to -mcmodel=small, compatible with RISC-V gcc.`|
|`-mcmse`|Unsupported|`Allow use of CMSE (Armv8-M Security Extensions)`|
|`-mcode-object-v3`|Supported|`Legacy option to specify code object ABI V2 (-mnocode-object-v3) or V3 (-mcode-object-v3) (AMDGPU only)`|
|`-mcode-object-version=<version>`|Supported|`Specify code object ABI version. Defaults to 4. (AMDGPU only)`|
|`-mcrc`|Unsupported|`Allow use of CRC instructions (ARM/Mips only)`|
|`-mcumode`|Supported|`Specify CU (-mcumode) or WGP (-mno-cumode) wavefront execution mode (AMDGPU only)`|
|`-mdouble=<value>`|Supported|`Force double to be 32 bits or 64 bits`|
|`-MD`|Supported|`Write a depfile containing user and system headers`|
|`-meabi <value>`|Supported|`Set EABI type, e.g. 4, 5 or gnu (default depends on triple)`|
|`-membedded-data`|Unsupported|`Place constants in the .rodata section instead of the .sdata section even if they meet the -G <size> threshold (MIPS)`|
|`-menable-experimental-extensions`|Unsupported|`Enable use of experimental RISC-V extensions.`|
|`-mexec-model=<value>`|Unsupported|`Execution model (WebAssembly only)`|
|`-mexecute-only`|Unsupported|`Disallow generation of data access to code sections (ARM only)`|
|`-mextern-sdata`|Unsupported|`Assume that externally defined data is in the small data if it meets the -G <size> threshold (MIPS)`|
|`-mfentry`|Supported|`Insert calls to fentry at function entry (x86 only)`|
|`-mfentry`|Unsupported|`Insert calls to fentry at function entry (x86/SystemZ only)`|
|`-mfix-cortex-a53-835769`|Unsupported|`Workaround Cortex-A53 erratum 835769 (AArch64 only)`|
|`-mfp32`|Unsupported|`Use 32-bit floating point registers (MIPS only)`|
|`-mfp64`|Unsupported|`Use 64-bit floating point registers (MIPS only)`|
@@ -427,6 +546,7 @@
|`-mglobal-merge`|Supported|`Enable merging of globals`|
|`-mgpopt`|Unsupported|`Use GP relative accesses for symbols known to be in a small data section (MIPS)`|
|`-MG`|Supported|`Add missing headers to depfile`|
|`-mharden-sls=<value>`|Unsupported|`Select straight-line speculation hardening scope`|
|`-mhvx-length=<value>`|Unsupported|`Set Hexagon Vector Length`|
|`-mhvx=<value>`|Unsupported|`Enable Hexagon Vector eXtensions`|
|`-mhvx`|Unsupported|`Enable Hexagon Vector eXtensions`|
@@ -434,13 +554,20 @@
|`--migrate`|Unsupported|`Run the migrator`|
|`-mincremental-linker-compatible`|Supported|`(integrated-as) Emit an object file which can be used with an incremental linker`|
|`-mindirect-jump=<value>`|Unsupported|`Change indirect jump instructions to inhibit speculation`|
|`-Minform=<value>`|Supported|`Set error level of messages to display`|
|`-mios-version-min=<value>`|Unsupported|`Set iOS deployment target`|
|`-MJ <value>`|Unsupported|`Write a compilation database entry per input`|
|`-mllvm <value>`|Supported|`Additional arguments to forward to LLVM's option processing`|
|`-mlocal-sdata`|Unsupported|`Extend the -G behaviour to object local data (MIPS)`|
|`-mlong-calls`|Supported|`Generate branches with extended addressability, usually via indirect jumps.`|
|`-mlong-double-128`|Supported on Host only|`Force long double to be 128 bits`|
|`-mlong-double-64`|Supported|`Force long double to be 64 bits`|
|`-mlong-double-80`|Supported on Host only|`Force long double to be 80 bits, padded to 128 bits for storage`|
|`-mlvi-cfi`|Supported on Host only|`Enable only control-flow mitigations for Load Value Injection (LVI)`|
|`-mlvi-hardening`|Supported on Host only|`Enable all mitigations for Load Value Injection (LVI)`|
|`-mmacosx-version-min=<value>`|Unsupported|`Set Mac OS X deployment target`|
|`-mmadd4`|Supported|`Enable the generation of 4-operand madd.s, madd.d and related instructions.`|
|`-mmark-bti-property`|Unsupported|`Add .note.gnu.property with BTI to assembly files (AArch64 only)`|
|`-MMD`|Supported|`Write a depfile containing user headers`|
|`-mmemops`|Supported|`Enable generation of memop instructions`|
|`-mms-bitfields`|Unsupported|`Set the default structure layout to be compatible with the Microsoft compiler standard`|
@@ -448,7 +575,6 @@
|`-mmt`|Unsupported|`Enable MT ASE (MIPS only)`|
|`-MM`|Supported|`Like -MMD, but also implies -E and writes to stdout by default`|
|`-mno-abicalls`|Unsupported|`Disable SVR4-style position-independent code (Mips only)`|
|`-mno-code-object-v3`|Supported|`Disable code object v3 (AMDGPU only)`|
|`-mno-crc`|Unsupported|`Disallow use of CRC instructions (Mips only)`|
|`-mno-embedded-data`|Unsupported|`Do not place constants in the .rodata section instead of the .sdata if they meet the -G <size> threshold (MIPS)`|
|`-mno-execute-only`|Unsupported|`Allow generation of data access to code sections (ARM only)`|
@@ -461,6 +587,8 @@
|`-mno-incremental-linker-compatible`|Supported|`(integrated-as) Emit an object file which cannot be used with an incremental linker`|
|`-mno-local-sdata`|Unsupported|`Do not extend the -G behaviour to object local data (MIPS)`|
|`-mno-long-calls`|Supported|`Restore the default behaviour of not generating long calls`|
|`-mno-lvi-cfi`|Supported on Host only|`Disable control-flow mitigations for Load Value Injection (LVI)`|
|`-mno-lvi-hardening`|Supported on Host only|`Disable mitigations for Load Value Injection (LVI)`|
|`-mno-madd4`|Supported|`Disable the generation of 4-operand madd.s, madd.d and related instructions.`|
|`-mno-memops`|Supported|`Disable generation of memop instructions`|
|`-mno-movt`|Supported|`Disallow use of movt/movw pairs (ARM only)`|
@@ -474,48 +602,64 @@
|`-mno-packets`|Supported|`Disable generation of instruction packets`|
|`-mno-relax`|Supported|`Disable linker relaxation`|
|`-mno-restrict-it`|Unsupported|`Allow generation of deprecated IT blocks for ARMv8. It is off by default for ARMv8 Thumb mode`|
|`-mno-sram-ecc`|Supported|`Disable SRAM ECC (AMDGPU only)`|
|`-mno-save-restore`|Unsupported|`Disable using library calls for save and restore`|
|`-mno-seses`|Unsupported|`Disable speculative execution side effect suppression (SESES)`|
|`-mno-stack-arg-probe`|Supported|`Disable stack probes which are enabled by default`|
|`-mno-tls-direct-seg-refs`|Supported|`Disable direct TLS access through segment registers`|
|`-mno-unaligned-access`|Unsupported|`Force all memory accesses to be aligned (AArch32/AArch64 only)`|
|`-mno-xnack`|Supported|`Disable XNACK (AMDGPU only)`|
|`-mno-wavefrontsize64`|Supported|`Specify wavefront size 32 mode (AMDGPU only)`|
|`-mnocrc`|Unsupported|`Disallow use of CRC instructions (ARM only)`|
|`-mnop-mcount`|Supported|`Generate mcount/__fentry__ calls as nops. To activate they need to be patched in.`|
|`-mnvj`|Supported|`Enable generation of new-value jumps`|
|`-mnvs`|Supported|`Enable generation of new-value stores`|
|`-module-dependency-dir <value>`|Unsupported|`Directory to dump module dependencies to`|
|`-module-file-info`|Unsupported|`Provide information about a particular module file`|
|`-momit-leaf-frame-pointer`|Supported|`Omit frame pointer setup for leaf functions`|
|`-moutline`|Unsupported|`Enable function outlining (AArch64 only)`|
|`-mpacked-stack`|Unsupported|`Use packed stack layout (SystemZ only).`|
|`-mpackets`|Supported|`Enable generation of instruction packets`|
|`-mpad-max-prefix-size=<value>`|Supported|`Specify maximum number of prefixes to use for padding`|
|`-mpie-copy-relocations`|Supported|`Use copy relocations support for PIE builds`|
|`-mprefer-vector-width=<value>`|Unsupported|`Specifies preferred vector width for auto-vectorization. Defaults to 'none' which allows target specific decisions.`|
|`-MP`|Supported|`Create phony target for each dependency (other than main file)`|
|`-mqdsp6-compat`|Unsupported|`Enable hexagon-qdsp6 backward compatibility`|
|`-MQ <value>`|Supported|`Specify name of main file output to quote in depfile`|
|`-mrecord-mcount`|Supported|`Generate a __mcount_loc section entry for each __fentry__ call.`|
|`-mrelax-all`|Supported|`(integrated-as) Relax all machine instructions`|
|`-mrelax`|Supported|`Enable linker relaxation`|
|`-mrestrict-it`|Unsupported|`Disallow generation of deprecated IT blocks for ARMv8. It is on by default for ARMv8 Thumb mode.`|
|`-mrtd`|Unsupported|`Make StdCall calling convention the default`|
|`-msave-restore`|Unsupported|`Enable using library calls for save and restore`|
|`-mseses`|Unsupported|`Enable speculative execution side effect suppression (SESES). Includes LVI control flow integrity mitigations`|
|`-msign-return-address=<value>`|Unsupported|`Select return address signing scope`|
|`-msmall-data-limit=<value>`|Supported|`Put global and static data smaller than the limit into a special section`|
|`-msoft-float`|Supported|`Use software floating point`|
|`-msram-ecc`|Supported|`Enable SRAM ECC (AMDGPU only)`|
|`-msram-ecc`|Supported|`Legacy option to specify SRAM ECC mode (AMDGPU only). Should use --offload-arch with :sramecc+ instead`|
|`-mstack-alignment=<value>`|Unsupported|`Set the stack alignment`|
|`-mstack-arg-probe`|Unsupported|`Enable stack probes`|
|`-mstack-probe-size=<value>`|Unsupported|`Set the stack probe size`|
|`-mstackrealign`|Unsupported|`Force realign the stack at entry to every function`|
|`-msve-vector-bits=<value>`|Unsupported|`Specify the size in bits of an SVE vector register. Defaults to the vector length agnostic value of "scalable". (AArch64 only)`|
|`-msvr4-struct-return`|Unsupported|`Return small structs in registers (PPC32 only)`|
|`-mthread-model <value>`|Supported|`The thread model to use, e.g. posix, single (posix by default)`|
|`-mtls-direct-seg-refs`|Supported|`Enable direct TLS access through segment registers (default)`|
|`-mtp=<value>`|Unsupported|`Read thread pointer from coprocessor register (ARM only)`|
|`-mtls-size=<value>`|Unsupported|`Specify bit size of immediate TLS offsets (AArch64 ELF only): 12 (for 4KB) \| 24 (for 16MB, default) \| 32 (for 4GB) \| 48 (for 256TB, needs -mcmodel=large)`|
|`-mtp=<value>`|Unsupported|`Thread pointer access method (AArch32/AArch64 only)`|
|`-mtune=<value>`|Supported on Host only|`Only supported on X86. Otherwise accepted for compatibility with GCC.`|
|`-MT <value>`|Unsupported|`Specify name of main file output in depfile`|
|`-munaligned-access`|Unsupported|`Allow memory accesses to be unaligned (AArch32/AArch64 only)`|
|`-MV`|Supported|`Use NMake/Jom format for the depfile`|
|`-mxnack`|Supported|`Enable XNACK (AMDGPU only)`|
|`-mwavefrontsize64`|Supported|`Specify wavefront size 64 mode (AMDGPU only)`|
|`-mxnack`|Supported|`Legacy option to specify XNACK mode (AMDGPU only). Should use --offload-arch with :xnack+ instead`|
|`-M`|Supported|`Like -MD, but also implies -E and writes to stdout by default`|
|`--no-cuda-gpu-arch=<value>`|Supported|`Remove GPU architecture (e.g. sm_35) from the list of GPUs to compile for. 'all' resets the list to its default value.`|
|`--no-cuda-include-ptx=<value>`|Supported|`Do not include PTX for the following GPU architecture (e.g. sm_35) or 'all'. May be specified more than once.`|
|`--no-cuda-version-check`|Supported|`Don't error out if the detected version of the CUDA install is too low for the requested CUDA gpu architecture.`|
|`-no-flang-libs`|Supported|`Do not link against Flang libraries`|
|`--no-offload-arch=<value>`|Supported|`Remove CUDA/HIP offloading device architecture (e.g. sm_35, gfx906) from the list of devices to compile for. 'all' resets the list to its default value.`|
|`--no-system-header-prefix=<prefix>`|Supported|`Treat all #include paths starting with <prefix> as not including a system header.`|
|`-nobuiltininc`|Supported|`Disable builtin #include directories`|
|`-nogpuinc`|Supported|`Do not add CUDA/HIP include paths and include default CUDA/HIP wrapper header files`|
|`-nogpulib`|Supported|`Do not link device library for CUDA/HIP device compilation`|
|`-nostdinc++`|Unsupported|`Disable standard #include directories for the C++ standard library`|
|`-ObjC++`|Unsupported|`Treat source input files as Objective-C++ inputs`|
|`-objcmt-atomic-property`|Unsupported|`Make migration to 'atomic' properties`|
@@ -535,7 +679,9 @@
|`-objcmt-returns-innerpointer-property`|Unsupported|`Enable migration to annotate property with NS_RETURNS_INNER_POINTER`|
|`-objcmt-whitelist-dir-path=<value>`|Unsupported|`Only modify files with a filename contained in the provided directory path`|
|`-ObjC`|Unsupported|`Treat source input files as Objective-C inputs`|
|`--offload-arch=<value>`|Supported|`CUDA offloading device architecture (e.g. sm_35), or HIP offloading target ID in the form of a device architecture followed by target ID features delimited by a colon. Each target ID feature is a pre-defined string followed by a plus or minus sign (e.g. gfx908:xnack+:sramecc-). May be specified more than once.`|
|`-o <file>`|Supported|`Write output to <file>`|
|`-parallel-jobs=<value>`|Supported|`Number of parallel jobs`|
|`-pg`|Supported|`Enable mcount instrumentation`|
|`-pipe`|Supported|`Use pipes between commands, when possible`|
|`--precompile`|Supported|`Only precompile the input`|
@@ -546,7 +692,9 @@
|`-print-prog-name=<name>`|Supported|`Print the full program path of <name>`|
|`-print-resource-dir`|Supported|`Print the resource directory pathname`|
|`-print-search-dirs`|Supported|`Print the paths used for finding libraries and programs`|
|`-print-supported-cpus`|Supported|`Print supported cpu models for the given target (if target is not specified, it will print the supported cpus for the default target)`|
|`-print-target-triple`|Supported|`Print the normalized target triple`|
|`-print-targets`|Supported|`Print the registered targets`|
|`-pthread`|Supported|`Support POSIX threads in generated code`|
|`--ptxas-path=<value>`|Unsupported|`Path to ptxas (used for compiling CUDA code)`|
|`-P`|Supported|`Disable linemarker output in -E mode`|
@@ -556,6 +704,8 @@
|`-relocatable-pch`|Supported|`Whether to build a relocatable precompiled header`|
|`-rewrite-legacy-objc`|Unsupported|`Rewrite Legacy Objective-C source to C++`|
|`-rewrite-objc`|Unsupported|`Rewrite Objective-C source to C++`|
|`--rocm-device-lib-path=<value>`|Supported|`ROCm device library path. Alternative to rocm-path.`|
|`--rocm-path=<value>`|Supported|`ROCm installation path, used for finding and automatically linking required bitcode libraries.`|
|`-Rpass-analysis=<value>`|Supported|`Report transformation analysis from optimization passes whose name matches the given POSIX regular expression`|
|`-Rpass-missed=<value>`|Supported|`Report missed transformations by optimization passes whose name matches the given POSIX regular expression`|
|`-Rpass=<value>`|Supported|`Report transformations performed by optimization passes whose name matches the given POSIX regular expression`|
@@ -567,9 +717,13 @@
|`-save-temps`|Supported|`Save intermediate compilation results`|
|`-serialize-diagnostics <value>`|Supported|`Serialize compiler diagnostics to a file`|
|`-shared-libsan`|Unsupported|`Dynamically link the sanitizer runtime`|
|`-static-flang-libs`|Supported|`Link using static Flang libraries`|
|`-static-libsan`|Unsupported|`Statically link the sanitizer runtime`|
|`-static-openmp`|Supported|`Use the static host OpenMP runtime while linking.`|
|`-std=<value>`|Supported|`Language standard to compile for`|
|`-stdlib++-isystem <directory>`|Supported|`Use directory as the C++ standard library include path`|
|`-stdlib=<value>`|Supported|`C++ standard library to use`|
|`-sycl-std=<value>`|Unsupported|`SYCL language standard to compile for.`|
|`--system-header-prefix=<prefix>`|Supported|`Treat all #include paths starting with <prefix> as including a system header.`|
|`-S`|Supported|`Only run preprocess and compilation steps`|
|`--target=<value>`|Supported|`Generate code for the given target`|
@@ -581,6 +735,7 @@
|`-Ttext <addr>`|Supported|`Set starting address of TEXT to <addr>`|
|`-T <script>`|Unsupported|`Specify <script> as linker script`|
|`-undef`|Supported|`undef all system defines`|
|`-unwindlib=<value>`|Supported|`Unwind library to use`|
|`-U <macro>`|Supported|`Undefine macro <macro>`|
|`--verify-debug-info`|Supported|`Verify the binary representation of debug output`|
|`-verify-pch`|Unsupported|`Load and verify that a pre-compiled header file is not stale`|
@@ -594,6 +749,8 @@
|`-W<warning>`|Supported|`Enable the specified warning`|
|`-w`|Supported|`Suppress all warnings`|
|`-Xanalyzer <arg>`|Supported|`Pass <arg> to the static analyzer`|
|`-Xarch_device <arg>`|Supported|`Pass <arg> to the CUDA/HIP device compilation`|
|`-Xarch_host <arg>`|Supported|`Pass <arg> to the CUDA/HIP host compilation`|
|`-Xassembler <arg>`|Supported|`Pass <arg> to the assembler`|
|`-Xclang <arg>`|Supported|`Pass <arg> to the clang compiler`|
|`-Xcuda-fatbinary <arg>`|Supported|`Pass <arg> to fatbinary invocation`|
+208 -56
View File
@@ -3,9 +3,9 @@
--analyze s
-arcmt-migrate-emit-errors n
-arcmt-migrate-report-output n
-byteswapio s
-B s
-CC s
-cfguard s
-cl-denorms-are-zero s
-cl-fast-relaxed-math s
-cl-finite-math-only s
@@ -22,7 +22,6 @@
--config s
--cuda-compile-host-device s
--cuda-device-only s
--cuda-gpu-arch s
--cuda-host-only s
--cuda-include-ptx n
--cuda-noopt-device-debug n
@@ -36,24 +35,32 @@
-dependency-file s
-dI s
-dM s
-dsym-dir n
-D s
-emit-ast s
-emit-interface-stubs s
-emit-llvm s
-emit-merged-ifs s
--emit-static-lib s
-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang s
-E s
-fAAPCSBitfieldLoad n
-faddrsig s
-faligned-allocation s
-fallow-editor-placeholders s
-fallow-fortran-gnu-ext s
-fansi-escape-codes s
-fapple-kext n
-fapple-link-rtlib n
-fapple-pragma-pack n
-fapplication-extension n
-fbackslash s
-fbasic-block-sections s
-fblocks s
-fborland-extensions n
-fbuild-session-file s
-fbuild-session-timestamp s
-fbuiltin-module-map n
-fc++-static-destructors s
-fcall-saved-x10 n
-fcall-saved-x11 n
-fcall-saved-x12 n
@@ -69,7 +76,9 @@
-fclang-abi-compat s
-fcolor-diagnostics s
-fcomment-block-commands s
-fcommon s
-fcomplete-member-pointers s
-fconvergent-functions s
-fcoroutines-ts s
-fcoverage-mapping n
-fcs-profile-generate n
@@ -79,6 +88,8 @@
-fcuda-short-ptr n
-fcxx-exceptions s
-fdata-sections s
-fdebug-compilation-dir s
-fdebug-default-version s
-fdebug-info-for-profiling s
-fdebug-macro s
-fdebug-prefix-map s
@@ -100,16 +111,22 @@
-fdollars-in-identifiers s
-fdouble-square-bracket-attributes s
-fdwarf-exceptions n
-feliminate-unused-debug-types s
-fembed-bitcode-marker s
-fembed-bitcode s
-fembed-bitcode s
-femit-all-decls s
-femulated-tls s
-fenable-matrix s
-fexceptions s
-fexperimental-isel s
-fexperimental-new-constant-interpreter s
-fexperimental-new-pass-manager s
-fexperimental-relative-c++-abi-vtables s
-fexperimental-strict-floating-point s
-ffast-math s
-ffile-prefix-map s
-ffine-grained-bitfield-accesses s
-ffixed-form s
-ffixed-point s
-ffixed-r19 n
-ffixed-r9 n
@@ -119,7 +136,10 @@
-ffixed-x13 n
-ffixed-x14 n
-ffixed-x15 n
-ffixed-x16 n
-ffixed-x17 n
-ffixed-x18 n
-ffixed-x19 n
-ffixed-x1 n
-ffixed-x20 n
-ffixed-x21 n
@@ -130,22 +150,36 @@
-ffixed-x26 n
-ffixed-x27 n
-ffixed-x28 n
-ffixed-x29 n
-ffixed-x2 n
-ffixed-x30 n
-ffixed-x31 n
-ffixed-x3 n
-ffixed-x4 n
-ffixed-x5 n
-ffixed-x6 n
-ffixed-x7 n
-ffixed-x8 n
-ffixed-x9 n
-fforce-dwarf-frame s
-fforce-emit-vtables s
-fforce-enable-int128 s
-ffp-contract s
-ffp-exception-behavior s
-ffp-model s
-ffree-form s
-ffreestanding s
-ffunc-args-alias s
-ffunction-sections s
-fglobal-isel s
-fgnu-keywords s
-fgnu-runtime n
-fgnu89-inline n
-fgnuc-version s
-fgpu-allow-device-init s
-fgpu-rdc s
-fhip-new-launch-api s
-fignore-exceptions s
-fimplicit-module-maps n
-finline-functions s
-finline-hint-functions s
@@ -153,13 +187,20 @@
-finstrument-functions-after-inlining n
-finstrument-functions n
-fintegrated-as s
-fintegrated-cc1 s
-fjump-tables s
-fkeep-static-consts s
-flax-vector-conversions s
-flto-jobs n
-flto n
-flto n
-fmacro-prefix-map s
-fmath-errno s
-fmax-tokens s
-fmax-type-align s
-fmemory-profile s
-fmerge-all-constants s
-fmessage-length s
-fmodule-file n
-fmodule-map-file n
-fmodule-name n
@@ -173,6 +214,7 @@
-fmodules-strict-decluse n
-fmodules-ts n
-fmodules-user-build-path n
-fmodules-validate-input-files-content s
-fmodules-validate-once-per-build-session n
-fmodules-validate-system-headers s
-fmodules n
@@ -181,20 +223,22 @@
-fms-extensions s
-fmsc-version s
-fnew-alignment s
-fno-access-control s
-fno-addrsig s
-fno-allow-fortran-gnu-ext s
-fno-assume-sane-operator-new s
-fno-autolink s
-fno-backslash s
-fno-builtin- s
-fno-builtin s
-fno-c++-static-destructors s
-fno-char8_t s
-fno-color-diagnostics s
-fno-common s
-fno-complete-member-pointers s
-fno-constant-cfstrings s
-fno-coverage-mapping s
-fno-crash-diagnostics s
-fno-debug-info-for-profiling s
-fno-cuda-approx-transcendentals n
-fno-debug-macro s
-fno-declspec n
-fno-delayed-template-parsing s
@@ -206,58 +250,82 @@
-fno-double-square-bracket-attributes s
-fno-elide-constructors s
-fno-elide-type s
-fno-experimental-isel s
-fno-eliminate-unused-debug-types s
-fno-exceptions s
-fno-experimental-new-pass-manager s
-fno-experimental-relative-c++-abi-vtables s
-fno-fine-grained-bitfield-accesses s
-fno-fixed-form s
-fno-fixed-point s
-fno-force-enable-int128 s
-fno-fortran-main s
-fno-free-form s
-fno-func-args-alias s
-fno-global-isel s
-fno-gnu-inline-asm s
-fno-gpu-allow-device-init s
-fno-hip-new-launch-api s
-fno-integrated-as s
-fno-integrated-cc1 s
-fno-jump-tables s
-fno-lax-vector-conversions s
-fno-keep-static-consts s
-fno-lto s
-fno-memory-profile s
-fno-merge-all-constants s
-fno-no-access-control s
-fno-objc-infer-related-result-type s
-fno-operator-names s
-fno-pch-codegen s
-fno-pch-debuginfo s
-fno-plt s
-fno-preserve-as-comments s
-fno-profile-generate s
-fno-profile-instr-generate s
-fno-profile-instr-use s
-fno-register-global-dtors-with-atexit s
-fno-reroll-loops s
-fno-rtlib-add-rpath s
-fno-rtti-data s
-fno-rtti s
-fno-sanitize-address-poison-custom-array-cookie s
-fno-sanitize-address-use-after-scope s
-fno-sanitize-address-use-odr-indicator s
-fno-sanitize-blacklist s
-fno-sanitize-cfi-cross-dso s
-fno-sanitize-coverage s
-fno-sanitize-memory-track-origins s
-fno-sanitize-memory-use-after-dtor s
-fno-sanitize-recover s
-fno-sanitize-stats s
-fno-sanitize-thread-atomics s
-fno-sanitize-thread-func-entry-exit s
-fno-sanitize-thread-memory-access s
-fno-sanitize-trap s
-fno-sanitize-address-poison-custom-array-cookie h
-fno-sanitize-address-use-after-scope h
-fno-sanitize-address-use-odr-indicator h
-fno-sanitize-blacklist h
-fno-sanitize-cfi-canonical-jump-tables h
-fno-sanitize-cfi-cross-dso h
-fno-sanitize-coverage h
-fno-sanitize-memory-track-origins h
-fno-sanitize-memory-use-after-dtor h
-fno-sanitize-recover h
-fno-sanitize-stats h
-fno-sanitize-thread-atomics h
-fno-sanitize-thread-func-entry-exit h
-fno-sanitize-thread-memory-access h
-fno-sanitize-trap h
-fno-sanitize-trap h
-fno-short-wchar s
-fno-show-column s
-fno-show-source-location s
-fno-signed-char s
-fno-signed-zeros s
-fno-spell-checking s
-fno-split-machine-functions s
-fno-stack-clash-protection s
-fno-stack-protector s
-fno-stack-size-section s
-fno-standalone-debug s
-fno-strict-float-cast-overflow s
-fno-strict-return s
-fno-sycl n
-fno-temp-file s
-fno-threadsafe-statics s
-fno-trigraphs s
-fno-unique-section-names s
-fno-unroll-loops s
-fno-use-cxa-atexit s
-fno-use-flang-math-libs s
-fno-use-init-array s
-fno-visibility-inlines-hidden-static-local-var s
-fno-xray-function-index n
-fno-zero-initialized-in-bss s
-fobjc-arc-exceptions n
-fobjc-arc n
-fobjc-exceptions n
@@ -272,8 +340,12 @@
-fpack-struct n
-fpascal-strings s
-fpass-plugin s
-fpatchable-function-entry s
-fpcc-struct-return n
-fplt s
-fpch-codegen s
-fpch-debuginfo s
-fpch-instantiate-templates s
-fpch-validate-input-files-content s
-fplugin s
-fprebuilt-module-path n
-fprofile-exclude-files n
@@ -292,38 +364,51 @@
-fregister-global-dtors-with-atexit s
-frelaxed-template-template-args s
-freroll-loops s
-fropi n
-frtlib-add-rpath s
-fsanitize-address-field-padding n
-fsanitize-address-globals-dead-stripping n
-fsanitize-address-poison-custom-array-cookie n
-fsanitize-address-use-after-scope n
-fsanitize-address-use-odr-indicator n
-fsanitize-blacklist n
-fsanitize-cfi-cross-dso n
-fsanitize-cfi-icall-generalize-pointers n
-fsanitize-coverage n
-fsanitize-hwaddress-abi n
-fsanitize-memory-track-origins n
-fsanitize-memory-track-origins n
-fsanitize-memory-use-after-dtor n
-fsanitize-recover n
-fsanitize-stats n
-fsanitize-thread-atomics n
-fsanitize-thread-func-entry-exit n
-fsanitize-thread-memory-access n
-fsanitize-trap n
-fsanitize-undefined-strip-path-components n
-fsanitize n
-frwpi n
-fsanitize-address-field-padding h
-fsanitize-address-globals-dead-stripping h
-fsanitize-address-poison-custom-array-cookie h
-fsanitize-address-use-after-scope h
-fsanitize-address-use-odr-indicator h
-fsanitize-blacklist h
-fsanitize-cfi-canonical-jump-tables h
-fsanitize-cfi-cross-dso h
-fsanitize-cfi-icall-generalize-pointers h
-fsanitize-coverage-allowlist h
-fsanitize-coverage-blacklist h
-fsanitize-coverage-blocklist h
-fsanitize-coverage-whitelist h
-fsanitize-coverage h
-fsanitize-hwaddress-abi h
-fsanitize-memory-track-origins h
-fsanitize-memory-track-origins h
-fsanitize-memory-use-after-dtor h
-fsanitize-recover h
-fsanitize-stats h
-fsanitize-system-blacklist h
-fsanitize-thread-atomics h
-fsanitize-thread-func-entry-exit h
-fsanitize-thread-memory-access h
-fsanitize-trap h
-fsanitize-trap h
-fsanitize-undefined-strip-path-components h
-fsanitize h
-fsave-optimization-record s
-fsave-optimization-record s
-fseh-exceptions s
-fshort-enums s
-fshort-wchar n
-fshow-overloads s
-fsigned-char s
-fsized-deallocation s
-fsjlj-exceptions s
-fslp-vectorize s
-fsplit-dwarf-inlining n
-fsplit-lto-unit n
-fsplit-machine-functions s
-fstack-clash-protection s
-fstack-protector-all n
-fstack-protector-strong n
-fstack-protector n
@@ -331,23 +416,35 @@
-fstandalone-debug s
-fstrict-enums s
-fstrict-float-cast-overflow s
-fstrict-return s
-fstrict-vtable-pointers s
-fsycl n
-fsystem-module u
-fthin-link-bitcode s
-fthinlto-index n
-ftime-trace-granularity s
-ftime-trace s
-ftrap-function n
-ftrapv-handler n
-ftrapv n
-ftrigraphs s
-ftrivial-auto-var-init-stop-after s
-ftrivial-auto-var-init s
-funique-section-names s
-funique-basic-block-section-names s
-funique-internal-linkage-names s
-funroll-loops s
-fuse-init-array s
-fuse-flang-math-libs s
-fuse-line-directives s
-fvalidate-ast-input-files-content s
-fveclib n
-fvectorize n
-fverbose-asm s
-fvirtual-function-elimination s
-fvisibility-global-new-delete-hidden s
-fvisibility-inlines-hidden-static-local-var s
-fvisibility-inlines-hidden s
-fvisibility-ms-compat s
-fvisibility s
-fwasm-exceptions n
-fwhole-program-vtables n
-fwrapv s
-fwritable-strings s
@@ -355,6 +452,7 @@
-fxray-always-emit-typedevents n
-fxray-always-instrument n
-fxray-attr-list n
-fxray-ignore-loops n
-fxray-instruction-threshold n
-fxray-instrumentation-bundle n
-fxray-instrument n
@@ -370,11 +468,14 @@
-gdwarf-3 s
-gdwarf-4 s
-gdwarf-5 s
-gdwarf s
-gembed-source s
-gline-directives-only s
-gline-tables-only s
-gmodules s
-gno-embed-source s
-gno-inline-line-tables s
--gpu-max-threads-per-block s
-gsplit-dwarf s
-gz s
-gz s
@@ -382,11 +483,12 @@
-g s
--help-hidden s
-help s
--hip-device-lib-path s
--hip-device-lib s
--hip-link s
--hip-version s
-H s
-I- s
-ibuiltininc s
-idirafter s
-iframeworkwithsysroot n
-iframework n
@@ -407,17 +509,30 @@
--libomptarget-nvptx-path n
-L s
-mabicalls n
-maix-struct-return n
-malign-branch-boundary s
-malign-branch s
-malign-double s
-Mallocatable n
-mbackchain n
-mbranch-protection n
-mcode-object-v3 n
-mbranches-within-32B-boundaries s
-mcmodel n
-mcmodel n
-mcmse n
-mcode-object-v3 s
-mcode-object-version s
-mcrc n
-mcumode s
-mdouble s
-MD s
-meabi s
-membedded-data n
-menable-experimental-extensions n
-mexec-model n
-mexecute-only n
-mextern-sdata n
-mfentry s
-mfentry n
-mfix-cortex-a53-835769 n
-mfp32 n
-mfp64 n
@@ -426,6 +541,7 @@
-mglobal-merge s
-mgpopt n
-MG s
-mharden-sls n
-mhvx-length n
-mhvx n
-mhvx n
@@ -433,13 +549,20 @@
--migrate n
-mincremental-linker-compatible s
-mindirect-jump n
-Minform s
-mios-version-min n
-MJ n
-mllvm s
-mlocal-sdata n
-mlong-calls s
-mlong-double-128 h
-mlong-double-64 s
-mlong-double-80 h
-mlvi-cfi h
-mlvi-hardening h
-mmacosx-version-min n
-mmadd4 s
-mmark-bti-property n
-MMD s
-mmemops s
-mms-bitfields n
@@ -447,7 +570,6 @@
-mmt n
-MM s
-mno-abicalls n
-mno-code-object-v3 s
-mno-crc n
-mno-embedded-data n
-mno-execute-only n
@@ -460,6 +582,8 @@
-mno-incremental-linker-compatible s
-mno-local-sdata n
-mno-long-calls s
-mno-lvi-cfi h
-mno-lvi-hardening h
-mno-madd4 s
-mno-memops s
-mno-movt s
@@ -473,48 +597,64 @@
-mno-packets s
-mno-relax s
-mno-restrict-it n
-mno-sram-ecc s
-mno-save-restore n
-mno-seses n
-mno-stack-arg-probe s
-mno-tls-direct-seg-refs s
-mno-unaligned-access n
-mno-xnack s
-mno-wavefrontsize64 s
-mnocrc n
-mnop-mcount s
-mnvj s
-mnvs s
-module-dependency-dir n
-module-file-info n
-momit-leaf-frame-pointer s
-moutline n
-mpacked-stack n
-mpackets s
-mpad-max-prefix-size s
-mpie-copy-relocations s
-mprefer-vector-width n
-MP s
-mqdsp6-compat n
-MQ s
-mrecord-mcount s
-mrelax-all s
-mrelax s
-mrestrict-it n
-mrtd n
-msave-restore n
-mseses n
-msign-return-address n
-msmall-data-limit s
-msoft-float s
-msram-ecc s
-mstack-alignment n
-mstack-arg-probe n
-mstack-probe-size n
-mstackrealign n
-msve-vector-bits n
-msvr4-struct-return n
-mthread-model s
-mtls-direct-seg-refs s
-mtls-size n
-mtp n
-mtune h
-MT n
-munaligned-access n
-MV s
-mwavefrontsize64 s
-mxnack s
-M s
--no-cuda-gpu-arch s
--no-cuda-include-ptx s
--no-cuda-version-check s
-no-flang-libs s
--no-offload-arch s
--no-system-header-prefix s
-nobuiltininc s
-nogpuinc s
-nogpulib s
-nostdinc++ n
-ObjC++ n
-objcmt-atomic-property n
@@ -534,7 +674,9 @@
-objcmt-returns-innerpointer-property n
-objcmt-whitelist-dir-path n
-ObjC n
--offload-arch s
-o s
-parallel-jobs s
-pg s
-pipe s
--precompile s
@@ -545,7 +687,9 @@
-print-prog-name s
-print-resource-dir s
-print-search-dirs s
-print-supported-cpus s
-print-target-triple s
-print-targets s
-pthread s
--ptxas-path n
-P s
@@ -555,6 +699,8 @@
-relocatable-pch s
-rewrite-legacy-objc n
-rewrite-objc n
--rocm-device-lib-path s
--rocm-path s
-Rpass-analysis s
-Rpass-missed s
-Rpass s
@@ -566,9 +712,13 @@
-save-temps s
-serialize-diagnostics s
-shared-libsan n
-static-flang-libs s
-static-libsan n
-static-openmp s
-std s
-stdlib++-isystem s
-stdlib s
-sycl-std n
--system-header-prefix s
-S s
--target s
@@ -594,6 +744,8 @@
-W s
-w s
-Xanalyzer s
-Xarch_device s
-Xarch_host s
-Xassembler s
-Xclang s
-Xcuda-fatbinary s
@@ -2,12 +2,12 @@
## generates documentation about clang options.
clang=/opt/rocm/llvm/bin/clang
clang=/opt/rocm*/llvm/bin/clang
exec > clang_options.md
echo "# Support of Clang options"
echo " Clang version: $($clang --version | head -1)"
echo " Clang version: $($clang --version | head -1|sed 's:\(.*\) (.* \(.*\)).*:\1 \2:')"
echo
echo "|Option|Support|Description|"
echo "|-------|------|-------|"
@@ -40,7 +40,7 @@ $clang --help | sed '1,5d'| while read a b; do
desc="$b"
fi
supp=
key=$(echo $opt |sed 's:\([^ =<]*\).*:\1:')
key=$(printf "%s" "$opt" |sed 's:\([^ =<]*\).*:\1:')
if [[ "$key" != "" ]]; then
supp="${db[$key]}"
#echo "opt=$opt supp=${db[$opt]}"
@@ -48,28 +48,36 @@ $clang --help | sed '1,5d'| while read a b; do
if [[ "$supp" == "" ]]; then
if [[ "$desc" = *AArch* ||\
"$desc" = *MIPS* || \
"$desc" = *ARM* || \
"$desc" = *Objective-C* ]]; then
"$desc" = *ARM* || \
"$desc" = *Arm* || \
"$desc" = *SYCL* || \
"$desc" = *PPC* || \
"$desc" = *RISC-V* || \
"$desc" = *WebAssembly* || \
"$desc" = *Objective-C* || \
"$opt" = *xray* \
]]; then
supp="n"
elif [[ "$desc" = *OpenCL* ||\
"$desc" = *HIP* || \
"$desc" = *AMDGPU* ]]; then
elif [[ "$opt" = *sanity* ]]; then
supp="h"
else
supp="s"
fi
fi
s=$supp
case $supp in
s) supp="Supported";;
n) supp="Unsupported";;
h) supp="Supported on Host only";;
esac
desc=$(echo "$desc"| sed -e 's:|:\\|:g')
desc=$(echo "$desc"| sed -e 's:^ *::' -e 's:|:\\|:g')
#echo a=$a
#echo b=$b
#echo opt=$opt
#echo desc=$desc
if [[ "$desc" != "" ]]; then
echo $key >>$tmpf
printf "%s %s\n" "$key" "$s" >>$tmpf
echo '|`'$opt'`|'$supp'|`'$desc'`|'
fi
done