authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-04-26 12:44:20-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-05-08 19:37:28-07:00
log21f1e76efeb2a1c1c9df32628b81713f9876d5ab
tree2f14e64b1253ba1afa2f7f26174da896c7ae2855
parent376387c390babd76bb3a177757e3e11f1c6540c3

zig cc: update clang CLI data to LLVM 18

release/18.x branch, commit 78b99c73ee4b96fe9ce0e294d4632326afb2db42

2 files changed, 268 insertions(+), 40 deletions(-)

src/clang_options_data.zig+263-38
......@@ -460,6 +460,14 @@ sepd1("Zlinker-input"),
460460 .pd2 = false,
461461 .psl = true,
462462},
463.{
464 .name = "Gregcall4",
465 .syntax = .flag,
466 .zig_equivalent = .other,
467 .pd1 = true,
468 .pd2 = false,
469 .psl = true,
470},
463471.{
464472 .name = "Gv",
465473 .syntax = .flag,
......@@ -2129,6 +2137,11 @@ flagpd1("analyzer-viz-egraph-graphviz"),
21292137flagpd1("analyzer-werror"),
21302138flagpd1("fslp-vectorize-aggressive"),
21312139flagpd1("fno-slp-vectorize-aggressive"),
2140sepd1("fnew-alignment"),
2141flagpd1("faligned-new"),
2142flagpd1("fno-aligned-new"),
2143flagpd1("fcuda-rdc"),
2144flagpd1("fno-cuda-rdc"),
21322145flagpd1("fsched-interblock"),
21332146flagpd1("ftree-vectorize"),
21342147flagpd1("fno-tree-vectorize"),
......@@ -2167,8 +2180,10 @@ flagpd1("mcpu=help"),
21672180flagpd1("mtune=help"),
21682181flagpd1("integrated-as"),
21692182flagpd1("no-integrated-as"),
2170flagpd1("shared-libasan"),
21712183flagpd1("fopenmp-is-device"),
2184flagpd1("shared-libasan"),
2185flagpd1("fcuda-approx-transcendentals"),
2186flagpd1("fno-cuda-approx-transcendentals"),
21722187.{
21732188 .name = "Gs",
21742189 .syntax = .flag,
......@@ -2309,12 +2324,20 @@ sepd1("Xmicrosoft-visualc-tools-root"),
23092324sepd1("Xmicrosoft-visualc-tools-version"),
23102325sepd1("Xmicrosoft-windows-sdk-root"),
23112326sepd1("Xmicrosoft-windows-sdk-version"),
2327.{
2328 .name = "Qembed_debug",
2329 .syntax = .flag,
2330 .zig_equivalent = .other,
2331 .pd1 = true,
2332 .pd2 = false,
2333 .psl = true,
2334},
2335flagpd1("fident"),
2336flagpd1("fno-ident"),
23122337flagpd1("fdiagnostics-color"),
23132338flagpd1("fno-diagnostics-color"),
23142339flagpd1("frecord-gcc-switches"),
23152340flagpd1("fno-record-gcc-switches"),
2316flagpd1("fident"),
2317flagpd1("fno-ident"),
23182341flagpd1("Xparser"),
23192342flagpd1("Xcompiler"),
23202343flagpd1("fexpensive-optimizations"),
......@@ -2323,6 +2346,7 @@ flagpd1("fdefer-pop"),
23232346flagpd1("fno-defer-pop"),
23242347flagpd1("fextended-identifiers"),
23252348flagpd1("fno-extended-identifiers"),
2349flagpd1("fno-sanitize-blacklist"),
23262350.{
23272351 .name = "config",
23282352 .syntax = .separate,
......@@ -2331,15 +2355,9 @@ flagpd1("fno-extended-identifiers"),
23312355 .pd2 = true,
23322356 .psl = false,
23332357},
2334flagpd1("fno-sanitize-blacklist"),
23352358flagpd1("fhonor-infinites"),
23362359flagpd1("fno-honor-infinites"),
23372360flagpd1("findirect-virtual-calls"),
2338flagpd1("fcuda-rdc"),
2339flagpd1("fno-cuda-rdc"),
2340sepd1("fnew-alignment"),
2341flagpd1("faligned-new"),
2342flagpd1("fno-aligned-new"),
23432361.{
23442362 .name = "ansi",
23452363 .syntax = .flag,
......@@ -2380,7 +2398,6 @@ sepd1("bundle_loader"),
23802398},
23812399sepd1("c-isystem"),
23822400flagpd1("canonical-prefixes"),
2383flagpd1("canonical-system-headers"),
23842401flagpd1("cc1"),
23852402flagpd1("cc1as"),
23862403flagpd1("ccc-arcmt-check"),
......@@ -2438,8 +2455,6 @@ flagpd1("compiler-options-dump"),
24382455 .pd2 = true,
24392456 .psl = false,
24402457},
2441sepd1("coverage-data-file"),
2442sepd1("coverage-notes-file"),
24432458flagpd1("cpp"),
24442459flagpd1("cpp-precomp"),
24452460.{
......@@ -2548,6 +2563,14 @@ flagpd1("dynamic"),
25482563 .pd2 = false,
25492564 .psl = false,
25502565},
2566.{
2567 .name = "e",
2568 .syntax = .separate,
2569 .zig_equivalent = .entry,
2570 .pd1 = true,
2571 .pd2 = false,
2572 .psl = false,
2573},
25512574flagpd1("ehcontguard"),
25522575flagpd1("emit-ast"),
25532576flagpd1("emit-codegen-only"),
......@@ -2598,7 +2621,7 @@ flagpd1("emit-pch"),
25982621 .psl = true,
25992622},
26002623flagpd1("enable-noundef-analysis"),
2601flagpd1("enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang"),
2624flagpd1("enable-tlsdesc"),
26022625.{
26032626 .name = "end-no-unused-arguments",
26042627 .syntax = .flag,
......@@ -2646,9 +2669,12 @@ flagpd1("fallow-unsupported"),
26462669flagpd1("falternative-parameter-statement"),
26472670flagpd1("faltivec"),
26482671flagpd1("fanalyzed-objects-for-unparse"),
2672flagpd1("fandroid-pad-segment"),
26492673flagpd1("fkeep-inline-functions"),
26502674flagpd1("funit-at-a-time"),
26512675flagpd1("fansi-escape-codes"),
2676flagpd1("fapinotes"),
2677flagpd1("fapinotes-modules"),
26522678flagpd1("fapple-kext"),
26532679flagpd1("fapple-link-rtlib"),
26542680flagpd1("fapple-pragma-pack"),
......@@ -2658,6 +2684,7 @@ flagpd1("fapprox-func"),
26582684flagpd1("fasm"),
26592685flagpd1("fasm-blocks"),
26602686flagpd1("fassociative-math"),
2687flagpd1("fassume-nothrow-exception-dtor"),
26612688flagpd1("fassume-sane-operator-new"),
26622689flagpd1("fassume-unique-vtables"),
26632690flagpd1("fast"),
......@@ -2665,6 +2692,7 @@ flagpd1("fastcp"),
26652692flagpd1("fastf"),
26662693flagpd1("fasync-exceptions"),
26672694flagpd1("fasynchronous-unwind-tables"),
2695flagpd1("fauto-import"),
26682696flagpd1("fauto-profile"),
26692697flagpd1("fauto-profile-accurate"),
26702698flagpd1("fautolink"),
......@@ -2685,6 +2713,7 @@ flagpd1("fbranch-count-reg"),
26852713 .pd2 = false,
26862714 .psl = false,
26872715},
2716flagpd1("fbuiltin-headers-in-system-modules"),
26882717flagpd1("fbuiltin-module-map"),
26892718flagpd1("fcall-saved-x10"),
26902719flagpd1("fcall-saved-x11"),
......@@ -2740,7 +2769,6 @@ flagpd1("fcreate-profile"),
27402769flagpd1("fcs-profile-generate"),
27412770flagpd1("fctor-dtor-return-this"),
27422771flagpd1("fcuda-allow-variadic-functions"),
2743flagpd1("fcuda-approx-transcendentals"),
27442772flagpd1("fcuda-flush-denormals-to-zero"),
27452773sepd1("fcuda-include-gpubinary"),
27462774flagpd1("fcuda-is-device"),
......@@ -2788,6 +2816,7 @@ flagpd1("fdefault-double-8"),
27882816flagpd1("fdefault-inline"),
27892817flagpd1("fdefault-integer-8"),
27902818flagpd1("fdefault-real-8"),
2819flagpd1("fdefine-target-os-macros"),
27912820flagpd1("fdelayed-template-parsing"),
27922821flagpd1("fdelete-null-pointer-checks"),
27932822flagpd1("fdeprecated-macro"),
......@@ -2840,6 +2869,7 @@ flagpd1("fexceptions"),
28402869flagpd1("fexperimental-isel"),
28412870flagpd1("fexperimental-library"),
28422871flagpd1("fexperimental-new-constant-interpreter"),
2872flagpd1("fexperimental-omit-vtable-rtti"),
28432873flagpd1("fexperimental-relative-c++-abi-vtables"),
28442874flagpd1("fexperimental-sanitize-metadata=atomics"),
28452875flagpd1("fexperimental-sanitize-metadata=covered"),
......@@ -2873,6 +2903,33 @@ flagpd1("ffixed-d5"),
28732903flagpd1("ffixed-d6"),
28742904flagpd1("ffixed-d7"),
28752905flagpd1("ffixed-form"),
2906flagpd1("ffixed-g1"),
2907flagpd1("ffixed-g2"),
2908flagpd1("ffixed-g3"),
2909flagpd1("ffixed-g4"),
2910flagpd1("ffixed-g5"),
2911flagpd1("ffixed-g6"),
2912flagpd1("ffixed-g7"),
2913flagpd1("ffixed-i0"),
2914flagpd1("ffixed-i1"),
2915flagpd1("ffixed-i2"),
2916flagpd1("ffixed-i3"),
2917flagpd1("ffixed-i4"),
2918flagpd1("ffixed-i5"),
2919flagpd1("ffixed-l0"),
2920flagpd1("ffixed-l1"),
2921flagpd1("ffixed-l2"),
2922flagpd1("ffixed-l3"),
2923flagpd1("ffixed-l4"),
2924flagpd1("ffixed-l5"),
2925flagpd1("ffixed-l6"),
2926flagpd1("ffixed-l7"),
2927flagpd1("ffixed-o0"),
2928flagpd1("ffixed-o1"),
2929flagpd1("ffixed-o2"),
2930flagpd1("ffixed-o3"),
2931flagpd1("ffixed-o4"),
2932flagpd1("ffixed-o5"),
28762933flagpd1("ffixed-point"),
28772934flagpd1("ffixed-r19"),
28782935flagpd1("ffixed-r9"),
......@@ -2910,6 +2967,7 @@ flagpd1("ffixed-x9"),
29102967flagpd1("ffloat-store"),
29112968flagpd1("ffor-scope"),
29122969flagpd1("fforbid-guard-variables"),
2970flagpd1("fforce-check-cxx20-modules-input-files"),
29132971flagpd1("fforce-dwarf-frame"),
29142972flagpd1("fforce-emit-vtables"),
29152973flagpd1("fforce-enable-int128"),
......@@ -2946,6 +3004,7 @@ flagpd1("fgnu-inline-asm"),
29463004flagpd1("fgnu-keywords"),
29473005flagpd1("fgnu-runtime"),
29483006flagpd1("fgpu-allow-device-init"),
3007flagpd1("fgpu-approx-transcendentals"),
29493008flagpd1("fgpu-defer-diag"),
29503009flagpd1("fgpu-exclude-wrong-side-overloads"),
29513010flagpd1("fgpu-flush-denormals-to-zero"),
......@@ -2996,6 +3055,8 @@ flagpd1("fjmc"),
29963055flagpd1("fjump-tables"),
29973056flagpd1("fkeep-persistent-storage-variables"),
29983057flagpd1("fkeep-static-consts"),
3058flagpd1("fkeep-system-includes"),
3059flagpd1("flang-deprecated-no-hlfir"),
29993060flagpd1("flang-experimental-hlfir"),
30003061flagpd1("flang-experimental-polymorphism"),
30013062flagpd1("flarge-sizes"),
......@@ -3018,6 +3079,7 @@ flagpd1("flto-unit"),
30183079flagpd1("flto-visibility-public-std"),
30193080flagpd1("fmath-errno"),
30203081flagpd1("fmax-identifier-length"),
3082flagpd1("fcoverage-mcdc"),
30213083flagpd1("fmemory-profile"),
30223084flagpd1("fmerge-all-constants"),
30233085flagpd1("fmerge-constants"),
......@@ -3040,6 +3102,8 @@ flagpd1("fmodules-disable-diagnostic-validation"),
30403102flagpd1("fmodules-hash-content"),
30413103flagpd1("fmodules-local-submodule-visibility"),
30423104flagpd1("fmodules-search-all"),
3105flagpd1("fmodules-skip-diagnostic-options"),
3106flagpd1("fmodules-skip-header-search-paths"),
30433107flagpd1("fmodules-strict-context-hash"),
30443108flagpd1("fmodules-strict-decluse"),
30453109sepd1("fmodules-user-build-path"),
......@@ -3090,18 +3154,23 @@ flagpd1("fno-all-intrinsics"),
30903154flagpd1("fno-allow-editor-placeholders"),
30913155flagpd1("fno-altivec"),
30923156flagpd1("fno-analyzed-objects-for-unparse"),
3157flagpd1("fno-android-pad-segment"),
30933158flagpd1("fno-keep-inline-functions"),
30943159flagpd1("fno-unit-at-a-time"),
3160flagpd1("fno-apinotes"),
3161flagpd1("fno-apinotes-modules"),
30953162flagpd1("fno-apple-pragma-pack"),
30963163flagpd1("fno-application-extension"),
30973164flagpd1("fno-approx-func"),
30983165flagpd1("fno-asm"),
30993166flagpd1("fno-asm-blocks"),
31003167flagpd1("fno-associative-math"),
3168flagpd1("fno-assume-nothrow-exception-dtor"),
31013169flagpd1("fno-assume-sane-operator-new"),
31023170flagpd1("fno-assume-unique-vtables"),
31033171flagpd1("fno-async-exceptions"),
31043172flagpd1("fno-asynchronous-unwind-tables"),
3173flagpd1("fno-auto-import"),
31053174flagpd1("fno-auto-profile"),
31063175flagpd1("fno-auto-profile-accurate"),
31073176flagpd1("fno-autolink"),
......@@ -3151,7 +3220,6 @@ flagpd1("fno-coroutines"),
31513220flagpd1("fno-coverage-mapping"),
31523221flagpd1("fno-crash-diagnostics"),
31533222flagpd1("fno-cray-pointer"),
3154flagpd1("fno-cuda-approx-transcendentals"),
31553223flagpd1("fno-cuda-flush-denormals-to-zero"),
31563224flagpd1("fno-cuda-host-device-constexpr"),
31573225flagpd1("fno-cuda-short-ptr"),
......@@ -3175,6 +3243,7 @@ flagpd1("fno-debug-ranges-base-address"),
31753243flagpd1("fno-debug-types-section"),
31763244flagpd1("fno-declspec"),
31773245flagpd1("fno-default-inline"),
3246flagpd1("fno-define-target-os-macros"),
31783247flagpd1("fno-delayed-template-parsing"),
31793248flagpd1("fno-delete-null-pointer-checks"),
31803249flagpd1("fno-deprecated-macro"),
......@@ -3209,6 +3278,7 @@ flagpd1("fno-escaping-block-tail-calls"),
32093278flagpd1("fno-exceptions"),
32103279flagpd1("fno-experimental-isel"),
32113280flagpd1("fno-experimental-library"),
3281flagpd1("fno-experimental-omit-vtable-rtti"),
32123282flagpd1("fno-experimental-relative-c++-abi-vtables"),
32133283flagpd1("fno-external-blas"),
32143284flagpd1("fno-f2c"),
......@@ -3247,6 +3317,7 @@ flagpd1("fno-gnu89-inline"),
32473317flagpd1("fno-gnu-inline-asm"),
32483318flagpd1("fno-gnu-keywords"),
32493319flagpd1("fno-gpu-allow-device-init"),
3320flagpd1("fno-gpu-approx-transcendentals"),
32503321flagpd1("fno-gpu-defer-diag"),
32513322flagpd1("fno-gpu-exclude-wrong-side-overloads"),
32523323flagpd1("fno-gpu-flush-denormals-to-zero"),
......@@ -3278,6 +3349,7 @@ flagpd1("fno-jmc"),
32783349flagpd1("fno-jump-tables"),
32793350flagpd1("fno-keep-persistent-storage-variables"),
32803351flagpd1("fno-keep-static-consts"),
3352flagpd1("fno-keep-system-includes"),
32813353flagpd1("fno-knr-functions"),
32823354flagpd1("fno-lax-vector-conversions"),
32833355flagpd1("fno-limit-debug-info"),
......@@ -3296,6 +3368,7 @@ flagpd1("fno-math-builtin"),
32963368flagpd1("fno-math-errno"),
32973369flagpd1("fno-max-identifier-length"),
32983370flagpd1("fno-max-type-align"),
3371flagpd1("fno-coverage-mcdc"),
32993372flagpd1("fno-memory-profile"),
33003373flagpd1("fno-merge-all-constants"),
33013374flagpd1("fno-merge-constants"),
......@@ -3309,6 +3382,8 @@ flagpd1("fno-modules-error-recovery"),
33093382flagpd1("fno-modules-global-index"),
33103383flagpd1("fno-modules-search-all"),
33113384flagpd1("fno-modules-share-filemanager"),
3385flagpd1("fno-modules-skip-diagnostic-options"),
3386flagpd1("fno-modules-skip-header-search-paths"),
33123387flagpd1("fno-strict-modules-decluse"),
33133388flagpd1("fno_modules-validate-input-files-content"),
33143389flagpd1("fno-modules-validate-system-headers"),
......@@ -3317,6 +3392,7 @@ flagpd1("fno-modulo-sched"),
33173392flagpd1("fno-modulo-sched-allow-regmoves"),
33183393flagpd1("fno-ms-compatibility"),
33193394flagpd1("fno-ms-extensions"),
3395flagpd1("fno-ms-volatile"),
33203396flagpd1("fno-new-infallible"),
33213397flagpd1("fno-non-call-exceptions"),
33223398flagpd1("fno-objc-arc"),
......@@ -3329,7 +3405,9 @@ flagpd1("fno-objc-infer-related-result-type"),
33293405flagpd1("fno-objc-legacy-dispatch"),
33303406flagpd1("fno-objc-nonfragile-abi"),
33313407flagpd1("fno-objc-weak"),
3408flagpd1("fno-offload-implicit-host-device-templates"),
33323409flagpd1("fno-offload-lto"),
3410flagpd1("fno-offload-uniform-block"),
33333411.{
33343412 .name = "fno-omit-frame-pointer",
33353413 .syntax = .flag,
......@@ -3379,6 +3457,7 @@ flagpd1("fno-permissive"),
33793457 .psl = false,
33803458},
33813459flagpd1("fno-plt"),
3460flagpd1("fno-ppc-native-vector-element-order"),
33823461flagpd1("fno-prebuilt-implicit-modules"),
33833462flagpd1("fno-prefetch-loop-arrays"),
33843463flagpd1("fno-preserve-as-comments"),
......@@ -3469,6 +3548,7 @@ flagpd1("fno-signed-wchar"),
34693548flagpd1("fno-signed-zeros"),
34703549flagpd1("fno-single-precision-constant"),
34713550flagpd1("fno-sized-deallocation"),
3551flagpd1("fno-skip-odr-check-in-gmf"),
34723552flagpd1("fno-slp-vectorize"),
34733553flagpd1("fno-spec-constr-count"),
34743554flagpd1("fno-spell-checking"),
......@@ -3547,6 +3627,7 @@ flagpd1("fno-variable-expansion-in-unroller"),
35473627flagpd1("fno-vect-cost-model"),
35483628flagpd1("fno-vectorize"),
35493629flagpd1("fno-verbose-asm"),
3630flagpd1("fno-verify-intermediate-code"),
35503631flagpd1("fno-virtual-function-elimination"),
35513632flagpd1("fno-visibility-from-dllstorageclass"),
35523633flagpd1("fno-visibility-inlines-hidden"),
......@@ -3591,7 +3672,9 @@ flagpd1("fobjc-runtime-has-weak"),
35913672flagpd1("fobjc-sender-dependent-dispatch"),
35923673flagpd1("fobjc-subscripting-legacy-runtime"),
35933674flagpd1("fobjc-weak"),
3675flagpd1("foffload-implicit-host-device-templates"),
35943676flagpd1("foffload-lto"),
3677flagpd1("foffload-uniform-block"),
35953678.{
35963679 .name = "fomit-frame-pointer",
35973680 .syntax = .flag,
......@@ -3609,6 +3692,7 @@ flagpd1("fopenmp-assume-threads-oversubscription"),
36093692flagpd1("fopenmp-cuda-mode"),
36103693flagpd1("fopenmp-enable-irbuilder"),
36113694flagpd1("fopenmp-extensions"),
3695flagpd1("fopenmp-force-usm"),
36123696sepd1("fopenmp-host-ir-file-path"),
36133697flagpd1("fopenmp-is-target-device"),
36143698flagpd1("fopenmp-new-driver"),
......@@ -3657,6 +3741,7 @@ flagpd1("fpermissive"),
36573741 .psl = false,
36583742},
36593743flagpd1("fplt"),
3744flagpd1("fppc-native-vector-element-order"),
36603745flagpd1("fprebuilt-implicit-modules"),
36613746flagpd1("fprefetch-loop-arrays"),
36623747flagpd1("fpreserve-as-comments"),
......@@ -3779,6 +3864,7 @@ flagpd1("fsigned-zeros"),
37793864flagpd1("fsingle-precision-constant"),
37803865flagpd1("fsized-deallocation"),
37813866flagpd1("fsjlj-exceptions"),
3867flagpd1("fskip-odr-check-in-gmf"),
37823868flagpd1("fslp-vectorize"),
37833869flagpd1("fspec-constr-count"),
37843870flagpd1("fspell-checking"),
......@@ -3886,6 +3972,7 @@ flagpd1("fvect-cost-model"),
38863972flagpd1("fvectorize"),
38873973flagpd1("fverbose-asm"),
38883974flagpd1("fverify-debuginfo-preserve"),
3975flagpd1("fverify-intermediate-code"),
38893976flagpd1("fvirtual-function-elimination"),
38903977flagpd1("fvisibility-from-dllstorageclass"),
38913978flagpd1("fvisibility-global-new-delete-hidden"),
......@@ -4042,6 +4129,7 @@ flagpd1("gno-strict-dwarf"),
40424129 .psl = false,
40434130},
40444131flagpd1("gpubnames"),
4132flagpd1("gpulibc"),
40454133flagpd1("grecord-command-line"),
40464134flagpd1("gsce"),
40474135flagpd1("gsimple-template-names"),
......@@ -4067,6 +4155,22 @@ sepd1("header-include-file"),
40674155 .pd2 = true,
40684156 .psl = false,
40694157},
4158.{
4159 .name = "hipstdpar",
4160 .syntax = .flag,
4161 .zig_equivalent = .other,
4162 .pd1 = false,
4163 .pd2 = true,
4164 .psl = false,
4165},
4166.{
4167 .name = "hipstdpar-interpose-alloc",
4168 .syntax = .flag,
4169 .zig_equivalent = .other,
4170 .pd1 = false,
4171 .pd2 = true,
4172 .psl = false,
4173},
40704174flagpd1("ibuiltininc"),
40714175sepd1("image_base"),
40724176sepd1("imultilib"),
......@@ -4112,6 +4216,7 @@ m("maes"),
41124216sepd1("main-file-name"),
41134217flagpd1("maix32"),
41144218flagpd1("maix64"),
4219m("maix-small-local-exec-tls"),
41154220flagpd1("maix-struct-return"),
41164221flagpd1("malign-double"),
41174222m("maltivec"),
......@@ -4121,11 +4226,15 @@ m("mamx-complex"),
41214226m("mamx-fp16"),
41224227m("mamx-int8"),
41234228m("mamx-tile"),
4229flagpd1("mapxf"),
41244230flagpd1("marm"),
41254231flagpd1("massembler-fatal-warnings"),
41264232flagpd1("massembler-no-warn"),
41274233m("matomics"),
41284234m("mavx"),
4235flagpd1("mavx10.1"),
4236m("mavx10.1-256"),
4237m("mavx10.1-512"),
41294238m("mavx2"),
41304239m("mavx512bf16"),
41314240m("mavx512bitalg"),
......@@ -4148,11 +4257,12 @@ m("mavxneconvert"),
41484257m("mavxvnni"),
41494258m("mavxvnniint16"),
41504259m("mavxvnniint8"),
4151flagpd1("mbackchain"),
4260m("mbackchain"),
41524261flagpd1("mbig-endian"),
41534262m("mbmi"),
41544263m("mbmi2"),
41554264flagpd1("mbranch-likely"),
4265flagpd1("mbranch-protection-pauth-lr"),
41564266flagpd1("mbranch-target-enforce"),
41574267flagpd1("mbranches-within-32B-boundaries"),
41584268m("mbulk-memory"),
......@@ -4162,8 +4272,6 @@ m("mcldemote"),
41624272m("mclflushopt"),
41634273m("mclwb"),
41644274m("mclzero"),
4165flagpd1("mcmodel=medany"),
4166flagpd1("mcmodel=medlow"),
41674275m("mcmpb"),
41684276m("mcmpccxadd"),
41694277flagpd1("mcmse"),
......@@ -4186,6 +4294,7 @@ flagpd1("menable-experimental-extensions"),
41864294flagpd1("menable-no-infs"),
41874295flagpd1("menable-no-nans"),
41884296m("menqcmd"),
4297m("mevex512"),
41894298m("mexception-handling"),
41904299m("mexecute-only"),
41914300m("mextended-const"),
......@@ -4218,6 +4327,7 @@ m("mginv"),
42184327flagpd1("mglibc"),
42194328flagpd1("mglobal-merge"),
42204329flagpd1("mgpopt"),
4330flagpd1("mguarded-control-stack"),
42214331m("mhard-float"),
42224332m("mhard-quad-float"),
42234333m("mhvx"),
......@@ -4257,6 +4367,7 @@ flagpd1("mips64r6"),
42574367m("misel"),
42584368flagpd1("mkernel"),
42594369m("mkl"),
4370m("mlasx"),
42604371flagpd1("mldc1-sdc1"),
42614372sepd1("mlimit-float-precision"),
42624373sepd1("mlink-bitcode-file"),
......@@ -4269,6 +4380,7 @@ flagpd1("mlong-double-128"),
42694380flagpd1("mlong-double-64"),
42704381flagpd1("mlong-double-80"),
42714382m("mlongcall"),
4383m("mlsx"),
42724384m("mlvi-cfi"),
42734385flagpd1("mlvi-hardening"),
42744386m("mlwp"),
......@@ -4289,6 +4401,7 @@ flagpd1("mmpx"),
42894401flagpd1("mms-bitfields"),
42904402m("mmsa"),
42914403m("mmt"),
4404m("mmultimemory"),
42924405m("mmultivalue"),
42934406m("mmutable-globals"),
42944407m("mmwaitx"),
......@@ -4305,8 +4418,12 @@ m("mno-amx-complex"),
43054418m("mno-amx-fp16"),
43064419m("mno-amx-int8"),
43074420m("mno-amx-tile"),
4421flagpd1("mno-apxf"),
43084422m("mno-atomics"),
43094423m("mno-avx"),
4424flagpd1("mno-avx10.1"),
4425m("mno-avx10.1-256"),
4426m("mno-avx10.1-512"),
43104427m("mno-avx2"),
43114428m("mno-avx512bf16"),
43124429m("mno-avx512bitalg"),
......@@ -4329,7 +4446,7 @@ m("mno-avxneconvert"),
43294446m("mno-avxvnni"),
43304447m("mno-avxvnniint16"),
43314448m("mno-avxvnniint8"),
4332flagpd1("mno-backchain"),
4449m("mno-backchain"),
43334450m("mno-bmi"),
43344451m("mno-bmi2"),
43354452flagpd1("mno-branch-likely"),
......@@ -4353,6 +4470,7 @@ m("mno-dsp"),
43534470m("mno-dspr2"),
43544471flagpd1("mno-embedded-data"),
43554472m("mno-enqcmd"),
4473m("mno-evex512"),
43564474m("mno-exception-handling"),
43574475flagpd1("mnoexecstack"),
43584476m("mno-execute-only"),
......@@ -4391,10 +4509,12 @@ m("mno-invariant-function-descriptors"),
43914509m("mno-invpcid"),
43924510m("mno-isel"),
43934511m("mno-kl"),
4512m("mno-lasx"),
43944513flagpd1("mno-ldc1-sdc1"),
43954514flagpd1("mno-local-sdata"),
43964515m("mno-long-calls"),
43974516m("mno-longcall"),
4517m("mno-lsx"),
43984518m("mno-lvi-cfi"),
43994519flagpd1("mno-lvi-hardening"),
44004520m("mno-lwp"),
......@@ -4415,6 +4535,7 @@ flagpd1("mno-mpx"),
44154535flagpd1("mno-ms-bitfields"),
44164536m("mno-msa"),
44174537m("mno-mt"),
4538m("mno-multimemory"),
44184539m("mno-multivalue"),
44194540m("mno-mutable-globals"),
44204541m("mno-mwaitx"),
......@@ -4460,6 +4581,7 @@ m("mno-rdseed"),
44604581 .psl = false,
44614582},
44624583m("mno-reference-types"),
4584flagpd1("mno-regnames"),
44634585m("mno-relax"),
44644586flagpd1("mno-relax-all"),
44654587flagpd1("mno-relax-pic-calls"),
......@@ -4507,7 +4629,9 @@ flagpd1("mno-type-check"),
45074629m("mno-uintr"),
45084630flagpd1("mno-unaligned-access"),
45094631flagpd1("mno-unsafe-fp-atomics"),
4632m("mno-usermsr"),
45104633m("mno-vaes"),
4634flagpd1("mno-vevpu"),
45114635m("mno-virt"),
45124636m("mno-vis"),
45134637m("mno-vis2"),
......@@ -4587,6 +4711,7 @@ flagpd1("mrecord-mcount"),
45874711 .psl = false,
45884712},
45894713m("mreference-types"),
4714flagpd1("mregnames"),
45904715sepd1("mregparm"),
45914716m("mrelax"),
45924717flagpd1("mrelax-all"),
......@@ -4649,6 +4774,7 @@ sepd1("multiply_defined"),
46494774sepd1("multiply_defined_unused"),
46504775flagpd1("munaligned-access"),
46514776flagpd1("munsafe-fp-atomics"),
4777m("musermsr"),
46524778m("mv5"),
46534779m("mv55"),
46544780m("mv60"),
......@@ -4663,6 +4789,7 @@ m("mv71"),
46634789flagpd1("mv71t"),
46644790m("mv73"),
46654791m("mvaes"),
4792flagpd1("mvevpu"),
46664793m("mvirt"),
46674794m("mvis"),
46684795m("mvis2"),
......@@ -4720,6 +4847,7 @@ flagpd1("no-cpp-precomp"),
47204847},
47214848flagpd1("no-emit-llvm-uselists"),
47224849flagpd1("no-enable-noundef-analysis"),
4850flagpd1("fno-fortran-main"),
47234851.{
47244852 .name = "no-gpu-bundle-output",
47254853 .syntax = .flag,
......@@ -4746,6 +4874,14 @@ flagpd1("no-implicit-float"),
47464874 .pd2 = true,
47474875 .psl = false,
47484876},
4877.{
4878 .name = "no-offload-compress",
4879 .syntax = .flag,
4880 .zig_equivalent = .other,
4881 .pd1 = false,
4882 .pd2 = true,
4883 .psl = false,
4884},
47494885.{
47504886 .name = "no-offload-new-driver",
47514887 .syntax = .flag,
......@@ -4780,6 +4916,7 @@ flagpd1("nodriverkitlib"),
47804916flagpd1("nofixprebinding"),
47814917flagpd1("nogpuinc"),
47824918flagpd1("nogpulib"),
4919flagpd1("nogpulibc"),
47834920flagpd1("nohipwrapperinc"),
47844921.{
47854922 .name = "nolibc",
......@@ -4870,6 +5007,14 @@ sepd1("object-file-name"),
48705007 .pd2 = true,
48715008 .psl = false,
48725009},
5010.{
5011 .name = "offload-compress",
5012 .syntax = .flag,
5013 .zig_equivalent = .other,
5014 .pd1 = false,
5015 .pd2 = true,
5016 .psl = false,
5017},
48735018.{
48745019 .name = "offload-device-only",
48755020 .syntax = .flag,
......@@ -4910,6 +5055,7 @@ sepd1("object-file-name"),
49105055 .pd2 = true,
49115056 .psl = false,
49125057},
5058sepd1("fexperimental-openacc-macro-override"),
49135059sepd1("opt-record-file"),
49145060sepd1("opt-record-format"),
49155061sepd1("opt-record-passes"),
......@@ -5064,6 +5210,14 @@ flagpd1("print-stats"),
50645210 .pd2 = true,
50655211 .psl = false,
50665212},
5213.{
5214 .name = "print-supported-extensions",
5215 .syntax = .flag,
5216 .zig_equivalent = .other,
5217 .pd1 = true,
5218 .pd2 = true,
5219 .psl = false,
5220},
50675221.{
50685222 .name = "print-target-triple",
50695223 .syntax = .flag,
......@@ -5101,6 +5255,7 @@ flagpd1("pthreads"),
51015255},
51025256sepd1("read_only_relocs"),
51035257sepd1("record-command-line"),
5258flagpd1("regcall4"),
51045259flagpd1("relaxed-aliasing"),
51055260.{
51065261 .name = "relocatable-pch",
......@@ -5235,6 +5390,14 @@ sepd1("source-date-epoch"),
52355390 .pd2 = true,
52365391 .psl = false,
52375392},
5393.{
5394 .name = "spirv",
5395 .syntax = .flag,
5396 .zig_equivalent = .other,
5397 .pd1 = true,
5398 .pd2 = false,
5399 .psl = true,
5400},
52385401sepd1("split-dwarf-file"),
52395402sepd1("split-dwarf-output"),
52405403.{
......@@ -5592,6 +5755,7 @@ joinpd1("fexperimental-sanitize-metadata-ignorelist="),
55925755joinpd1("fsanitize-undefined-strip-path-components="),
55935756joinpd1("fopenmp-cuda-teams-reduction-recs-num="),
55945757joinpd1("fvisibility-externs-nodllstorageclass="),
5758joinpd1("fexperimental-openacc-macro-override="),
55955759joinpd1("analyzer-config-compatibility-mode="),
55965760.{
55975761 .name = "fno-experimental-sanitize-metadata=",
......@@ -5628,6 +5792,7 @@ joinpd1("analyzer-inline-max-stack-depth="),
56285792 .psl = false,
56295793},
56305794joinpd1("fsanitize-address-field-padding="),
5795joinpd1("ftrivial-auto-var-init-max-size="),
56315796.{
56325797 .name = "fno-sanitize-address-vcasan-lib",
56335798 .syntax = .joined,
......@@ -5642,6 +5807,7 @@ joinpd1("fsanitize-memory-track-origins="),
56425807joinpd1("mwatchos-simulator-version-min="),
56435808joinpd1("fsanitize-coverage-ignorelist="),
56445809joinpd1("fvisibility-externs-dllimport="),
5810joinpd1("fvisibility-global-new-delete="),
56455811joinpd1("fvisibility-nodllstorageclass="),
56465812joinpd1("fxray-selected-function-group="),
56475813joinpd1("mappletvsimulator-version-min="),
......@@ -5721,6 +5887,7 @@ joinpd1("fopenmp-cuda-blocks-per-sm="),
57215887},
57225888joinpd1("mios-simulator-version-min="),
57235889joinpd1("mstack-protector-guard-reg="),
5890joinpd1("Wsystem-headers-in-module="),
57245891.{
57255892 .name = "include-with-prefix-after=",
57265893 .syntax = .joined,
......@@ -5779,6 +5946,7 @@ joinpd1("msign-return-address-key="),
57795946 .pd2 = true,
57805947 .psl = false,
57815948},
5949joinpd1("fapinotes-swift-version="),
57825950.{
57835951 .name = "fcomment-block-commands=",
57845952 .syntax = .comma_joined,
......@@ -5858,6 +6026,15 @@ joinpd1("fspell-checking-limit="),
58586026joinpd1("fvisibility-dllexport="),
58596027joinpd1("fxray-function-groups="),
58606028joinpd1("header-include-format="),
6029.{
6030 .name = "hipstdpar-thrust-path=",
6031 .syntax = .joined,
6032 .zig_equivalent = .other,
6033 .pd1 = false,
6034 .pd2 = true,
6035 .psl = false,
6036},
6037joinpd1("mlarge-data-threshold="),
58616038joinpd1("msmall-data-threshold="),
58626039joinpd1("Wlarge-by-value-copy="),
58636040joinpd1("analyzer-constraints="),
......@@ -5909,8 +6086,6 @@ joinpd1("mwatchos-version-min="),
59096086 .psl = false,
59106087},
59116088joinpd1("faltivec-src-compat="),
5912joinpd1("mmacosx-version-min="),
5913joinpd1("fsanitize-blacklist="),
59146089.{
59156090 .name = "hip-device-lib-path=",
59166091 .syntax = .joined,
......@@ -5919,7 +6094,9 @@ joinpd1("fsanitize-blacklist="),
59196094 .pd2 = true,
59206095 .psl = false,
59216096},
6097joinpd1("mmacosx-version-min="),
59226098joinpd1("coverage-notes-file="),
6099joinpd1("fsanitize-blacklist="),
59236100.{
59246101 .name = "extract-api-ignores=",
59256102 .syntax = .comma_joined,
......@@ -5936,9 +6113,19 @@ joinpd1("fmemory-profile-use="),
59366113joinpd1("fmodules-cache-path="),
59376114joinpd1("fmodules-embed-file="),
59386115joinpd1("fms-omit-default-lib"),
6116joinpd1("fno-cx-fortran-rules"),
6117joinpd1("fno-cx-limited-range"),
59396118joinpd1("fprofile-instrument="),
59406119joinpd1("fprofile-sample-use="),
59416120joinpd1("fstrict-flex-arrays="),
6121.{
6122 .name = "hipstdpar-prim-path=",
6123 .syntax = .joined,
6124 .zig_equivalent = .other,
6125 .pd1 = false,
6126 .pd2 = true,
6127 .psl = false,
6128},
59426129.{
59436130 .name = "no-cuda-include-ptx=",
59446131 .syntax = .joined,
......@@ -5948,8 +6135,8 @@ joinpd1("fstrict-flex-arrays="),
59486135 .psl = false,
59496136},
59506137joinpd1("Wframe-larger-than="),
5951joinpd1("code-completion-at="),
59526138joinpd1("coverage-data-file="),
6139joinpd1("code-completion-at="),
59536140joinpd1("fblas-matmul-limit="),
59546141joinpd1("fcrash-diagnostics="),
59556142joinpd1("fdiagnostics-color="),
......@@ -6093,16 +6280,27 @@ joinpd1("coverage-version="),
60936280joinpd1("falign-functions="),
60946281joinpd1("fconstexpr-depth="),
60956282joinpd1("fconstexpr-steps="),
6283joinpd1("fcx-fortran-rules"),
6284joinpd1("fcx-limited-range"),
60966285joinpd1("ffile-prefix-map="),
60976286joinpd1("fmodule-map-file="),
60986287joinpd1("fobjc-arc-cxxlib="),
60996288joinpd1("fproc-stat-report"),
61006289joinpd1("ftype-visibility="),
61016290joinpd1("fwarn-stack-size="),
6291jspd1("iapinotes-modules"),
61026292jspd1("iwithprefixbefore"),
61036293joinpd1("malign-functions="),
61046294joinpd1("mfunction-return="),
61056295joinpd1("mios-version-min="),
6296.{
6297 .name = "mno-apx-features=",
6298 .syntax = .comma_joined,
6299 .zig_equivalent = .other,
6300 .pd1 = true,
6301 .pd2 = false,
6302 .psl = false,
6303},
61066304joinpd1("mrvv-vector-bits="),
61076305joinpd1("mstack-alignment="),
61086306joinpd1("msve-vector-bits="),
......@@ -6164,6 +6362,7 @@ joinpd1("fms-runtime-lib="),
61646362joinpd1("fopenmp-version="),
61656363joinpd1("fprofile-update="),
61666364joinpd1("fshow-overloads="),
6365joinpd1("fspv-target-env="),
61676366joinpd1("fswift-async-fp="),
61686367joinpd1("ftemplate-depth="),
61696368joinpd1("fxray-attr-list="),
......@@ -6302,6 +6501,14 @@ joinpd1("gen-reproducer="),
63026501 .pd2 = true,
63036502 .psl = false,
63046503},
6504.{
6505 .name = "hipstdpar-path=",
6506 .syntax = .joined,
6507 .zig_equivalent = .other,
6508 .pd1 = false,
6509 .pd2 = true,
6510 .psl = false,
6511},
63056512joinpd1("mdynamic-no-pic"),
63066513joinpd1("mframe-pointer="),
63076514joinpd1("mindirect-jump="),
......@@ -6331,6 +6538,7 @@ joinpd1("preamble-bytes="),
63316538 .pd2 = true,
63326539 .psl = false,
63336540},
6541joinpd1("complex-range="),
63346542.{
63356543 .name = "cuda-gpu-arch=",
63366544 .syntax = .joined,
......@@ -6381,6 +6589,14 @@ joinpd1("fprofile-list="),
63816589 .pd2 = false,
63826590 .psl = false,
63836591},
6592.{
6593 .name = "mapx-features=",
6594 .syntax = .comma_joined,
6595 .zig_equivalent = .other,
6596 .pd1 = true,
6597 .pd2 = false,
6598 .psl = false,
6599},
63846600joinpd1("vtordisp-mode="),
63856601joinpd1("Rpass-missed="),
63866602joinpd1("Wlarger-than-"),
......@@ -6465,6 +6681,7 @@ joinpd1("malign-loops="),
64656681joinpd1("mframe-chain="),
64666682joinpd1("mimplicit-it="),
64676683joinpd1("mprintf-kind="),
6684joinpd1("mtls-dialect="),
64686685.{
64696686 .name = "offload-arch=",
64706687 .syntax = .joined,
......@@ -6593,6 +6810,14 @@ joinpd1("fclasspath="),
65936810joinpd1("finit-real="),
65946811joinpd1("fforce-addr"),
65956812joinpd1("ftls-model="),
6813.{
6814 .name = "gcc-triple=",
6815 .syntax = .joined,
6816 .zig_equivalent = .other,
6817 .pd1 = false,
6818 .pd2 = true,
6819 .psl = false,
6820},
65966821joinpd1("inline-asm="),
65976822jspd1("ivfsoverlay"),
65986823jspd1("iwithprefix"),
......@@ -7287,14 +7512,6 @@ joinpd1("mtp="),
72877512},
72887513joinpd1("gz="),
72897514joinpd1("A-"),
7290.{
7291 .name = "Fo",
7292 .syntax = .joined_or_separate,
7293 .zig_equivalent = .other,
7294 .pd1 = true,
7295 .pd2 = false,
7296 .psl = true,
7297},
72987515joinpd1("G="),
72997516.{
73007517 .name = "MF",
......@@ -7560,6 +7777,22 @@ joinpd1("G="),
75607777 .pd2 = false,
75617778 .psl = true,
75627779},
7780.{
7781 .name = "Fc",
7782 .syntax = .joined_or_separate,
7783 .zig_equivalent = .other,
7784 .pd1 = true,
7785 .pd2 = false,
7786 .psl = true,
7787},
7788.{
7789 .name = "Fo",
7790 .syntax = .joined_or_separate,
7791 .zig_equivalent = .other,
7792 .pd1 = true,
7793 .pd2 = false,
7794 .psl = true,
7795},
75637796jspd1("A"),
75647797jspd1("B"),
75657798jspd1("D"),
......@@ -7660,14 +7893,6 @@ joinpd1("W"),
76607893},
76617894jspd1("b"),
76627895joinpd1("d"),
7663.{
7664 .name = "e",
7665 .syntax = .joined_or_separate,
7666 .zig_equivalent = .entry,
7667 .pd1 = true,
7668 .pd2 = false,
7669 .psl = false,
7670},
76717896.{
76727897 .name = "l",
76737898 .syntax = .joined_or_separate,
tools/update_clang_options.zig+5-2
......@@ -552,24 +552,27 @@ fn knownOption(name: []const u8) ?[]const u8 {
552552
553553const cpu_targets = struct {
554554 pub const aarch64 = std.Target.aarch64;
555 pub const arc = std.Target.arc;
556555 pub const amdgpu = std.Target.amdgpu;
556 pub const arc = std.Target.arc;
557557 pub const arm = std.Target.arm;
558558 pub const avr = std.Target.avr;
559559 pub const bpf = std.Target.bpf;
560560 pub const csky = std.Target.csky;
561561 pub const hexagon = std.Target.hexagon;
562 pub const loongarch = std.Target.loongarch;
563 pub const m68k = std.Target.m68k;
562564 pub const mips = std.Target.mips;
563565 pub const msp430 = std.Target.msp430;
564566 pub const nvptx = std.Target.nvptx;
565567 pub const powerpc = std.Target.powerpc;
566568 pub const riscv = std.Target.riscv;
569 pub const s390x = std.Target.s390x;
567570 pub const sparc = std.Target.sparc;
568571 pub const spirv = std.Target.spirv;
569 pub const s390x = std.Target.s390x;
570572 pub const ve = std.Target.ve;
571573 pub const wasm = std.Target.wasm;
572574 pub const x86 = std.Target.x86;
575 pub const xtensa = std.Target.xtensa;
573576};
574577
575578pub fn main() anyerror!void {