summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorMandeep Singh Grang <mgrang@quicinc.com>2019-05-03 21:12:36 +0000
committerMandeep Singh Grang <mgrang@quicinc.com>2019-05-03 21:12:36 +0000
commit5dc8aeb26d2896c65cbea0d3b87f090241444bb6 (patch)
treee9fdeab58b37e92852c61425e7ae3d8430d1fd04 /llvm/include
parent85a0f8fe6c5c8ab35790c40d078d4fa103a5a54a (diff)
downloadbcm5719-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/include')
-rw-r--r--llvm/include/llvm/IR/Argument.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/Argument.h b/llvm/include/llvm/IR/Argument.h
index 2de5c71120e..7997c863b83 100644
--- a/llvm/include/llvm/IR/Argument.h
+++ b/llvm/include/llvm/IR/Argument.h
@@ -90,6 +90,9 @@ public:
/// Return true if this argument has the sret attribute.
bool hasStructRetAttr() const;
+ /// Return true if this argument has the inreg attribute.
+ bool hasInRegAttr() const;
+
/// Return true if this argument has the returned attribute.
bool hasReturnedAttr() const;
OpenPOWER on IntegriCloud