llvm-project/llvm/test
Cullen Rhodes 2a48176373 [AArch64] Implement initial SVE calling convention support
Summary:

This patch adds initial support for the SVE calling convention such that
SVE types can be passed as arguments and return values to/from a
subroutine.

The SVE AAPCS states [1]:

    z0-z7 are used to pass scalable vector arguments to a subroutine,
    and to return scalable vector results from a function. If a
    subroutine takes arguments in scalable vector or predicate
    registers, or if it is a function that returns results in such
    registers, it must ensure that the entire contents of z8-z23 are
    preserved across the call. In other cases it need only preserve the
    low 64 bits of z8-z15, as described in §5.1.2.

    p0-p3 are used to pass scalable predicate arguments to a subroutine
    and to return scalable predicate results from a function. If a
    subroutine takes arguments in scalable vector or predicate
    registers, or if it is a function that returns results in these
    registers, it must ensure that p4-p15 are preserved across the call.
    In other cases it need not preserve any scalable predicate register
    contents.

SVE predicate and data registers are passed indirectly (i.e. spilled to the
stack and pass the address) if they exceed the registers used for argument
passing defined by the PCS referenced above.  Until SVE stack support is merged
we can't spill SVE registers to the stack, so currently an llvm_unreachable is
used where we will eventually handle this.

[1] https://static.docs.arm.com/100986/0000/100986_0000.pdf

Reviewed By: ostannard

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

llvm-svn: 367859
2019-08-05 13:44:10 +00:00
..
Analysis [MemorySSA] Add additional verification for phis. 2019-07-31 17:41:04 +00:00
Assembler IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
Bindings IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
Bitcode IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
BugPoint
CodeGen [AArch64] Implement initial SVE calling convention support 2019-08-05 13:44:10 +00:00
DebugInfo Changing representation of .cv_def_range directives in Codeview debug info assembly format for better readability 2019-08-05 13:11:51 +00:00
Demangle
Examples
ExecutionEngine [JITLink] Fix an overly-wide read in the MachO/x86-64 test case. 2019-08-03 22:38:31 +00:00
Feature IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
FileCheck [FileCheck]] Canonicalize caret location testing 2019-07-24 12:38:29 +00:00
Instrumentation IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
Integer
JitListener
LTO IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
Linker IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
MC Changing representation of .cv_def_range directives in Codeview debug info assembly format for better readability 2019-08-05 13:11:51 +00:00
MachineVerifier [Testing] Fix tests that break with read-only checkouts 2019-08-01 06:41:40 +00:00
Object [llvm/Object] - Add a test for "empty string table" error. 2019-07-31 08:12:01 +00:00
ObjectYAML
Other [NewPassManager] Resolve assertion in CGSCCPassManager when CallCounts change. 2019-08-02 18:37:03 +00:00
SafepointIRVerifier
Support
SymbolRewriter
TableGen [GlobalISel] Check LLT size matches memory size for non-truncating stores. 2019-08-02 23:33:13 +00:00
ThinLTO/X86 IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
Transforms [InstCombine] Added mempcpy tests [NFC] 2019-08-05 09:58:32 +00:00
Unit
Verifier [FunctionAttrs] Annotate "willreturn" for intrinsics 2019-07-28 06:09:56 +00:00
YAMLParser
tools [obj2yaml] - Teach tool to dump SHT_NULL sections. 2019-08-05 13:16:06 +00:00
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in