.. program:: clang
.. option:: -B<prefix>, --prefix <arg>, --prefix=<arg>
-Search $prefix/$triple-$file and $prefix$file for executables, libraries, includes, and data files used by the compiler. $prefix may or may not be a directory
+Search $prefix$file for executables, libraries, and data files. If $prefix is a directory, search $prefix/$file
.. option:: -F<arg>
.. option:: --offload=<arg1>,<arg2>...
-Specify comma-separated list of offloading target triples (HIP only)
+Specify comma-separated list of offloading target triples (CUDA and HIP only)
.. option:: -p, --profile
Generate Interface Stub Files, emit merged text not binary.
+.. option:: -extract-api
+
+Extract API information
+
+.. option:: -fopenmp-new-driver
+
+Use the new driver for OpenMP offloading.
+
.. option:: -fsyntax-only
.. option:: -module-file-info
Inline functions which are (explicitly or implicitly) marked inline
-.. option:: -flegacy-pass-manager, -fno-experimental-new-pass-manager, -fno-legacy-pass-manager
+.. option:: -flegacy-pass-manager, -fno-legacy-pass-manager
Use the legacy pass manager in LLVM (deprecated, to be removed in a future release)
Add directory to SYSTEM include search path, absolute paths are relative to -isysroot
-.. option:: --libomptarget-amdgpu-bc-path=<arg>
+.. option:: --libomptarget-amdgpu-bc-path=<arg>, --libomptarget-amdgcn-bc-path=<arg>
-Path to libomptarget-amdgpu bitcode library
+Path to libomptarget-amdgcn bitcode library
.. option:: --libomptarget-nvptx-bc-path=<arg>
Embed LLVM bitcode (option: off, all, bitcode, marker)
+.. option:: -fembed-offload-object=<arg>
+
+Embed Offloading device-side binary into host object file as a section.
+
.. option:: -femit-all-decls
Emit all declarations, even if unused
.. option:: -ffinite-math-only, -fno-finite-math-only
-Allow floating-point optimizations that assume arguments and results are not NaNs or +-inf. This defines the \_\_FINITE\_MATH\_ONLY\_\_ preprocessor macro.
-
.. option:: -ffixed-point, -fno-fixed-point
Enable fixed point types
Use new kernel launching API for HIP
-.. option:: -fhonor-infinities, -fhonor-infinites, -fno-honor-infinities, -fno-honor-infinites
-
-Specify that floating-point optimizations are not allowed that assume arguments and results are not +-inf.
+.. option:: -fhonor-infinities, -fhonor-infinites, -fno-honor-infinities
.. option:: -fhonor-nans, -fno-honor-nans
-Specify that floating-point optimizations are not allowed that assume arguments and results are not NANs.
-
.. option:: -fhosted
.. option:: -fignore-exceptions
Accept some non-standard constructs supported by the Microsoft compiler
+.. option:: -fms-hotpatch
+
+Ensure that all functions can be hotpatched at runtime
+
.. option:: -fms-memptr-rep=<arg>
.. option:: -fms-volatile
Enable all Clang extensions for OpenMP directives and clauses
+.. option:: -fopenmp-implicit-rpath, -fno-openmp-implicit-rpath
+
+Set rpath on OpenMP executables
+
.. option:: -fopenmp-simd, -fno-openmp-simd
Emit OpenMP code only for SIMD-based constructs.
Use the new bitcode library for OpenMP offloading
-.. option:: -fopenmp-new-driver
-
-Use the new scheme for creating and linking OpenMP offloading code
-
.. option:: -fopenmp-version=<arg>
Set OpenMP version (e.g. 45 for OpenMP 4.5, 50 for OpenMP 5.0). Default value is 50.
Generate read-write position independent code (ARM only)
+.. option:: -fsanitize-memory-param-retval, -fno-sanitize-memory-param-retval
+
+Enable detection of uninitialized parameters and return values
+
.. option:: -fsave-optimization-record, -fno-save-optimization-record
Generate a YAML optimization record file
When using -fxray-function-groups, select which group of functions to instrument. Valid range is 0 to fxray-function-groups - 1
+.. option:: -fzero-call-used-regs=<arg>
+
+Clear call-used registers upon function return.
+
.. option:: -fzero-initialized-in-bss, -fno-zero-initialized-in-bss
.. option:: -fzvector, -fno-zvector, -mzvector
Legacy option to specify code object ABI V3 (AMDGPU only)
-.. option:: -mcode-object-version=<version>
+.. option:: -mcode-object-version=<arg>
-Specify code object ABI version. Defaults to 3. (AMDGPU only)
+Specify code object ABI version. Allowed values are 2, 3, 4, and 5. Defaults to 4. (AMDGPU only)
.. option:: -mconsole<arg>
Use Intel MCU ABI
+.. option:: -mibt-seal
+
+Optimize fcf-protection=branch/full (requires LTO).
+
.. option:: -mignore-xcoff-visibility
Not emit the visibility attribute for asm in AIX OS or give all symbols 'unspecified' visibility in XCOFF object file
.. option:: -mrestrict-it, -mno-restrict-it
-Disallow generation of complex IT blocks. It is off by default.
+Disallow generation of complex IT blocks.
.. option:: -mtp=<arg>