[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h

Reid Spencer reid at x10sys.com
Sat Jan 20 15:32:21 PST 2007



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;






More information about the llvm-commits mailing list