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

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 17 12:12:57 PDT 2004



Changes in directory llvm/include/llvm/Target:

TargetData.h updated: 1.25 -> 1.26
---
Log message:

Add punctuation, add a new method


---
Diffs of the changes:  (+6 -2)

Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.25 llvm/include/llvm/Target/TargetData.h:1.26
--- llvm/include/llvm/Target/TargetData.h:1.25	Thu Jul 22 20:08:13 2004
+++ llvm/include/llvm/Target/TargetData.h	Tue Aug 17 14:12:44 2004
@@ -87,13 +87,17 @@
   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;






More information about the llvm-commits mailing list