llvm-project/clang/lib/Driver/ToolChains/Arch
Rainer Orth bf3714884a [clang][Driver] Handle SPARC -mcpu=native etc.
To make use of SPARC support in `getHostCPUName` as implemented by D130272
<https://reviews.llvm.org/D130272>, this patch uses it to handle
`-mcpu=native` and `-mtune=native`.  To match GCC, this patch rejects
`-march` instead of silently treating it as a no-op.

Tested on `sparcv9-sun-solaris2.11` and checking that those options are
passed on as `-target-cpu` resp. `-tune-cpu` as expected.

Differential Revision: https://reviews.llvm.org/D130273
2022-07-29 09:27:09 +02:00
..
AArch64.cpp [Driver][ARM][AArch64] Use err_drv_unsupported_option_argument for -march=/-mcpu=/-mtune= diagnostics 2022-06-28 16:01:30 -07:00
AArch64.h [AArch64][ARM] add -Wunaligned-access only for clang 2022-02-10 10:26:30 -08:00
ARM.cpp [Driver] Ignore unimplemented -mtune= for ARM/PowerPC 2022-07-25 15:05:38 -07:00
ARM.h [AArch64][ARM] add -Wunaligned-access only for clang 2022-02-10 10:26:30 -08:00
CSKY.cpp [CSKY] Fix the conflict of default fpu features and -mfpu option 2022-05-23 10:44:55 +08:00
CSKY.h [Clang][CSKY] Add the CSKY target and compiler driver 2022-04-06 11:37:37 +08:00
M68k.cpp [M68k] Allow user to preserve certain registers 2021-05-20 13:57:22 -07:00
M68k.h [cfe][driver][M68k](8/8) Clang driver support 2021-03-08 12:30:57 -08:00
Mips.cpp [clang-cl] Emit nicer warning on unknown /arch: arguments 2021-09-02 10:37:32 -04:00
Mips.h [clang-cl] Emit nicer warning on unknown /arch: arguments 2021-09-02 10:37:32 -04:00
PPC.cpp [Driver][PowerPC] Support -mtune= 2022-07-28 00:34:04 -07:00
PPC.h
RISCV.cpp [Driver] Error for -gsplit-dwarf with RISC-V linker relaxation 2022-07-22 17:16:41 -07:00
RISCV.h
Sparc.cpp [clang][Driver] Handle SPARC -mcpu=native etc. 2022-07-29 09:27:09 +02:00
Sparc.h [clang][Driver] Handle SPARC -mcpu=native etc. 2022-07-29 09:27:09 +02:00
SystemZ.cpp
SystemZ.h
VE.cpp
VE.h [Clang][VE][NFC] Fix a comment 2022-06-12 10:27:30 +09:00
X86.cpp [X86] Add support for `-mharden-sls=[none|all|return|indirect-jmp]` 2022-06-01 09:45:04 +08:00
X86.h [clang-cl] Emit nicer warning on unknown /arch: arguments 2021-09-02 10:37:32 -04:00