Displaying 1 result from an estimated 1 matches for "alignedsize".
Did you mean:
aligned_size
2004 Dec 03
1
[Fwd: [LLVMdev] GetElementPtr for packed types and VS build]
...=
> RCS file: /var/cvs/llvm/llvm/lib/Target/TargetData.cpp,v
> retrieving revision 1.53
> diff -u -r1.53 TargetData.cpp
> --- lib/Target/TargetData.cpp 2 Nov 2004 22:18:18 -0000 1.53
> +++ lib/Target/TargetData.cpp 26 Nov 2004 09:46:45 -0000
> @@ -175,6 +175,13 @@
> Size = AlignedSize*ATy->getNumElements();
> return;
> }
> + case Type::PackedTyID: {
> + const PackedType *PTy = cast<PackedType>(Ty);
> + getTypeInfo(PTy->getElementType(), TD, Size, Alignment);
> + unsigned AlignedSize = (Size + Alignment - 1)/Alignment*Alignment;
>...