llvm-project/clang/lib/Basic/Targets
Kito Cheng cfa7094e49 [RISCV] Add -mtune support
- The goal of this patch is improve option compatible with RISCV-V GCC,
   -mcpu support on GCC side will sent patch in next few days.

 - -mtune only affect the pipeline model and non-arch/extension related
   target feature, e.g. instruction fusion; in td file it called
   TuneFeatures, which is introduced by X86 back-end[1].

 - -mtune accept all valid option for -mcpu and extra alias processor
   option, e.g. `generic`, `rocket` and `sifive-7-series`, the purpose is
   option compatible with RISCV-V GCC.

 - Processor alias for -mtune will resolve according the current target arch,
   rv32 or rv64, e.g. `rocket` will resolve to `rocket-rv32` or `rocket-rv64`.

 - Interaction between -mcpu and -mtune:
   * -mtune has higher priority than -mcpu for pipeline model and
     TuneFeatures.

[1] https://reviews.llvm.org/D85165

Reviewed By: luismarques

Differential Revision: https://reviews.llvm.org/D89025
2020-10-16 13:55:08 +08:00
..
AArch64.cpp [AArch64] Add CPU Cortex-R82 2020-10-02 12:47:23 +01:00
AArch64.h [sve][acle] Enable feature macros for SVE ACLE extensions. 2020-06-30 18:33:03 +00:00
AMDGPU.cpp [AMDGPU] gfx1032 target 2020-10-15 12:41:18 -07:00
AMDGPU.h Emit predefined macro for wavefront size for amdgcn 2020-10-02 10:17:21 -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] gfx1032 target 2020-10-15 12:41:18 -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] Set default alignment rules for z/OS target 2020-10-06 13:16:15 -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] Legalize v256i1 and v512i1 and implement load and store of these types 2020-09-28 14:39:37 -05:00
RISCV.cpp [RISCV] Add -mtune support 2020-10-16 13:55:08 +08:00
RISCV.h [RISCV] Add -mtune support 2020-10-16 13:55:08 +08: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 [clang][Sparc] Default to -mcpu=v9 for Sparc V8 on Solaris 2020-09-11 09:53:19 +02:00
Sparc.h [clang][Sparc] Default to -mcpu=v9 for Sparc V8 on Solaris 2020-09-11 09:53:19 +02: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] Add HRESET instruction. 2020-10-13 08:47:26 +08:00
X86.h [X86] Add HRESET instruction. 2020-10-13 08:47:26 +08: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