llvm-project/llvm/lib/Target/AVR
David Green 3e0bf1c7a9 [CodeGen] Move instruction predicate verification to emitInstruction
D25618 added a method to verify the instruction predicates for an
emitted instruction, through verifyInstructionPredicates added into
<Target>MCCodeEmitter::encodeInstruction. This is a very useful idea,
but the implementation inside MCCodeEmitter made it only fire for object
files, not assembly which most of the llvm test suite uses.

This patch moves the code into the <Target>_MC::verifyInstructionPredicates
method, inside the InstrInfo.  The allows it to be called from other
places, such as in this patch where it is called from the
<Target>AsmPrinter::emitInstruction methods which should trigger for
both assembly and object files. It can also be called from other places
such as verifyInstruction, but that is not done here (it tends to catch
errors earlier, but in reality just shows all the mir tests that have
incorrect feature predicates). The interface was also simplified
slightly, moving computeAvailableFeatures into the function so that it
does not need to be called externally.

The ARM, AMDGPU (but not R600), AVR, Mips and X86 backends all currently
show errors in the test-suite, so have been disabled with FIXME
comments.

Recommitted with some fixes for the leftover MCII variables in release
builds.

Differential Revision: https://reviews.llvm.org/D129506
2022-07-14 09:33:28 +01:00
..
AsmParser [AVR] Reject/Reserve R0~R15 on AVRTiny. 2022-03-24 02:33:51 +00:00
Disassembler Rename `MCFixedLenDisassembler.h` as `MCDecoderOps.h` 2022-05-15 08:44:58 +08:00
MCTargetDesc [CodeGen] Move instruction predicate verification to emitInstruction 2022-07-14 09:33:28 +01:00
TargetInfo Fix shlib builds for all lib/Target/*/TargetInfo libs 2021-10-08 15:21:13 -07:00
AVR.h [AVR] Merge AVRRelaxMemOperations into AVRExpandPseudoInsts 2022-04-11 02:42:13 +00:00
AVR.td
AVRAsmPrinter.cpp [CodeGen] Move instruction predicate verification to emitInstruction 2022-07-14 09:33:28 +01:00
AVRCallingConv.td [AVR] Reject/Reserve R0~R15 on AVRTiny. 2022-03-24 02:33:51 +00:00
AVRDevices.td [AVR] Add more devices 2022-03-25 01:43:41 +00:00
AVRExpandPseudoInsts.cpp [AVR][NFC] Eliminate warning 'unused variable' 2022-05-06 06:15:28 +00:00
AVRFrameLowering.cpp [AVR] Always expand STDSPQRr & STDWSPQRr 2022-05-05 03:10:59 +00:00
AVRFrameLowering.h
AVRISelDAGToDAG.cpp [AVR] Generate ELPM for loading byte/word from extended program memory 2022-01-20 02:53:10 +00:00
AVRISelLowering.cpp [AVR] Optimize int16 airthmetic right shift for shift amount 7/14/15 2022-03-26 06:53:27 +00:00
AVRISelLowering.h [AVR] Fix atomicrmw result value 2022-02-02 09:10:39 +01:00
AVRInstrFormats.td [MC][AVR] Implement decoding STD/LDD 2022-05-05 01:53:49 +00:00
AVRInstrInfo.cpp [AVR] Fix expanding MOVW for overlapping registers 2022-06-26 17:20:07 +08:00
AVRInstrInfo.h [amdgpu] Handle the case where there is no scavenged register. 2021-10-27 18:37:27 -04:00
AVRInstrInfo.td [AVR] Add PrintMethod for operand memspi 2022-05-09 08:31:49 +00:00
AVRMCInstLower.cpp
AVRMCInstLower.h
AVRMachineFunctionInfo.h llvm-reduce: Add cloning of target MachineFunctionInfo 2022-06-07 10:14:48 -04:00
AVRRegisterInfo.cpp [AVR] Reject/Reserve R0~R15 on AVRTiny. 2022-03-24 02:33:51 +00:00
AVRRegisterInfo.h [llvm] Use nullptr instead of 0 (NFC) 2021-12-28 08:52:25 -08:00
AVRRegisterInfo.td [AVR] Remove regalloc workaround for LDDWRdPtrQ 2022-01-23 17:08:00 +01:00
AVRSelectionDAGInfo.h
AVRShiftExpand.cpp
AVRSubtarget.cpp [Target] Remove redundant member initialization (NFC) 2022-01-06 22:01:44 -08:00
AVRSubtarget.h [AVR][MC] Emit some aliases for GPRs and IO registers 2022-03-24 02:08:22 +00:00
AVRTargetMachine.cpp [llvm] Use value_or instead of getValueOr (NFC) 2022-06-18 23:07:11 -07:00
AVRTargetMachine.h
AVRTargetObjectFile.cpp [AVR][MC] Generate section '.progmemX.data' for extended flash banks 2022-01-20 02:53:10 +00:00
AVRTargetObjectFile.h [AVR][MC] Generate section '.progmemX.data' for extended flash banks 2022-01-20 02:53:10 +00:00
CMakeLists.txt [AVR] Merge AVRRelaxMemOperations into AVRExpandPseudoInsts 2022-04-11 02:42:13 +00:00
README.md
TODO.md

README.md

AVR backend

This experimental backend is for the 8-bit Atmel AVR microcontroller.