summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2016-08-30 00:59:23 +0000
committerHal Finkel <hfinkel@anl.gov>2016-08-30 00:59:23 +0000
commitb074a608ceb2514ff5c8967b0f36c168fb54576e (patch)
treef34276831928cad569fd5763ac8d398a78a8fc32 /llvm/lib/Target/PowerPC/PPCSubtarget.h
parent455d3569d84c0e999257b7e7b87b9b7e46dd8774 (diff)
downloadbcm5719-llvm-b074a608ceb2514ff5c8967b0f36c168fb54576e.tar.gz
bcm5719-llvm-b074a608ceb2514ff5c8967b0f36c168fb54576e.zip
[PowerPC] Add support for -mlongcall
The "long call" option forces the use of the indirect calling sequence for all calls (even those that don't really need it). GCC provides this option; This is helpful, under certain circumstances, for building very-large binaries, and some other specialized use cases. Fixes PR19098. llvm-svn: 280040
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index 9fe286a3b7a..f58c7c10c8b 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h
@@ -132,6 +132,7 @@ protected:
bool HasFusion;
bool HasFloat128;
bool IsISA3_0;
+ bool UseLongCalls;
POPCNTDKind HasPOPCNTD;
@@ -275,6 +276,7 @@ public:
bool hasFusion() const { return HasFusion; }
bool hasFloat128() const { return HasFloat128; }
bool isISA3_0() const { return IsISA3_0; }
+ bool useLongCalls() const { return UseLongCalls; }
POPCNTDKind hasPOPCNTD() const { return HasPOPCNTD; }
OpenPOWER on IntegriCloud