Lines Matching refs: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);
120 const TargetAlignElem TargetData::InvalidAlignmentElem =
124 // TargetData Class Implementation
134 void TargetData::init(StringRef Desc) {
238 TargetData::TargetData() : ImmutablePass(ID) {
239 report_fatal_error("Bad TargetData ctor used. "
240 "Tool did not specify a TargetData to use?");
243 TargetData::TargetData(const Module *M)
249 TargetData::setAlignment(AlignTypeEnum align_type, unsigned abi_align,
268 unsigned TargetData::getAlignmentInfo(AlignTypeEnum AlignType,
348 TargetData::~TargetData() {
352 const StructLayout *TargetData::getStructLayout(StructType *Ty) const {
375 std::string TargetData::getStringRepresentation() const {
400 uint64_t TargetData::getTypeSizeInBits(Type *Ty) const {
432 llvm_unreachable("TargetData::getTypeSizeInBits(): Unsupported type");
446 unsigned TargetData::getAlignment(Type *Ty, bool abi_or_pref) const {
496 unsigned TargetData::getABITypeAlignment(Type *Ty) const {
502 unsigned TargetData::getABIIntegerTypeAlignment(unsigned BitWidth) const {
507 unsigned TargetData::getCallFrameTypeAlignment(Type *Ty) const {
515 unsigned TargetData::getPrefTypeAlignment(Type *Ty) const {
519 unsigned TargetData::getPreferredTypeAlignmentShift(Type *Ty) const {
527 IntegerType *TargetData::getIntPtrType(LLVMContext &C) const {
532 uint64_t TargetData::getIndexedOffset(Type *ptrTy,
572 unsigned TargetData::getPreferredAlignment(const GlobalVariable *GV) const {
596 unsigned TargetData::getPreferredAlignmentLog(const GlobalVariable *GV) const {