Lines Matching refs:StructLayout
45 // Support for StructLayout
48 StructLayout::StructLayout(StructType *ST, const DataLayout &DL)
92 unsigned StructLayout::getElementContainingOffset(uint64_t FixedOffset) const {
124 using LayoutInfoTy = DenseMap<StructType *, StructLayout *>;
131 StructLayout *Value = I.second;
132 Value->~StructLayout();
137 StructLayout *&operator[](StructType *STy) { return LayoutInfo[STy]; }
709 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const {
714 StructLayout *&SL = (*STM)[Ty];
719 StructLayout *L = (StructLayout *)safe_malloc(
720 StructLayout::totalSizeToAlloc<TypeSize>(Ty->getNumElements()));
722 // Set SL before calling StructLayout's ctor. The ctor could cause other
726 new (L) StructLayout(Ty, *this);
789 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty));
907 const StructLayout *Layout = getStructLayout(STy);
956 const StructLayout *SL = getStructLayout(STy);