diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-12-22 05:00:45 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-12-22 05:00:45 +0000 | 
| commit | b0404c7a6c30fe347194b6c323bb283fcf708d49 (patch) | |
| tree | 173bb7b3aa9f612e1b7f9944964464d75e4b4604 /include/llvm/Target | |
| parent | 7610a287c65b8271e341a991b0235fa89b263559 (diff) | |
| download | external_llvm-b0404c7a6c30fe347194b6c323bb283fcf708d49.zip external_llvm-b0404c7a6c30fe347194b6c323bb283fcf708d49.tar.gz external_llvm-b0404c7a6c30fe347194b6c323bb283fcf708d49.tar.bz2  | |
Doxygenize methods, add new getIntPtrType method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
| -rw-r--r-- | include/llvm/Target/TargetData.h | 24 | 
1 files changed, 14 insertions, 10 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 9be9564..cbe70bd 100644 --- a/include/llvm/Target/TargetData.h +++ b/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*)  | 
