diff --git a/clang/docs/ClangCommandLineReference.rst b/clang/docs/ClangCommandLineReference.rst index 6864f6058a3f..0dca391cf0b5 100644 --- a/clang/docs/ClangCommandLineReference.rst +++ b/clang/docs/ClangCommandLineReference.rst @@ -1641,6 +1641,10 @@ Sets various macros to claim compatibility with the given GCC version (default i Allow device side init function in HIP +.. option:: -fgpu-defer-diag, -fno-gpu-defer-diag + +Defer host/device related diagnostic messages for CUDA/HIP + .. option:: -fgpu-rdc, -fcuda-rdc, -fno-gpu-rdc Generate relocatable device code, also known as separate compilation mode @@ -2655,6 +2659,10 @@ Align selected branches (fused, jcc, jmp) within 32-byte boundary .. option:: -mcmodel=, -mcmodel=medany (equivalent to -mcmodel=medium), -mcmodel=medlow (equivalent to -mcmodel=small) +.. option:: -mcode-object-v3, -mno-code-object-v3 + +Legacy option to specify code object ABI V2 (-mnocode-object-v3) or V3 (-mcode-object-v3) (AMDGPU only) + .. option:: -mconsole .. program:: clang1 @@ -2831,6 +2839,18 @@ Enable stack probes Set the stack probe size +.. option:: -mstack-protector-guard-offset= + +Use the given offset for addressing the stack-protector guard + +.. option:: -mstack-protector-guard-reg= + +Use the given reg for addressing the stack-protector guard + +.. option:: -mstack-protector-guard= + +Use the given guard (global, tls) for addressing the stack-protector guard + .. option:: -mstackrealign, -mno-stackrealign Force realign the stack at entry to every function @@ -2859,7 +2879,7 @@ Specify bit size of immediate TLS offsets (AArch64 ELF only): 12 (for 4KB) \| 24 .. option:: -mtune= .. program:: clang -Only supported on X86. Otherwise accepted for compatibility with GCC. +Only supported on X86 and RISC-V. Otherwise accepted for compatibility with GCC. .. option:: -mtvos-version-min=, -mappletvos-version-min= @@ -2873,7 +2893,7 @@ Only supported on X86. Otherwise accepted for compatibility with GCC. .. option:: -mwavefrontsize64, -mno-wavefrontsize64 -Wavefront size 64 is used +Specify wavefront size 64 mode (AMDGPU only) .. option:: -mwindows @@ -2935,28 +2955,28 @@ Specify the size in bits of an SVE vector register. Defaults to the vector lengt AMDGPU ------ -.. option:: -mcode-object-v3, -mno-code-object-v3 - -Legacy option to specify code object v3 (AMDGPU only) - .. option:: -mcumode, -mno-cumode -CU wavefront execution mode is used (AMDGPU only) +Specify CU (-mcumode) or WGP (-mno-cumode) wavefront execution mode (AMDGPU only) .. option:: -msram-ecc, -mno-sram-ecc -Enable SRAM ECC (AMDGPU only) +Specify SRAM ECC mode (AMDGPU only) .. option:: -mxnack, -mno-xnack -Enable XNACK (AMDGPU only) +Specify XNACK mode (AMDGPU only) ARM --- -.. option:: -fAAPCSBitfieldLoad +.. option:: -faapcs-bitfield-load Follows the AAPCS standard that all volatile bit-field write generates at least one load. (ARM only). +.. option:: -faapcs-bitfield-width, -fno-aapcs-bitfield-width + +Follow the AAPCS standard requirement stating that volatile bit-field width is dictated by the field container type. (ARM only). + .. option:: -ffixed-r9 Reserve the r9 register (ARM only) @@ -3490,13 +3510,7 @@ Set DWARF fission mode to either 'split' or 'single' .. option:: -gstrict-dwarf, -gno-strict-dwarf -.. option:: -gz - -DWARF debug sections compression type - -.. program:: clang1 -.. option:: -gz= -.. program:: clang +.. option:: -gz=, -gz (equivalent to -gz=zlib) DWARF debug sections compression type diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 0b9817a0cfd4..09996af6f91f 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -2468,28 +2468,25 @@ def mexec_model_EQ : Joined<["-"], "mexec-model=">, Group; def mcode_object_v3_legacy : Flag<["-"], "mcode-object-v3">, Group, - HelpText<"Legacy option to specify code object v3 (AMDGPU only)">; -def mno_code_object_v3_legacy : Flag<["-"], "mno-code-object-v3">, Group, - HelpText<"Legacy option to specify code object v2 (AMDGPU only)">; - -def mxnack : Flag<["-"], "mxnack">, Group, - HelpText<"Enable XNACK (AMDGPU only)">; -def mno_xnack : Flag<["-"], "mno-xnack">, Group, - HelpText<"Disable XNACK (AMDGPU only)">; -def msram_ecc : Flag<["-"], "msram-ecc">, Group, - HelpText<"Enable SRAM ECC (AMDGPU only)">; -def mno_sram_ecc : Flag<["-"], "mno-sram-ecc">, Group, - HelpText<"Disable SRAM ECC (AMDGPU only)">; + HelpText<"Legacy option to specify code object ABI V2 (-mnocode-object-v3) or V3 (-mcode-object-v3) (AMDGPU only)">; +def mno_code_object_v3_legacy : Flag<["-"], "mno-code-object-v3">, Group; def mcumode : Flag<["-"], "mcumode">, Group, - HelpText<"CU wavefront execution mode is used (AMDGPU only)">; -def mno_cumode : Flag<["-"], "mno-cumode">, Group, - HelpText<"WGP wavefront execution mode is used (AMDGPU only)">; + HelpText<"Specify CU (-mcumode) or WGP (-mno-cumode) wavefront execution mode (AMDGPU only)">; +def mno_cumode : Flag<["-"], "mno-cumode">, Group; -def mwavefrontsize64 : Flag<["-"], "mwavefrontsize64">, - Group, HelpText<"Wavefront size 64 is used">; -def mno_wavefrontsize64 : Flag<["-"], "mno-wavefrontsize64">, - Group, HelpText<"Wavefront size 32 is used">; +def msram_ecc : Flag<["-"], "msram-ecc">, Group, + HelpText<"Specify SRAM ECC mode (AMDGPU only)">; +def mno_sram_ecc : Flag<["-"], "mno-sram-ecc">, Group; + +def mwavefrontsize64 : Flag<["-"], "mwavefrontsize64">, Group, + HelpText<"Specify wavefront size 64 mode (AMDGPU only)">; +def mno_wavefrontsize64 : Flag<["-"], "mno-wavefrontsize64">, Group, + HelpText<"Specify wavefront size 32 mode (AMDGPU only)">; + +def mxnack : Flag<["-"], "mxnack">, Group, + HelpText<"Specify XNACK mode (AMDGPU only)">; +def mno_xnack : Flag<["-"], "mno-xnack">, Group; def faltivec : Flag<["-"], "faltivec">, Group, Flags<[DriverOption]>; def fno_altivec : Flag<["-"], "fno-altivec">, Group, Flags<[DriverOption]>; diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst index 2e9f2af802f0..2770a7432244 100644 --- a/llvm/docs/AMDGPUUsage.rst +++ b/llvm/docs/AMDGPUUsage.rst @@ -1411,13 +1411,13 @@ The DWARF address space mapping used for AMDGPU is defined in address address space space ======================================= ===== ======= ======== ================= ======================= - ``DW_ASPACE_none`` 0x00 8 4 Global *default address space* - ``DW_ASPACE_AMDGPU_generic`` 0x01 8 4 Generic (Flat) - ``DW_ASPACE_AMDGPU_region`` 0x02 4 4 Region (GDS) - ``DW_ASPACE_AMDGPU_local`` 0x03 4 4 Local (group/LDS) + ``DW_ASPACE_none`` 0x00 64 32 Global *default address space* + ``DW_ASPACE_AMDGPU_generic`` 0x01 64 32 Generic (Flat) + ``DW_ASPACE_AMDGPU_region`` 0x02 32 32 Region (GDS) + ``DW_ASPACE_AMDGPU_local`` 0x03 32 32 Local (group/LDS) *Reserved* 0x04 - ``DW_ASPACE_AMDGPU_private_lane`` 0x05 4 4 Private (Scratch) *focused lane* - ``DW_ASPACE_AMDGPU_private_wave`` 0x06 4 4 Private (Scratch) *unswizzled wavefront* + ``DW_ASPACE_AMDGPU_private_lane`` 0x05 32 32 Private (Scratch) *focused lane* + ``DW_ASPACE_AMDGPU_private_wave`` 0x06 32 32 Private (Scratch) *unswizzled wavefront* ======================================= ===== ======= ======== ================= ======================= See :ref:`amdgpu-address-spaces` for information on the AMDGPU address spaces