diff options
author | Tim Northover <tnorthover@apple.com> | 2019-05-29 19:12:48 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2019-05-29 19:12:48 +0000 |
commit | 6e07f16fae605c42014aa4f1f2babf3e7767c95c (patch) | |
tree | 0fc6d7bdebcdd3d743976cbbee35393af81f9a62 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | ee37e28fd1c670ecabea64a15b9cc8698ca62b86 (diff) | |
download | bcm5719-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/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index d636e613363..4ad578d80fa 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -112,6 +112,7 @@ void TargetLoweringBase::ArgListEntry::setAttributes(const CallBase *Call, IsSwiftSelf = Call->paramHasAttr(ArgIdx, Attribute::SwiftSelf); IsSwiftError = Call->paramHasAttr(ArgIdx, Attribute::SwiftError); Alignment = Call->getParamAlignment(ArgIdx); + ByValType = Call->getParamByValType(ArgIdx); } /// Generate a libcall taking the given operands as arguments and returning a |