summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/wasm-arguments.c
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2019-06-05 21:12:14 +0000
committerTim Northover <tnorthover@apple.com>2019-06-05 21:12:14 +0000
commitc46827c7eda30cd0bc3e70d08670c8dc39fe6166 (patch)
treedc817e1eb1cc273a480022199190880af8b5d7cf /clang/test/CodeGen/wasm-arguments.c
parent9423f5ef56d23c099987ceec2a140fe9efa47934 (diff)
downloadbcm5719-llvm-c46827c7eda30cd0bc3e70d08670c8dc39fe6166.tar.gz
bcm5719-llvm-c46827c7eda30cd0bc3e70d08670c8dc39fe6166.zip
LLVM IR: Generate new-style byval-with-Type from Clang
LLVM IR recently added a Type parameter to the byval Attribute, so that when pointers become opaque and no longer have an element type the information will still be present in IR. For now the Type parameter is optional (which is why Clang didn't need this change at the time), but it will become mandatory soon. llvm-svn: 362652
Diffstat (limited to 'clang/test/CodeGen/wasm-arguments.c')
-rw-r--r--clang/test/CodeGen/wasm-arguments.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/CodeGen/wasm-arguments.c b/clang/test/CodeGen/wasm-arguments.c
index cd3f45ab1a7..c92028bae2d 100644
--- a/clang/test/CodeGen/wasm-arguments.c
+++ b/clang/test/CodeGen/wasm-arguments.c
@@ -14,8 +14,8 @@ typedef struct {
int bb;
} s1;
// Structs should be passed byval and not split up.
-// WEBASSEMBLY32: define void @f1(%struct.s1* byval align 4 %i)
-// WEBASSEMBLY64: define void @f1(%struct.s1* byval align 4 %i)
+// WEBASSEMBLY32: define void @f1(%struct.s1* byval(%struct.s1) align 4 %i)
+// WEBASSEMBLY64: define void @f1(%struct.s1* byval(%struct.s1) align 4 %i)
void f1(s1 i) {}
typedef struct {
@@ -77,8 +77,8 @@ union simple_union {
char b;
};
// Unions should be passed as byval structs.
-// WEBASSEMBLY32: define void @f9(%union.simple_union* byval align 4 %s)
-// WEBASSEMBLY64: define void @f9(%union.simple_union* byval align 4 %s)
+// WEBASSEMBLY32: define void @f9(%union.simple_union* byval(%union.simple_union) align 4 %s)
+// WEBASSEMBLY64: define void @f9(%union.simple_union* byval(%union.simple_union) align 4 %s)
void f9(union simple_union s) {}
typedef struct {
@@ -87,6 +87,6 @@ typedef struct {
int b8 : 8;
} bitfield1;
// Bitfields should be passed as byval structs.
-// WEBASSEMBLY32: define void @f10(%struct.bitfield1* byval align 4 %bf1)
-// WEBASSEMBLY64: define void @f10(%struct.bitfield1* byval align 4 %bf1)
+// WEBASSEMBLY32: define void @f10(%struct.bitfield1* byval(%struct.bitfield1) align 4 %bf1)
+// WEBASSEMBLY64: define void @f10(%struct.bitfield1* byval(%struct.bitfield1) align 4 %bf1)
void f10(bitfield1 bf1) {}
OpenPOWER on IntegriCloud