Add punctuation, add a new method
authorChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2004 19:12:44 +0000 (19:12 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2004 19:12:44 +0000 (19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15886 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetData.h

index 56ec5238b12e37875ff9bf0b4bfca28ade621ec9..d354d2098ce4b44b8e892239c035e6119b2d8183 100644 (file)
@@ -87,13 +87,17 @@ public:
   unsigned char getPointerSize()      const { return      PointerSize; }
 
   /// getTypeSize - Return the number of bytes necessary to hold the specified
-  /// type
+  /// type.
   uint64_t getTypeSize(const Type *Ty) const;
 
   /// getTypeAlignment - Return the minimum required alignment for the specified
-  /// type
+  /// type.
   unsigned char getTypeAlignment(const Type *Ty) const;
 
+  /// getTypeAlignmentShift - Return the minimum required alignment for the
+  /// specified type, returned as log2 of the value (a shift amount).
+  unsigned char getTypeAlignmentShift(const Type *Ty) const;
+
   /// getIntPtrType - Return an unsigned integer type that is the same size or
   /// greater to the host pointer size.
   const Type *getIntPtrType() const;