summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-22 05:00:45 +0000
committerChris Lattner <sabre@nondot.org>2003-12-22 05:00:45 +0000
commitdb65d6f14c14c2aae95bc6bf1b445efbc566fc6d (patch)
treed5d9b0e7877cc5f46fa28c2601ed7b744c51a6b8
parenta5e3418d986caefc56f5f27bd26a0d34a87bde9c (diff)
downloadbcm5719-llvm-db65d6f14c14c2aae95bc6bf1b445efbc566fc6d.tar.gz
bcm5719-llvm-db65d6f14c14c2aae95bc6bf1b445efbc566fc6d.zip
Doxygenize methods, add new getIntPtrType method
llvm-svn: 10578
-rw-r--r--llvm/include/llvm/Target/TargetData.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/llvm/include/llvm/Target/TargetData.h b/llvm/include/llvm/Target/TargetData.h
index 9be9564f164..cbe70bd662a 100644
--- a/llvm/include/llvm/Target/TargetData.h
+++ b/llvm/include/llvm/Target/TargetData.h
@@ -71,19 +71,23 @@ public:
unsigned char getPointerSize() const { return PointerSize; }
AnnotationID getStructLayoutAID() const { return AID; }
- // getTypeSize - Return the number of bytes necessary to hold the specified
- // type
- uint64_t getTypeSize (const Type *Ty) const;
+ /// getTypeSize - Return the number of bytes necessary to hold the specified
+ /// type
+ uint64_t getTypeSize(const Type *Ty) const;
- // getTypeAlignment - Return the minimum required alignment for the specified
- // type
+ /// getTypeAlignment - Return the minimum required alignment for the specified
+ /// type
unsigned char getTypeAlignment(const Type *Ty) const;
- // getIndexOffset - return the offset from the beginning of the type for the
- // specified indices. This is used to implement getelementptr.
- //
- uint64_t getIndexedOffset(const Type *Ty,
- const std::vector<Value*> &Indices) const;
+ /// getIntPtrType - Return an unsigned integer type that is the same size or
+ /// greater to the host pointer size.
+ const Type *getIntPtrType() const;
+
+ /// getIndexOffset - return the offset from the beginning of the type for the
+ /// specified indices. This is used to implement getelementptr.
+ ///
+ uint64_t getIndexedOffset(const Type *Ty,
+ const std::vector<Value*> &Indices) const;
inline const StructLayout *getStructLayout(const StructType *Ty) const {
return (const StructLayout*)
OpenPOWER on IntegriCloud