LLVM API Documentation

TransformInternals.cpp File Reference

#include "TransformInternals.h"
#include "llvm/Type.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"

Include dependency graph for TransformInternals.cpp:

Go to the source code of this file.

Functions

static const TypegetStructOffsetStep (const StructType *STy, uint64_t &Offset, std::vector< Value * > &Indices, const TargetData &TD)
const Typellvm::getStructOffsetType (const Type *Ty, unsigned &Offset, std::vector< Value * > &Indices, const TargetData &TD, bool StopEarly)


Function Documentation

static const Type* getStructOffsetStep ( const StructType STy,
uint64_t &  Offset,
std::vector< Value * > &  Indices,
const TargetData TD 
) [static]

Definition at line 21 of file TransformInternals.cpp.

References llvm::Type::getContainedType(), llvm::TargetData::getStructLayout(), llvm::TargetData::getTypeSize(), and TD.

Referenced by llvm::getStructOffsetType().