llvm-project/llvm/lib/Target/VE
Peter Smith e63455d5e0 [MC] Use local MCSubtargetInfo in writeNops
On some architectures such as Arm and X86 the encoding for a nop may
change depending on the subtarget in operation at the time of
encoding. This change replaces the per module MCSubtargetInfo retained
by the targets AsmBackend in favour of passing through the local
MCSubtargetInfo in operation at the time.

On Arm using the architectural NOP instruction can have a performance
benefit on some implementations.

For Arm I've deleted the copy of the AsmBackend's MCSubtargetInfo to
limit the chances of this causing problems in the future. I've not
done this for other targets such as X86 as there is more frequent use
of the MCSubtargetInfo and it looks to be for stable properties that
we would not expect to vary per function.

This change required threading STI through MCNopsFragment and
MCBoundaryAlignFragment.

I've attempted to take into account the in tree experimental backends.

Differential Revision: https://reviews.llvm.org/D45962
2021-09-07 15:46:19 +01:00
..
AsmParser
Disassembler
MCTargetDesc [MC] Use local MCSubtargetInfo in writeNops 2021-09-07 15:46:19 +01:00
TargetInfo
CMakeLists.txt
LVLGen.cpp
VE.h [VE] Change inetger constants 32-bit friendly 2021-02-01 19:00:47 +09:00
VE.td
VEAsmPrinter.cpp
VECallingConv.td
VEFrameLowering.cpp [NFC][CodeGen] Tidy up TargetRegisterInfo stack realignment functions 2021-03-30 17:31:39 +01:00
VEFrameLowering.h
VEISelDAGToDAG.cpp [llvm] Use isa instead of dyn_cast (NFC) 2021-01-29 23:23:37 -08:00
VEISelLowering.cpp [VE][NFC] IRBuilder<> -> IRBuilderBase 2021-06-08 13:55:49 +02:00
VEISelLowering.h [VE] Set getExtendForAtomicOps to ISD::ANY_EXTEND 2021-07-19 19:58:44 +09:00
VEInstrBuilder.h
VEInstrFormats.td
VEInstrInfo.cpp
VEInstrInfo.h
VEInstrInfo.td [VE] Fix types of multiclass template arguments in TableGen files 2021-03-20 10:36:51 -07:00
VEInstrIntrinsicVL.gen.td
VEInstrIntrinsicVL.td
VEInstrPatternsVec.td [VE] Fix types of multiclass template arguments in TableGen files 2021-03-20 10:36:51 -07:00
VEInstrVec.td
VEMCInstLower.cpp
VEMachineFunctionInfo.cpp
VEMachineFunctionInfo.h
VERegisterInfo.cpp
VERegisterInfo.h
VERegisterInfo.td
VESubtarget.cpp
VESubtarget.h
VETargetMachine.cpp
VETargetMachine.h
VETargetTransformInfo.h [VE] Disable relative lookup table converter pass for VE 2021-07-19 19:25:33 +09:00
VVPInstrInfo.td
VVPInstrPatternsVec.td
VVPNodes.def