aboutsummaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-10 00:30:57 +0000
committerChris Lattner <sabre@nondot.org>2008-01-10 00:30:57 +0000
commit9c4428b217eca38e06c7bc01c8a6e1b248df326f (patch)
tree9d7d9ce943b8820359fb7170e971e8cb24b98d16 /include/llvm
parent314286f6bd7e7d1c4833866831aa576583c2d7b3 (diff)
Fix PR1845 and rdar://5676945. Generic vectors smaller
than hardware supported type will be scalarized, so we can infer their alignment from that info. We now codegen pr1845 into: _boolVectorSelect: lbz r2, 0(r3) stb r2, -16(r1) blr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Target/TargetData.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index a3f2dbccd9..0bcd4019b7 100644
--- a/include/llvm/Target/TargetData.h
+++ b/include/llvm/Target/TargetData.h
@@ -92,7 +92,7 @@ private:
void setAlignment(AlignTypeEnum align_type, unsigned char abi_align,
unsigned char pref_align, uint32_t bit_width);
unsigned getAlignmentInfo(AlignTypeEnum align_type, uint32_t bit_width,
- bool ABIAlign) const;
+ bool ABIAlign, const Type *Ty) const;
//! Internal helper method that returns requested alignment for type.
unsigned char getAlignment(const Type *Ty, bool abi_or_pref) const;