LLVM API Documentation

llvm::StructLayout Class Reference

#include <TargetData.h>

Collaboration diagram for llvm::StructLayout:

Collaboration graph
[legend]

List of all members.

Public Member Functions

uint64_t getSizeInBytes () const
uint64_t getSizeInBits () const
unsigned getAlignment () const
unsigned getElementContainingOffset (uint64_t Offset) const
uint64_t getElementOffset (unsigned Idx) const
uint64_t getElementOffsetInBits (unsigned Idx) const

Friends

class TargetData


Detailed Description

StructLayout - used to lazily calculate structure layout information for a target machine, based on the TargetData structure.

Definition at line 259 of file TargetData.h.


Member Function Documentation

uint64_t llvm::StructLayout::getSizeInBytes (  )  const [inline]

Definition at line 266 of file TargetData.h.

uint64_t llvm::StructLayout::getSizeInBits (  )  const [inline]

Definition at line 270 of file TargetData.h.

Referenced by llvm::TargetData::getTypeSizeInBits().

unsigned llvm::StructLayout::getAlignment (  )  const [inline]

Definition at line 274 of file TargetData.h.

unsigned StructLayout::getElementContainingOffset ( uint64_t  Offset  )  const

getElementContainingOffset - Given a valid offset into the structure, return the structure index that contains it.

getElementContainingOffset - Given a valid offset into the structure, return the structure index that contains it.

Definition at line 76 of file TargetData.cpp.

uint64_t llvm::StructLayout::getElementOffset ( unsigned  Idx  )  const [inline]

uint64_t llvm::StructLayout::getElementOffsetInBits ( unsigned  Idx  )  const [inline]

Definition at line 288 of file TargetData.h.

References getElementOffset().

Referenced by HasPadding().


Friends And Related Function Documentation

friend class TargetData [friend]

Definition at line 293 of file TargetData.h.


The documentation for this class was generated from the following files:



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.