llvm-project/clang/lib/Basic/Targets
Craig Topper 71f3169e1b [X86] Default to -mtune=generic unless -march is passed to the driver. Add TuneCPU to the AST serialization
This patch defaults to -mtune=generic unless -march is present. If -march is present we'll use the empty string unless its overridden by mtune. The back should use the target cpu if the tune-cpu isn't present.

It also adds AST serialization support to fix some tests that emit AST and parse it back. These tests diff the IR against the output from not going through AST. So if we don't serialize the tune CPU we fail the diff.

Differential Revision: https://reviews.llvm.org/D86488
2020-08-26 14:52:03 -07:00
..
AArch64.cpp [Sema][AArch64] Add parsing support for arm_sve_vector_bits attribute 2020-07-17 10:06:54 +00:00
AArch64.h [sve][acle] Enable feature macros for SVE ACLE extensions. 2020-06-30 18:33:03 +00:00
AMDGPU.cpp [HIP] Support target id by --offload-arch 2020-08-18 23:43:53 -04:00
AMDGPU.h [HIP] Support target id by --offload-arch 2020-08-18 23:43:53 -04:00
ARC.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ARC.h Implement _ExtInt ABI for all ABIs in Clang, enable type for ABIs 2020-05-06 06:52:18 -07:00
ARM.cpp [clang][BFloat] add NEON emitter for bfloat 2020-06-05 14:11:51 +01:00
ARM.h [ARM] Add __bf16 as new Bfloat16 C Type 2020-06-05 10:32:43 +01:00
AVR.cpp [AVR] Define __ELF__ 2020-04-15 00:22:53 +02:00
AVR.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BPF.cpp [BPF] do compile-once run-everywhere relocation for bitfields 2019-10-08 18:23:17 +00:00
BPF.h [BPF] support 128bit int explicitly in layout spec 2020-03-28 11:46:29 -07:00
Hexagon.cpp [Hexagon] Avoid creating an empty target feature 2020-08-10 10:37:24 -05:00
Hexagon.h Implement _ExtInt ABI for all ABIs in Clang, enable type for ABIs 2020-05-06 06:52:18 -07:00
Lanai.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Lanai.h Implement _ExtInt ABI for all ABIs in Clang, enable type for ABIs 2020-05-06 06:52:18 -07:00
Le64.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Le64.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MSP430.cpp [MSP430] Actualize the toolchain description 2020-07-17 15:42:12 +03:00
MSP430.h [MSP430] Update register names 2020-06-26 15:32:07 +03:00
Mips.cpp Remove unreachable return (PR47026) 2020-08-07 11:23:43 +01:00
Mips.h Revert rGf0bab7875e78e01c149d12302dcc4b6d4c43e25c - "Triple.h - reduce Twine.h include to forward declarations. NFC." 2020-06-26 14:46:40 +01:00
NVPTX.cpp [AMDGPU] gfx1031 target 2020-08-05 12:36:26 -07:00
NVPTX.h [OpenCL] Add global_device and global_host address spaces 2020-07-29 17:24:53 +03:00
OSTargets.cpp C++2a -> C++20 in some identifiers; NFC. 2020-04-21 15:37:19 -04:00
OSTargets.h [SystemZ][z/OS] Add z/OS Target and define macros 2020-08-25 15:51:59 -04:00
PNaCl.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PNaCl.h Implement _ExtInt ABI for all ABIs in Clang, enable type for ABIs 2020-05-06 06:52:18 -07:00
PPC.cpp [PowerPC] Add clang options to control MMA support 2020-08-24 09:35:55 -05:00
PPC.h [PowerPC] Add clang options to control MMA support 2020-08-24 09:35:55 -05:00
RISCV.cpp [RISCV] Add support for -mcpu option. 2020-07-16 11:46:22 -07:00
RISCV.h [RISCV] Add support for -mcpu option. 2020-07-16 11:46:22 -07:00
SPIR.cpp Define __SPIR__ macro for spir/spir64 targets. 2020-06-03 12:36:21 -07:00
SPIR.h [OpenCL] Add global_device and global_host address spaces 2020-07-29 17:24:53 +03:00
Sparc.cpp [Sparc] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros on SPARCv9 2020-08-11 00:04:24 -04:00
Sparc.h Implement _ExtInt ABI for all ABIs in Clang, enable type for ABIs 2020-05-06 06:52:18 -07:00
SystemZ.cpp [SystemZ] Support z15 processor name 2019-09-20 23:06:03 +00:00
SystemZ.h [SystemZ] Implement __builtin_eh_return_data_regno 2020-07-24 10:28:06 +02:00
TCE.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TCE.h [OpenCL] Add global_device and global_host address spaces 2020-07-29 17:24:53 +03:00
VE.cpp [VE] Clang toolchain for VE 2020-06-24 10:12:09 +02:00
VE.h [VE] Correct stack alignment 2020-07-06 17:25:29 +09:00
WebAssembly.cpp [WebAssembly] Don't depend on the flags set by handleTargetFeatures in initFeatureMap. 2020-08-12 11:43:46 -07:00
WebAssembly.h [WebAssembly] Don't depend on the flags set by handleTargetFeatures in initFeatureMap. 2020-08-12 11:43:46 -07:00
X86.cpp [X86] Support -march=sapphirerapids 2020-08-25 14:21:21 +08:00
X86.h [X86] Default to -mtune=generic unless -march is passed to the driver. Add TuneCPU to the AST serialization 2020-08-26 14:52:03 -07:00
XCore.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
XCore.h Implement _ExtInt ABI for all ABIs in Clang, enable type for ABIs 2020-05-06 06:52:18 -07:00