diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-01-23 23:17:41 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-01-23 23:17:41 +0000 |
commit | 5a67b819a91592a2e433c2db36481dd7d6ee7bf6 (patch) | |
tree | ef8b23bf5acebabc33fea3c8928a9f83b85ddeae /include | |
parent | 7e520b50509cf5f80d294f4ebcc08ae27590a4ee (diff) | |
download | external_llvm-5a67b819a91592a2e433c2db36481dd7d6ee7bf6.zip external_llvm-5a67b819a91592a2e433c2db36481dd7d6ee7bf6.tar.gz external_llvm-5a67b819a91592a2e433c2db36481dd7d6ee7bf6.tar.bz2 |
Let each target decide byval alignment. For X86, it's 4-byte unless the aggregare contains SSE vector(s). For x86-64, it's max of 8 or alignment of the type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index f55c2d0..5514717 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -405,6 +405,10 @@ public: return VT == MVT::iPTR ? PointerTy : VT; } + /// getByValTypeAlignment - Return the desired alignment for ByVal aggregate + /// function arguments in the caller parameter area. + virtual unsigned getByValTypeAlignment(const Type *Ty) const; + /// getRegisterType - Return the type of registers that this ValueType will /// eventually require. MVT::ValueType getRegisterType(MVT::ValueType VT) const { @@ -433,7 +437,7 @@ public: } assert(0 && "Unsupported extended type!"); } - + /// hasTargetDAGCombine - If true, the target has custom DAG combine /// transformations that it can perform for the specified node. bool hasTargetDAGCombine(ISD::NodeType NT) const { |