Home | History | Annotate | Download | only in Target

Lines Matching defs:TargetData

1 //===-- TargetData.cpp - Data size & alignment routines --------------------==//
19 #include "llvm/Target/TargetData.h"
34 // Handle the Pass registration stuff necessary to use TargetData's.
37 INITIALIZE_PASS(TargetData, "targetdata", "Target Data Layout", false, true)
38 char TargetData::ID = 0;
44 StructLayout::StructLayout(StructType *ST, const TargetData &TD) {
57 StructSize = TargetData::RoundUpAlignment(StructSize, TyAlign);
72 StructSize = TargetData::RoundUpAlignment(StructSize, StructAlignment);
121 TargetData::InvalidAlignmentElem = { (AlignTypeEnum)0xFF, 0, 0, 0 };
124 // TargetData Class Implementation
134 void TargetData::init() {
159 std::string TargetData::parseSpecifier(StringRef Desc, TargetData *td) {
301 TargetData::TargetData() : ImmutablePass(ID) {
302 report_fatal_error("Bad TargetData ctor used. "
303 "Tool did not specify a TargetData to use?");
306 TargetData::TargetData(const Module *M)
314 TargetData::setAlignment(AlignTypeEnum align_type, unsigned abi_align,
333 unsigned TargetData::getAlignmentInfo(AlignTypeEnum AlignType,
413 TargetData::~TargetData() {
417 const StructLayout *TargetData::getStructLayout(StructType *Ty) const {
440 std::string TargetData::getStringRepresentation() const {
465 uint64_t TargetData::getTypeSizeInBits(Type *Ty) const {
499 llvm_unreachable("TargetData::getTypeSizeInBits(): Unsupported type");
511 unsigned TargetData::getAlignment(Type *Ty, bool abi_or_pref) const {
561 unsigned TargetData::getABITypeAlignment(Type *Ty) const {
567 unsigned TargetData::getABIIntegerTypeAlignment(unsigned BitWidth) const {
572 unsigned TargetData::getCallFrameTypeAlignment(Type *Ty) const {
580 unsigned TargetData::getPrefTypeAlignment(Type *Ty) const {
584 unsigned TargetData::getPreferredTypeAlignmentShift(Type *Ty) const {
592 IntegerType *TargetData::getIntPtrType(LLVMContext &C) const {
597 uint64_t TargetData::getIndexedOffset(Type *ptrTy,
637 unsigned TargetData::getPreferredAlignment(const GlobalVariable *GV) const {
661 unsigned TargetData::getPreferredAlignmentLog(const GlobalVariable *GV) const {