Home
last modified time | relevance | path

Searched refs:StorageSize (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGRecordLayout.h79 unsigned StorageSize; member
97 : Offset(), Size(), IsSigned(), StorageSize(), VolatileOffset(), in CGBitFieldInfo()
101 unsigned StorageSize, CharUnits StorageOffset) in CGBitFieldInfo()
103 StorageSize(StorageSize), StorageOffset(StorageOffset) {} in CGBitFieldInfo()
114 uint64_t StorageSize,
H A DCGRecordLayoutBuilder.cpp246 Info.StorageSize = (unsigned)DataLayout.getTypeAllocSizeInBits(StorageType); in setBitFieldInfo()
248 if (Info.Size > Info.StorageSize) in setBitFieldInfo()
249 Info.Size = Info.StorageSize; in setBitFieldInfo()
255 Info.Offset = Info.StorageSize - (Info.Offset + Info.Size); in setBitFieldInfo()
774 isBE() ? Info.StorageSize - (Info.Offset + Info.Size) : Info.Offset; in computeVolatileBitfields()
780 const unsigned StorageSize = ResLTy->getPrimitiveSizeInBits(); in computeVolatileBitfields() local
783 if (Info.StorageSize == StorageSize && (OldOffset % StorageSize == 0)) in computeVolatileBitfields()
787 unsigned Offset = AbsoluteOffset & (StorageSize - 1); in computeVolatileBitfields()
792 if (Offset + Info.Size > StorageSize) in computeVolatileBitfields()
797 Offset = StorageSize - (Offset + Info.Size); in computeVolatileBitfields()
[all …]
H A DCGObjCRuntime.cpp91 CharUnits StorageSize = CGF.CGM.getContext().toCharUnitsFromBits( in EmitValueForIvarAtOffset() local
103 CGF.CGM.getContext().toBits(StorageSize), in EmitValueForIvarAtOffset()
107 Address(V, llvm::Type::getIntNTy(CGF.getLLVMContext(), Info->StorageSize), in EmitValueForIvarAtOffset()
H A DCodeGenTBAA.cpp465 bool IsFirst = IsBE ? Info.StorageSize - (Info.Offset + Info.Size) == 0 in CollectFields()
469 unsigned CurrentBitFieldSize = Info.StorageSize; in CollectFields()
H A DCGExpr.cpp2348 const unsigned StorageSize = in EmitLoadOfBitfieldLValue() local
2349 UseVolatile ? Info.VolatileStorageSize : Info.StorageSize; in EmitLoadOfBitfieldLValue()
2351 assert(static_cast<unsigned>(Offset + Info.Size) <= StorageSize); in EmitLoadOfBitfieldLValue()
2352 unsigned HighBits = StorageSize - Offset - Info.Size; in EmitLoadOfBitfieldLValue()
2360 if (static_cast<unsigned>(Offset) + Info.Size < StorageSize) in EmitLoadOfBitfieldLValue()
2362 Val, llvm::APInt::getLowBitsSet(StorageSize, Info.Size), "bf.clear"); in EmitLoadOfBitfieldLValue()
2624 const unsigned StorageSize = in EmitStoreThroughBitfieldLValue() local
2625 UseVolatile ? Info.VolatileStorageSize : Info.StorageSize; in EmitStoreThroughBitfieldLValue()
2629 if (StorageSize != Info.Size) { in EmitStoreThroughBitfieldLValue()
2630 assert(StorageSize > Info.Size && "Invalid bitfield size."); in EmitStoreThroughBitfieldLValue()
[all …]
H A DCGExprAgg.cpp1969 if (StorageStart + Info.StorageSize > PaddingStart) { in DoZeroInitPadding()
1977 llvm::Type::getIntNTy(CGF.getLLVMContext(), Info.StorageSize)); in DoZeroInitPadding()
1978 Builder.CreateStore(Builder.getIntN(Info.StorageSize, 0), Addr); in DoZeroInitPadding()
1979 PaddingStart = StorageStart + Info.StorageSize; in DoZeroInitPadding()
H A DCGCall.cpp3785 int StorageSize, int BitOffset, int BitWidth, in setBitRange() argument
3788 SmallVector<uint64_t, 8> TmpBits(StorageSize); in setBitRange()
3825 BFI.StorageSize / CharWidth, BFI.Offset, BFI.Size, CharWidth, in setUsedBits()
H A DCGAtomic.cpp92 BFI.StorageSize = AtomicSizeInBits; in AtomicInfo()
H A DCGDebugInfo.cpp1793 Offset = BitFieldInfo.StorageSize - BitFieldInfo.Size - Offset; in createBitFieldType()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterp.cpp1821 unsigned StorageSize = 1; in CheckNewTypeMismatch() local
1826 StorageSize = CAT->getZExtSize(); in CheckNewTypeMismatch()
1828 if (AllocSize > StorageSize || in CheckNewTypeMismatch()