llvm-project/llvm/test
Simon Tatham 286e1d2c2d [ARM] Set up infrastructure for MVE vector instructions.
This commit prepares the way to start adding the main collection of
MVE instructions, which operate on the 128-bit vector registers.

The most obvious thing that's needed, and the simplest, is to add the
MQPR register class, which is like the existing QPR except that it has
fewer registers in it.

The more complicated part: MVE defines a system of vector predication,
in which instructions operating on 128-bit vector registers can be
constrained to operate on only a subset of the lanes, using a system
of prefix instructions similar to the existing Thumb IT, in that you
have one prefix instruction which designates up to 4 following
instructions as subject to predication, and within that sequence, the
predicate can be inverted by means of T/E suffixes ('Then' / 'Else').

To support instructions of this type, we've added two new Tablegen
classes `vpred_n` and `vpred_r` for standard clusters of MC operands
to add to a predicated instruction. Both include a flag indicating how
the instruction is predicated at all (options are T, E and 'not
predicated'), and an input register field for the register controlling
the set of active lanes. They differ from each other in that `vpred_r`
also includes an input operand for the previous value of the output
register, for instructions that leave inactive lanes unchanged.
`vpred_n` lacks that extra operand; it will be used for instructions
that don't preserve inactive lanes in their output register (either
because inactive lanes are zeroed, as the MVE load instructions do, or
because the output register isn't a vector at all).

This commit also adds the family of prefix instructions themselves
(VPT / VPST), and all the machinery needed to work with them in
assembly and disassembly (e.g. generating the 't' and 'e' mnemonic
suffixes on disassembled instructions within a predicated block)

I've added a couple of demo instructions that derive from the new
Tablegen base classes and use those two operand clusters. The bulk of
the vector instructions will come in followup commits small enough to
be manageable. (One exception is that I've added the full version of
`isMnemonicVPTPredicable` in the AsmParser, because it seemed
pointless to carefully split it up.)

Reviewers: dmgreen, samparker, SjoerdMeijer, t.p.northover

Subscribers: javed.absar, kristof.beyls, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62669

llvm-svn: 363258
2019-06-13 13:11:13 +00:00
..
Analysis Improve reduction intrinsics by overloading result value. 2019-06-13 09:37:38 +00:00
Assembler Change semantics of fadd/fmul vector reductions. 2019-06-11 08:22:10 +00:00
Bindings Fixed the Bindings/OCaml/core.ml test 2019-05-20 14:06:21 +00:00
Bitcode Change semantics of fadd/fmul vector reductions. 2019-06-11 08:22:10 +00:00
BugPoint [Bugpoint] Only run plugins tests if plugins are enabled 2019-05-17 06:41:04 +00:00
CodeGen [X86][AVX] Add broadcast(v4f64 hadd) test 2019-06-13 11:42:32 +00:00
DebugInfo [DebugInfo] Honour variable fragments in LiveDebugValues 2019-06-13 12:51:57 +00:00
Demangle llvm-undname: Correctly demangle vararg parameters 2019-06-04 19:10:08 +00:00
Examples
ExecutionEngine [ExecutionEngine] Add UnaryOperator visitor to the interpreter 2019-06-10 14:38:48 +00:00
Feature [Bugpoint] Only run plugins tests if plugins are enabled 2019-05-17 06:41:04 +00:00
FileCheck FileCheck [6/12]: Introduce numeric variable definition 2019-06-06 13:21:06 +00:00
Instrumentation [MSAN] Add unary FNeg visitor to the MemorySanitizer 2019-06-05 22:37:05 +00:00
Integer
JitListener
LTO [ThinLTO]LTO]Legacy] Fix dependent libraries support by adding querying of the IRSymtab 2019-06-12 11:07:56 +00:00
Linker Reapply: IR: add optional type to 'byval' function parameters 2019-05-30 18:48:23 +00:00
MC [ARM] Set up infrastructure for MVE vector instructions. 2019-06-13 13:11:13 +00:00
MachineVerifier [GlobalISel] Add a G_JUMP_TABLE opcode. 2019-06-11 19:58:06 +00:00
Object [yaml2obj/obj2yaml] - Make RawContentSection::Content and RawContentSection::Size optional 2019-06-10 12:43:18 +00:00
ObjectYAML
Other [Attributor] Pass infrastructure and fixpoint framework 2019-06-05 03:02:24 +00:00
SafepointIRVerifier
Support
SymbolRewriter
TableGen TableGen: Handle nontrivial foreach range bounds 2019-05-22 21:28:20 +00:00
ThinLTO/X86 [ThinLTO] Use original alias visibility when importing 2019-05-29 16:50:46 +00:00
Transforms Improve reduction intrinsics by overloading result value. 2019-06-13 09:37:38 +00:00
Unit
Verifier Revert r361953 "[SVE][IR] Scalable Vector IR Type" 2019-06-09 19:27:50 +00:00
YAMLParser
tools [llvm-nm] Additional lit tests for command line options 2019-06-13 10:39:36 +00:00
.clang-format
CMakeLists.txt [tools] Introduce llvm-lipo 2019-05-28 23:22:12 +00:00
TestRunner.sh
lit.cfg.py [Bugpoint] Only run plugins tests if plugins are enabled 2019-05-17 06:41:04 +00:00
lit.site.cfg.py.in [Bugpoint] Only run plugins tests if plugins are enabled 2019-05-17 06:41:04 +00:00