llvm-project/llvm/lib/Target/ARM/MCTargetDesc
Craig Topper c7a0b2684f [X86][MC][Target] Initial backend support a tune CPU to support -mtune
This patch implements initial backend support for a -mtune CPU controlled by a "tune-cpu" function attribute. If the attribute is not present X86 will use the resolved CPU from target-cpu attribute or command line.

This patch adds MC layer support a tune CPU. Each CPU now has two sets of features stored in their GenSubtargetInfo.inc tables . These features lists are passed separately to the Processor and ProcessorModel classes in tablegen. The tune list defaults to an empty list to avoid changes to non-X86. This annoyingly increases the size of static tables on all target as we now store 24 more bytes per CPU. I haven't quantified the overall impact, but I can if we're concerned.

One new test is added to X86 to show a few tuning features with mismatched tune-cpu and target-cpu/target-feature attributes to demonstrate independent control. Another new test is added to demonstrate that the scheduler model follows the tune CPU.

I have not added a -mtune to llc/opt or MC layer command line yet. With no attributes we'll just use the -mcpu for both. MC layer tools will always follow the normal CPU for tuning.

Differential Revision: https://reviews.llvm.org/D85165
2020-08-14 15:31:50 -07:00
..
ARMAddressingModes.h [ARM] Optimize immediate selection 2020-07-29 13:29:17 +01:00
ARMAsmBackend.cpp [ARM] halfword store hits llvm_unreachable with big-endian 2020-07-17 08:56:44 +01:00
ARMAsmBackend.h [MC][Bugfix] Remove redundant parameter for relaxInstruction 2020-04-21 11:06:55 +08:00
ARMAsmBackendDarwin.h [macho][NFC] Extract all CPU_(SUB_)TYPE logic to BinaryFormat 2020-02-21 12:43:29 -08:00
ARMAsmBackendELF.h
ARMAsmBackendWinCOFF.h
ARMBaseInfo.h [ARM, AArch64] Fix a comment typo. NFC. 2020-08-06 09:23:45 +03:00
ARMELFObjectWriter.cpp Typos around a -> an. 2020-06-20 14:04:48 -07:00
ARMELFStreamer.cpp [MC][NFC] Use camelCase style for functions in MCObjectStreamer 2020-04-20 20:09:20 -07:00
ARMFixupKinds.h
ARMInstPrinter.cpp [MCInstPrinter] Add parameter `Address` to MCInstPrinter::printAliasInstr. NFC 2020-03-27 00:03:32 -07:00
ARMInstPrinter.h [MCInstPrinter] Add parameter `Address` to printCustomAliasOperand. NFC 2020-03-27 00:38:20 -07:00
ARMMCAsmInfo.cpp [MC] Default MCAsmInfo::UseIntegratedAssembler to true 2020-04-11 10:13:52 -07:00
ARMMCAsmInfo.h
ARMMCCodeEmitter.cpp [ARM,MVE] Revise immediate VBIC/VORR to look more like NEON. 2020-01-23 11:53:52 +00:00
ARMMCExpr.cpp
ARMMCExpr.h
ARMMCTargetDesc.cpp [X86][MC][Target] Initial backend support a tune CPU to support -mtune 2020-08-14 15:31:50 -07:00
ARMMCTargetDesc.h [ARM] Add initial support for Custom Datapath Extension (CDE) 2020-02-17 15:39:16 +00:00
ARMMachORelocationInfo.cpp
ARMMachObjectWriter.cpp
ARMTargetStreamer.cpp [MC] De-capitalize some MCStreamer::Emit* functions 2020-02-14 19:11:53 -08:00
ARMUnwindOpAsm.cpp [MC] De-capitalize some MCStreamer::Emit* functions 2020-02-14 19:11:53 -08:00
ARMUnwindOpAsm.h [MC] De-capitalize some MCStreamer::Emit* functions 2020-02-14 19:11:53 -08:00
ARMWinCOFFObjectWriter.cpp
ARMWinCOFFStreamer.cpp [MC][NFC] Use camelCase style for functions in MCObjectStreamer 2020-04-20 20:09:20 -07:00
CMakeLists.txt [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
LLVMBuild.txt [AArch64][SVE] Fix -DBUILD_SHARED_LIBS=on builds after -D74808/1874dee5662603c9251228c71b66de72cec0c979 2020-02-21 13:59:47 -08:00