LLVM API Documentation
#include <TargetData.h>
Inheritance diagram for llvm::TargetData:
Public Member Functions | |
TargetData (const std::string &TargetName="", bool LittleEndian=false, unsigned char PtrSize=8, unsigned char PtrAl=8, unsigned char DoubleAl=8, unsigned char FloatAl=4, unsigned char LongAl=8, unsigned char IntAl=4, unsigned char ShortAl=2, unsigned char ByteAl=1, unsigned char BoolAl=1) | |
TargetData (const TargetData &TD) | |
TargetData (const std::string &ToolName, const Module *M) | |
~TargetData () | |
bool | isLittleEndian () const |
Target endianness... | |
bool | isBigEndian () const |
unsigned char | getBoolAlignment () const |
Target alignment constraints. | |
unsigned char | getByteAlignment () const |
unsigned char | getShortAlignment () const |
unsigned char | getIntAlignment () const |
unsigned char | getLongAlignment () const |
unsigned char | getFloatAlignment () const |
unsigned char | getDoubleAlignment () const |
unsigned char | getPointerAlignment () const |
unsigned char | getPointerSize () const |
uint64_t | getTypeSize (const Type *Ty) const |
unsigned char | getTypeAlignment (const Type *Ty) const |
unsigned char | getTypeAlignmentShift (const Type *Ty) const |
const Type * | getIntPtrType () const |
uint64_t | getIndexedOffset (const Type *Ty, const std::vector< Value * > &Indices) const |
const StructLayout * | getStructLayout (const StructType *Ty) const |
Definition at line 35 of file TargetData.h.
|
Definition at line 78 of file TargetData.cpp. |
|
Definition at line 57 of file TargetData.h. |
|
Definition at line 104 of file TargetData.cpp. References llvm::Module::BigEndian, llvm::Module::getEndianness(), llvm::Module::getPointerSize(), and llvm::Module::Pointer64. |
|
Definition at line 121 of file TargetData.cpp. References I. |
|
Target alignment constraints.
Definition at line 79 of file TargetData.h. Referenced by getTypeInfo(). |
|
Definition at line 80 of file TargetData.h. Referenced by getTypeInfo(). |
|
Definition at line 85 of file TargetData.h. Referenced by getTypeInfo(), and SizeToAlignment(). |
|
Definition at line 84 of file TargetData.h. Referenced by getTypeInfo(). |
|
getIndexOffset - return the offset from the beginning of the type for the specified indices. This is used to implement getelementptr. Definition at line 230 of file TargetData.cpp. References llvm::gep_type_begin(), getStructLayout(), getTypeSize(), llvm::StructLayout::MemberOffsets, and llvm::Type::UIntTy. Referenced by llvm::AsmPrinter::emitConstantValueOnly(), and llvm::ExecutionEngine::getConstantValue(). |
|
Definition at line 82 of file TargetData.h. Referenced by getTypeInfo(). |
|
getIntPtrType - Return an unsigned integer type that is the same size or greater to the host pointer size. Definition at line 220 of file TargetData.cpp. References getPointerSize(), llvm::Type::UIntTy, llvm::Type::ULongTy, and llvm::Type::UShortTy. Referenced by isEliminableCastOfCast(). |
|
Definition at line 83 of file TargetData.h. Referenced by getTypeInfo(). |
|
Definition at line 86 of file TargetData.h. Referenced by getTypeInfo(). |
|
Definition at line 87 of file TargetData.h. Referenced by CreateArgv(), getIntPtrType(), getTypeInfo(), and llvm::SelectionDAG::SelectionDAG(). |
|
Definition at line 81 of file TargetData.h. Referenced by getTypeInfo(). |
|
Definition at line 136 of file TargetData.cpp. References I. Referenced by llvm::AsmPrinter::emitGlobalConstant(), llvm::Interpreter::executeGEPOperation(), getIndexedOffset(), getStructOffsetStep(), getTypeInfo(), llvm::ExecutionEngine::InitializeMemory(), and llvm::DSNode::mergeTypeInfo(). |
|
getTypeAlignment - Return the minimum required alignment for the specified type. Definition at line 205 of file TargetData.cpp. References getTypeInfo(). Referenced by llvm::SparcV9FunctionInfo::allocateSpilledValue(), llvm::MachineFrameInfo::CreateStackObject(), and getTypeAlignmentShift(). |
|
getTypeAlignmentShift - Return the minimum required alignment for the specified type, returned as log2 of the value (a shift amount). Definition at line 212 of file TargetData.cpp. References getTypeAlignment(), and llvm::log2(). |
|
|
Definition at line 76 of file TargetData.h. Referenced by llvm::AsmPrinter::emitGlobalConstant(). |
|
Target endianness...
Definition at line 75 of file TargetData.h. |