OSDN Git Service

Implement support for non-standard integer bit widths of any size. The
authorReid Spencer <rspencer@reidspencer.com>
Mon, 19 Feb 2007 22:35:00 +0000 (22:35 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 19 Feb 2007 22:35:00 +0000 (22:35 +0000)
commitf734ea21a37e27862ccf7570c2c64ad904568234
treebecfedf87d66222b56544dce2d2bbd21e0f8a34b
parent85f00083f54468afa796dfd003bf4cd45affd3f7
Implement support for non-standard integer bit widths of any size. The
rules alignment is to pick the alignment that corresponds to the smallest
specified alignment that is larger than the bit width of the type or the
largest specified integer alignment if none are larger than the bitwidth
of the type. For the byte size, the size returned is the next larger
multiple of the alignment for that type (using the above rule). This patch
also changes bit widths from "short" to "uint32_t" to ensure there are
enough bits to specify any bit width that LLVM can handle (currently 2^23);
16-bits isn't enough.

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