Changes in directory llvm/include/llvm/Target:
TargetData.h updated: 1.45 -> 1.46 --- Log message: Implement a getTypeSizeInBits method. This helps in transforms that want to ensure the bit size of a type is identical before proceeding. --- Diffs of the changes: (+4 -0) TargetData.h | 4 ++++ 1 files changed, 4 insertions(+) Index: llvm/include/llvm/Target/TargetData.h diff -u llvm/include/llvm/Target/TargetData.h:1.45 llvm/include/llvm/Target/TargetData.h:1.46 --- llvm/include/llvm/Target/TargetData.h:1.45 Sat Jan 20 17:07:13 2007 +++ llvm/include/llvm/Target/TargetData.h Sat Jan 20 17:32:04 2007 @@ -221,6 +221,10 @@ /// uint64_t getTypeSize(const Type *Ty) const; + /// getTypeSizeInBits - Return the number of bytes necessary to hold the + /// specified type. + uint64_t getTypeSizeInBits(const Type* Ty) const; + /// getTypeAlignmentABI - Return the minimum ABI-required alignment for the /// specified type. unsigned char getTypeAlignmentABI(const Type *Ty) const; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits