llvm-project/clang/lib/Basic
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
..
Targets [RISCV] Add -mtune support 2020-10-16 13:55:08 +08:00
Attributes.cpp Build fix: AttributeCommonInfo::AS_C2x 2020-03-25 15:42:21 +01:00
Builtins.cpp isBuiltinFunc() uses StringRef instead of const char* 2019-10-29 17:36:55 +01:00
CMakeLists.txt [ADT] Move FixedPoint.h from Clang to LLVM. 2020-08-20 10:29:45 +02:00
CharInfo.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CodeGenOptions.cpp Revert "Move all fields of '-cc1' option related classes into def file databases" 2020-09-02 10:38:34 -07:00
Cuda.cpp [AMDGPU] Add gfx602, gfx705, gfx805 targets 2020-10-10 17:22:22 +01:00
Diagnostic.cpp clang/Basic: Stop using SourceManager::getBuffer, NFC 2020-10-14 22:42:56 -04:00
DiagnosticIDs.cpp Revert "Recommit "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions"" 2020-09-24 11:16:54 -07:00
DiagnosticOptions.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExpressionTraits.cpp [clang][NFC] Generate the {Type,ArrayType,UnaryExprOrType,Expression}Traits... 2020-06-11 14:35:52 +01:00
FileManager.cpp [Clang] Expose RequiresNullTerminator in FileManager. 2020-04-15 14:17:51 -07:00
FileSystemStatCache.cpp [FileSystemStatCache] Return std::error_code from stat cache methods 2019-04-16 17:34:26 +00:00
IdentifierTable.cpp Revert rGf0bab7875e78e01c149d12302dcc4b6d4c43e25c - "Triple.h - reduce Twine.h include to forward declarations. NFC." 2020-06-26 14:46:40 +01:00
LangOptions.cpp Revert "Move all fields of '-cc1' option related classes into def file databases" 2020-09-02 10:38:34 -07:00
LangStandards.cpp Move LangStandard*, InputKind::Language to Basic 2019-08-05 13:59:26 +00:00
Module.cpp [NFC] Clean up doc comment and implementation for Module::isSubModuleOf. 2020-07-21 16:23:36 -07:00
ObjCRuntime.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OpenMPKinds.cpp [OpenMP] Implement TR8 `present` motion modifier in Clang (1/2) 2020-07-29 12:18:45 -04:00
OperatorPrecedence.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SanitizerBlacklist.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
SanitizerSpecialCaseList.cpp Reland 9f3fdb0d7fab: [Driver] Use VFS to check if sanitizer blacklists exist 2019-11-21 11:56:09 +01:00
Sanitizers.cpp Tweak r355278 for compatibility with gcc 6 and earlier. 2019-03-02 21:55:36 +00:00
SourceLocation.cpp clang/Basic: Stop using SourceManager::getBuffer, NFC 2020-10-14 22:42:56 -04:00
SourceManager.cpp clang/Basic: Stop using SourceManager::getBuffer, NFC 2020-10-14 22:42:56 -04:00
Stack.cpp [msvc] Add necessary #include to make compiler intrinsics available. 2019-08-26 18:33:15 +00:00
TargetID.cpp [clang] Remove stray semicolons, fixing GCC warnings. NFC. 2020-08-19 10:41:03 +03:00
TargetInfo.cpp Reland "[FPEnv][Clang][Driver] Disable constrained floating point on targets lacking support." 2020-07-10 08:49:45 -04:00
Targets.cpp Remove OpenBSD/sparc support 2020-08-29 20:47:18 -04:00
Targets.h De-templatize non-dependent VS macro logic, NFC 2019-07-09 20:57:28 +00:00
TokenKinds.cpp Use switch instead of series of comparisons 2019-08-03 16:32:49 +00:00
TypeTraits.cpp [clang][NFC] Generate the {Type,ArrayType,UnaryExprOrType,Expression}Traits... 2020-06-11 14:35:52 +01:00
Version.cpp clang: Don't show a trailing space with --version when not built from the repo 2020-07-08 14:02:02 +02:00
Warnings.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
XRayInstr.cpp [xray] Allow instrumenting only function entry and/or only function exit 2020-01-17 13:32:34 -08:00
XRayLists.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00