[PATCH] D76049: [WebAssembly] Support swiftself and swifterror for WebAssembly target
Yuta Saito via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 17 18:56:58 PDT 2020
kateinoigakukun updated this revision to Diff 250961.
kateinoigakukun marked 4 inline comments as done.
kateinoigakukun added a comment.
Remove unnecessary logic around `WebAssemblyExplicitLocals` and added some test cases
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76049/new/
https://reviews.llvm.org/D76049
Files:
llvm/test/CodeGen/WebAssembly/swiftcc.ll
Index: llvm/test/CodeGen/WebAssembly/swiftcc.ll
===================================================================
--- llvm/test/CodeGen/WebAssembly/swiftcc.ll
+++ llvm/test/CodeGen/WebAssembly/swiftcc.ll
@@ -14,10 +14,17 @@
; CHECK-LABEL: bar:
; CHECK-NEXT: .functype bar (i32, i32) -> ()
; CHECK: call_indirect (i32, i32, i32, i32) -> ()
+; CHECK: call_indirect (i32, i32, i32, i32) -> ()
+; CHECK: call_indirect (i32, i32, i32, i32) -> ()
define swiftcc void @bar() {
%1 = load i8*, i8** @data
%2 = bitcast i8* %1 to void (i32, i32, i32)*
call swiftcc void %2(i32 1, i32 2, i32 swiftself 3)
+ %3 = bitcast i8* %1 to void (i32, i32, i32**)*
+ %err = alloca swifterror i32*, align 4
+ call swiftcc void %3(i32 1, i32 2, i32** swifterror %err)
+ %4 = bitcast i8* %1 to void (i32, i32, i32, i32**)*
+ call swiftcc void %4(i32 1, i32 2, i32 swiftself 3, i32** swifterror %err)
ret void
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76049.250961.patch
Type: text/x-patch
Size: 923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200318/e5c83e84/attachment.bin>
More information about the llvm-commits
mailing list