Lines Matching defs:StructLayout
41 // Support for StructLayout
44 StructLayout::StructLayout(StructType *ST, const TargetData &TD) {
78 unsigned StructLayout::getElementContainingOffset(uint64_t Offset) const {
389 typedef DenseMap<StructType*, StructLayout*> LayoutInfoTy;
397 StructLayout *Value = I->second;
398 Value->~StructLayout();
403 StructLayout *&operator[](StructType *STy) {
417 const StructLayout *TargetData::getStructLayout(StructType *Ty) const {
422 StructLayout *&SL = (*STM)[Ty];
428 StructLayout *L =
429 (StructLayout *)malloc(sizeof(StructLayout)+(NumElts-1) * sizeof(uint64_t));
431 // Set SL before calling StructLayout's ctor. The ctor could cause other
435 new (L) StructLayout(Ty, *this);
531 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty));
614 const StructLayout *Layout = getStructLayout(STy);