summaryrefslogtreecommitdiff
path: root/lib/Target/AArch64/AArch64ISelLowering.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-01 22:29:43 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-01 22:29:43 +0000
commit33cc3f81c1f5475b62332262bec3b816b9d8202e (patch)
treefbcbeeae92476402da56518a3e1fb24dc07507b6 /lib/Target/AArch64/AArch64ISelLowering.h
parent447c3480e54a94274a5cc37eee06f8cada43237e (diff)
downloadllvm-33cc3f81c1f5475b62332262bec3b816b9d8202e.tar.gz
llvm-33cc3f81c1f5475b62332262bec3b816b9d8202e.tar.bz2
llvm-33cc3f81c1f5475b62332262bec3b816b9d8202e.tar.xz
Remove the 's' DataLayout specification
During the years there have been some attempts at figuring out how to align byval arguments. A look at the commit log suggests that they were * Use the ABI alignment. * When that was not sufficient for x86-64, I added the 's' specification to DataLayout. * When that was not sufficient Evan added the virtual getByValTypeAlignment. * When even that was not sufficient, we just got the FE to add the alignment to the byval. This patch is just a simple cleanup that removes my first attempt at fixing the problem. I also added an AArch64 implementation of getByValTypeAlignment to make sure this patch is a nop. I also left the 's' parsing for backward compatibility. I will send a short email to llvmdev about the change for anyone maintaining an out of tree target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AArch64/AArch64ISelLowering.h')
-rw-r--r--lib/Target/AArch64/AArch64ISelLowering.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/AArch64/AArch64ISelLowering.h b/lib/Target/AArch64/AArch64ISelLowering.h
index 358b5a1b21..f9ed6310d7 100644
--- a/lib/Target/AArch64/AArch64ISelLowering.h
+++ b/lib/Target/AArch64/AArch64ISelLowering.h
@@ -221,6 +221,8 @@ public:
const SmallVectorImpl<SDValue> &OutVals,
SDLoc dl, SelectionDAG &DAG) const;
+ virtual unsigned getByValTypeAlignment(Type *Ty) const LLVM_OVERRIDE;
+
SDValue LowerCall(CallLoweringInfo &CLI,
SmallVectorImpl<SDValue> &InVals) const;