summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2019-05-29 19:12:48 +0000
committerTim Northover <tnorthover@apple.com>2019-05-29 19:12:48 +0000
commit6e07f16fae605c42014aa4f1f2babf3e7767c95c (patch)
tree0fc6d7bdebcdd3d743976cbbee35393af81f9a62 /llvm/test/Transforms/Inline
parentee37e28fd1c670ecabea64a15b9cc8698ca62b86 (diff)
downloadbcm5719-llvm-6e07f16fae605c42014aa4f1f2babf3e7767c95c.tar.gz
bcm5719-llvm-6e07f16fae605c42014aa4f1f2babf3e7767c95c.zip
IR: add optional type to 'byval' function parameters
When we switch to opaque pointer types we will need some way to describe how many bytes a 'byval' parameter should occupy on the stack. This adds a (for now) optional extra type parameter. If present, the type must match the pointee type of the argument. Note to front-end maintainers: if this causes test failures, it's probably because the "byval" attribute is printed after attributes without any parameter after this change. llvm-svn: 362012
Diffstat (limited to 'llvm/test/Transforms/Inline')
-rw-r--r--llvm/test/Transforms/Inline/byval-tail-call.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/Inline/byval-tail-call.ll b/llvm/test/Transforms/Inline/byval-tail-call.ll
index 8aafe7943f4..be495f1bcd3 100644
--- a/llvm/test/Transforms/Inline/byval-tail-call.ll
+++ b/llvm/test/Transforms/Inline/byval-tail-call.ll
@@ -56,7 +56,7 @@ define void @foobar(i32* %x) {
; CHECK: %[[POS:.*]] = alloca i32
; CHECK: %[[VAL:.*]] = load i32, i32* %x
; CHECK: store i32 %[[VAL]], i32* %[[POS]]
-; CHECK: tail call void @ext2(i32* byval nonnull %[[POS]]
+; CHECK: tail call void @ext2(i32* nonnull byval %[[POS]]
; CHECK: ret void
tail call void @bar2(i32* byval %x)
ret void
@@ -67,7 +67,7 @@ define void @barfoo() {
; CHECK: %[[POS:.*]] = alloca i32
; CHECK: %[[VAL:.*]] = load i32, i32* %x
; CHECK: store i32 %[[VAL]], i32* %[[POS]]
-; CHECK: tail call void @ext2(i32* byval nonnull %[[POS]]
+; CHECK: tail call void @ext2(i32* nonnull byval %[[POS]]
; CHECK: ret void
%x = alloca i32
tail call void @bar2(i32* byval %x)
OpenPOWER on IntegriCloud