llvm-project/llvm/lib/Target/VE
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 Cleanup MCParser headers 2022-02-11 10:39:29 +01: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
CMakeLists.txt
LVLGen.cpp
VE.h [VE][NFC] Remove obsoleted function declaration 2022-06-19 13:33:46 +09:00
VE.td
VEAsmPrinter.cpp [CodeGen] Move instruction predicate verification to emitInstruction 2022-07-14 09:33:28 +01:00
VECallingConv.td
VECustomDAG.cpp [llvm] Use value_or instead of getValueOr (NFC) 2022-06-18 23:07:11 -07:00
VECustomDAG.h [VE] v512|256 f32|64 fneg isel and tests 2022-03-16 11:31:26 +01:00
VEFrameLowering.cpp
VEFrameLowering.h
VEISelDAGToDAG.cpp [VE] v256i1 broadcast isel and tests 2022-02-15 12:40:51 +01:00
VEISelLowering.cpp [VE][NFC] Correct comment 2022-07-01 19:24:57 +09:00
VEISelLowering.h [VE] v256.32|64 gather|scatter isel and tests 2022-03-14 10:38:56 +01:00
VEInstrBuilder.h
VEInstrFormats.td
VEInstrInfo.cpp Drop some more global std::maps. NFCI. 2022-03-06 13:28:29 +01:00
VEInstrInfo.h
VEInstrInfo.td [VE] Change displacement type in MEM..i from i32 to i64 2022-07-07 09:33:49 -07:00
VEInstrIntrinsicVL.gen.td [VE] Support more intrinsics 2022-03-14 19:17:15 +09:00
VEInstrIntrinsicVL.td [VE] Support more intrinsics 2022-03-14 19:17:15 +09:00
VEInstrPatternsVec.td [VE] Split unsupported v512.32 ops 2022-02-22 14:29:41 +01:00
VEInstrVec.td
VEMCInstLower.cpp
VEMachineFunctionInfo.cpp llvm-reduce: Add cloning of target MachineFunctionInfo 2022-06-07 10:14:48 -04:00
VEMachineFunctionInfo.h llvm-reduce: Add cloning of target MachineFunctionInfo 2022-06-07 10:14:48 -04:00
VERegisterInfo.cpp [VE] Restructure eliminateFrameIndex 2022-07-05 20:00:19 +09:00
VERegisterInfo.h
VERegisterInfo.td [VE] Fix vmp0 subregister mapping 2022-02-18 13:17:10 +01:00
VESubtarget.cpp
VESubtarget.h
VETargetMachine.cpp [llvm] Use value_or instead of getValueOr (NFC) 2022-06-18 23:07:11 -07:00
VETargetMachine.h mark getTargetTransformInfo and getTargetIRAnalysis as const 2022-02-25 14:30:44 -05:00
VETargetTransformInfo.h [VE] v256i32|64 reduction isel and tests 2022-03-14 11:10:38 +01:00
VVPISelLowering.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
VVPInstrInfo.td [VE] v512|256 f32|64 fneg isel and tests 2022-03-16 11:31:26 +01:00
VVPInstrPatternsVec.td [VE] v512|256 f32|64 fneg isel and tests 2022-03-16 11:31:26 +01:00
VVPNodes.def [VE] v512|256 f32|64 fneg isel and tests 2022-03-16 11:31:26 +01:00