Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 1bf1829

Browse files
[docs] Regenerate command line options reference
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312106 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent ca9ec86 commit 1bf1829

File tree

1 file changed

+53
-4
lines changed

1 file changed

+53
-4
lines changed

docs/ClangCommandLineReference.rst

+53-4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ Pass <arg> to fatbinary invocation
5656

5757
Pass <arg> to the ptxas assembler
5858

59+
.. option:: -Xopenmp-target <arg>
60+
61+
Pass <arg> to the target offloading toolchain.
62+
63+
.. program:: clang1
64+
.. option:: -Xopenmp-target=<arg> <arg2>
65+
.. program:: clang
66+
67+
Pass <arg> to the specified target offloading toolchain. The triple that identifies the toolchain must be provided after the equals sign.
68+
5969
.. option:: -Z<arg>
6070

6171
.. option:: -a<arg>, --profile-blocks
@@ -312,6 +322,10 @@ Disable standard #include directories for the C++ standard library
312322

313323
.. option:: -nostdlib, --no-standard-libraries
314324

325+
.. program:: clang1
326+
.. option:: -nostdlib++
327+
.. program:: clang
328+
315329
.. option:: -nostdlibinc
316330

317331
.. option:: -o<file>, --output <arg>, --output=<arg>
@@ -656,6 +670,10 @@ Pass <arg> to the assembler
656670

657671
Pass <arg> to the clang compiler
658672

673+
.. option:: -fclang-abi-compat=<version>
674+
675+
Attempt to match the ABI of Clang <version>
676+
659677
.. option:: -fcomment-block-commands=<arg>,<arg2>...
660678

661679
Treat each comma separated argument in <arg> as a documentation comment block command
@@ -742,6 +760,8 @@ Enable origins tracking in MemorySanitizer
742760

743761
Enable use-after-destroy detection in MemorySanitizer
744762

763+
.. option:: -fsanitize-minimal-runtime, -fno-sanitize-minimal-runtime
764+
745765
.. option:: -fsanitize-recover, -fno-sanitize-recover
746766

747767
.. program:: clang1
@@ -852,6 +872,10 @@ Use the last modification time of <file> as the build session timestamp
852872

853873
Time when the current build session started
854874

875+
.. option:: -fmodule-file=\[<name>=\]<file>
876+
877+
Specify the mapping of module name to precompiled module file, or load a module file if name is omitted.
878+
855879
.. option:: -fmodules-cache-path=<directory>
856880

857881
Specify the module cache path
@@ -1361,10 +1385,6 @@ Specify the maximum alignment to enforce on pointers lacking an explicit alignme
13611385

13621386
.. option:: -fmodule-file-deps, -fno-module-file-deps
13631387

1364-
.. option:: -fmodule-file=<file>
1365-
1366-
Load this precompiled module file
1367-
13681388
.. option:: -fmodule-map-file=<file>
13691389

13701390
Load this module map file
@@ -1447,6 +1467,10 @@ Do not treat C++ operator name keywords as synonyms for operators
14471467

14481468
.. option:: -fno-working-directory
14491469

1470+
.. option:: -fnoopenmp-relocatable-target
1471+
1472+
Do not compile OpenMP target code as relocatable.
1473+
14501474
.. option:: -fnoopenmp-use-tls
14511475

14521476
.. option:: -fobjc-abi-version=<arg>
@@ -1489,6 +1513,10 @@ Enable ARC-style weak references in Objective-C
14891513

14901514
.. option:: -fopenmp-dump-offload-linker-script
14911515

1516+
.. option:: -fopenmp-relocatable-target
1517+
1518+
OpenMP target code is compiled as relocatable using the -c flag. For OpenMP targets the code is relocatable by default.
1519+
14921520
.. option:: -fopenmp-use-tls
14931521

14941522
.. option:: -fopenmp-version=<arg>
@@ -1567,6 +1595,13 @@ Generate instrumented code to collect execution counts into <file> (overridden b
15671595

15681596
Use instrumentation data for profile-guided optimization
15691597

1598+
.. option:: -fprofile-sample-accurate, -fauto-profile-accurate, -fno-profile-sample-accurate
1599+
1600+
Specifies that the sample profile is accurate. If the sample
1601+
profile is accurate, callsites without profile samples are marked
1602+
as cold. Otherwise, treat callsites without profile samples as if
1603+
we have no profile
1604+
15701605
.. option:: -fprofile-sample-use, -fauto-profile, -fno-profile-sample-use
15711606

15721607
.. program:: clang1
@@ -1901,6 +1936,8 @@ Put objects of at most <size> bytes into small data section (MIPS / Hexagon)
19011936

19021937
Enable SVR4-style position-independent code (Mips only)
19031938

1939+
.. option:: -mabs=<arg>
1940+
19041941
.. option:: -malign-double
19051942

19061943
Align doubles to two words in structs (x86 only)
@@ -1939,6 +1976,14 @@ Link stack frames through backchain on System Z
19391976

19401977
Set EABI type, e.g. 4, 5 or gnu (default depends on triple)
19411978

1979+
.. option:: -membedded-data, -mno-embedded-data
1980+
1981+
Place constants in the .rodata section instead of the .sdata section even if they meet the -G <size> threshold (MIPS)
1982+
1983+
.. option:: -mextern-sdata, -mno-extern-sdata
1984+
1985+
Assume that externally defined data is in the small data if it meets the -G <size> threshold (MIPS)
1986+
19421987
.. option:: -mfentry
19431988

19441989
Insert calls to fentry at function entry (x86 only)
@@ -1989,6 +2034,10 @@ Use Intel MCU ABI
19892034

19902035
.. option:: -mldc1-sdc1, -mno-ldc1-sdc1
19912036

2037+
.. option:: -mlocal-sdata, -mno-local-sdata
2038+
2039+
Extend the -G behaviour to object local data (MIPS)
2040+
19922041
.. option:: -mlong-calls, -mno-long-calls
19932042

19942043
Generate branches with extended addressability, usually via indirect jumps.

0 commit comments

Comments
 (0)