LLVM API Documentation
#include <DataLayout.h>
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 | DataLayout |
StructLayout - used to lazily calculate structure layout information for a target machine, based on the DataLayout structure.
Definition at line 480 of file DataLayout.h.
unsigned llvm::StructLayout::getAlignment | ( | ) | const [inline] |
Definition at line 495 of file DataLayout.h.
unsigned StructLayout::getElementContainingOffset | ( | uint64_t | Offset | ) | const |
getElementContainingOffset - Given a valid byte 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 79 of file DataLayout.cpp.
Referenced by getNaturalGEPRecursively(), getTypePartition(), LLVMElementAtOffset(), ReadDataFromGlobal(), stripAggregateTypeWrapping(), and SymbolicallyEvaluateGEP().
uint64_t llvm::StructLayout::getElementOffset | ( | unsigned | Idx | ) | const [inline] |
Definition at line 504 of file DataLayout.h.
Referenced by llvm::GEPOperator::accumulateConstantOffset(), computeKnownBits(), llvm::ComputeValueVTs(), DecomposeGEPExpression(), llvm::EmitGEPOffset(), emitGlobalConstantStruct(), EvaluateGEPOffsetExpression(), getElementOffsetInBits(), llvm::DataLayout::getIndexedOffset(), getNaturalGEPRecursively(), GetOffsetFromIndex(), llvm::ScalarEvolution::getOffsetOfExpr(), getTypePartition(), llvm::ExecutionEngine::InitializeMemory(), isGEPKnownNonNull(), LLVMOffsetOfElement(), ReadDataFromGlobal(), llvm::FastISel::selectGetElementPtr(), SRAGlobal(), and SymbolicallyEvaluateGEP().
uint64_t llvm::StructLayout::getElementOffsetInBits | ( | unsigned | Idx | ) | const [inline] |
Definition at line 509 of file DataLayout.h.
References getElementOffset().
Referenced by HasPadding().
uint64_t llvm::StructLayout::getSizeInBits | ( | ) | const [inline] |
Definition at line 491 of file DataLayout.h.
Referenced by llvm::DataLayout::getTypeSizeInBits().
uint64_t llvm::StructLayout::getSizeInBytes | ( | ) | const [inline] |
Definition at line 487 of file DataLayout.h.
Referenced by computeArraySize(), emitGlobalConstantStruct(), getNaturalGEPRecursively(), getTypePartition(), PerformHeapAllocSRoA(), SymbolicallyEvaluateGEP(), and TryToOptimizeStoreOfMallocToGlobal().
friend class DataLayout [friend] |
Definition at line 514 of file DataLayout.h.