Although targets are not required to support integers > 64bits, TargetData
authorReid Spencer <rspencer@reidspencer.com>
Mon, 5 Feb 2007 23:51:43 +0000 (23:51 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 5 Feb 2007 23:51:43 +0000 (23:51 +0000)
commitd2a988caad393ce88adfbadae8af6c87dabd2bf6
tree3f4cabb4b831c6a7c7e9a92f47a5f4cf75a040e9
parent554cec6e65fecdf3a14b3ddd1cb2c9615e726220
Although targets are not required to support integers > 64bits, TargetData
must in order for backends that do want to support large integer types to be
able to function. Consequently, don't assert if the bitwidth > 64 bits
when computing the size and alignment. Instead, compute the size by rounding
up to the next even number of bytes for the size. Compute the alignment
as the same as the LongABIAlignment. These provide reasonable defaults
that the target can override.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33943 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetData.cpp