mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-03 14:21:30 +00:00
Summary: Use -1 as numoperands for the return SDTypeProfile, denoting that return is variadic. Note that the patterns in InstrControl.td still need to match the inputs, so this ins't an "anything goes" variadic on ret! The next step will be to handle other local types (not just int32). Reviewers: sunfish Subscribers: llvm-commits, jfb Differential Revision: http://reviews.llvm.org/D11692 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243783 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
253 B
LLVM
11 lines
253 B
LLVM
; RUN: llc < %s -asm-verbose=false | FileCheck %s
|
|
|
|
target datalayout = "e-p:32:32-i64:64-v128:8:128-n32:64-S128"
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
; CHECK-LABEL: return_void:
|
|
; CHECK-NEXT: (RETURN_VOID)
|
|
define void @return_void() {
|
|
ret void
|
|
}
|