summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-17 19:12:44 +0000
committerChris Lattner <sabre@nondot.org>2004-08-17 19:12:44 +0000
commitcdab78f036f7deef6fc9c15a45f9c1adf91c63ad (patch)
tree66861b764eb08f58ddb228f18a1618502e48cefd /include
parentb5e1decefbc294008449f3b414290ab63e713ed5 (diff)
downloadllvm-cdab78f036f7deef6fc9c15a45f9c1adf91c63ad.tar.gz
llvm-cdab78f036f7deef6fc9c15a45f9c1adf91c63ad.tar.bz2
llvm-cdab78f036f7deef6fc9c15a45f9c1adf91c63ad.tar.xz
Add punctuation, add a new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetData.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index 56ec5238b1..d354d2098c 100644
--- a/include/llvm/Target/TargetData.h
+++ b/include/llvm/Target/TargetData.h
@@ -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;