diff options
author | Mandeep Singh Grang <mgrang@quicinc.com> | 2019-05-03 21:12:36 +0000 |
---|---|---|
committer | Mandeep Singh Grang <mgrang@quicinc.com> | 2019-05-03 21:12:36 +0000 |
commit | 5dc8aeb26d2896c65cbea0d3b87f090241444bb6 (patch) | |
tree | e9fdeab58b37e92852c61425e7ae3d8430d1fd04 /llvm/lib/IR/Function.cpp | |
parent | 85a0f8fe6c5c8ab35790c40d078d4fa103a5a54a (diff) | |
download | bcm5719-llvm-5dc8aeb26d2896c65cbea0d3b87f090241444bb6.tar.gz bcm5719-llvm-5dc8aeb26d2896c65cbea0d3b87f090241444bb6.zip |
[COFF, ARM64] Fix ABI implementation of struct returns
Summary:
Refer the ABI doc at: https://docs.microsoft.com/en-us/cpp/build/arm64-windows-abi-conventions?view=vs-2019#return-values
Related clang patch: D60349
Reviewers: rnk, efriedma, TomTan, ssijaric
Reviewed By: rnk, efriedma
Subscribers: mstorsjo, javed.absar, kristof.beyls, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60348
llvm-svn: 359934
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 70a0dbc28b6..b00deb677b3 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -145,6 +145,10 @@ bool Argument::hasStructRetAttr() const { return hasAttribute(Attribute::StructRet); } +bool Argument::hasInRegAttr() const { + return hasAttribute(Attribute::InReg); +} + bool Argument::hasReturnedAttr() const { return hasAttribute(Attribute::Returned); } |