Lines Matching refs:CharUnits

56 static CharUnits getTypeStoreSize(CodeGenModule &CGM, llvm::Type *type) {  in getTypeStoreSize()
57 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeStoreSize(type)); in getTypeStoreSize()
60 void SwiftAggLowering::addTypedData(QualType type, CharUnits begin) { in addTypedData()
102 void SwiftAggLowering::addTypedData(const RecordDecl *record, CharUnits begin) { in addTypedData()
106 void SwiftAggLowering::addTypedData(const RecordDecl *record, CharUnits begin, in addTypedData()
168 CharUnits recordBegin, in addBitFieldData()
178 CharUnits bitfieldByteBegin = ctx.toCharUnitsFromBits(bitfieldBitBegin); in addBitFieldData()
184 CharUnits bitfieldByteEnd = in addBitFieldData()
185 ctx.toCharUnitsFromBits(bitfieldBitLast) + CharUnits::One(); in addBitFieldData()
190 void SwiftAggLowering::addTypedData(llvm::Type *type, CharUnits begin) { in addTypedData()
196 CharUnits begin, CharUnits end) { in addTypedData()
229 CharUnits begin, CharUnits end) { in addLegalTypedData()
256 CharUnits begin, CharUnits end) { in addEntry()
320 CharUnits eltSize = (end - begin) / vecTy->getNumElements(); in addEntry()
385 CharUnits eltSize = getTypeStoreSize(CGM, eltTy); in splitVectorEntry()
389 CharUnits begin = Entries[index].Begin; in splitVectorEntry()
402 static CharUnits getOffsetAtStartOfUnit(CharUnits offset, CharUnits unitSize) { in getOffsetAtStartOfUnit()
405 return CharUnits::fromQuantity(offset.getQuantity() & unitMask); in getOffsetAtStartOfUnit()
408 static bool areBytesInSameUnit(CharUnits first, CharUnits second, in areBytesInSameUnit()
409 CharUnits chunkSize) { in areBytesInSameUnit()
422 const CharUnits chunkSize = getMaximumVoluntaryIntegerSize(CGM); in finish()
428 if (areBytesInSameUnit(Entries[i - 1].End - CharUnits::One(), in finish()
475 CharUnits localBegin = begin; in finish()
476 CharUnits chunkBegin = getOffsetAtStartOfUnit(localBegin, chunkSize); in finish()
477 CharUnits chunkEnd = chunkBegin + chunkSize; in finish()
478 CharUnits localEnd = std::min(end, chunkEnd); in finish()
481 CharUnits unitSize = CharUnits::One(); in finish()
482 CharUnits unitBegin, unitEnd; in finish()
525 CharUnits lastEnd = CharUnits::Zero(); in getCoerceAndExpandTypes()
540 CharUnits::fromQuantity( in getCoerceAndExpandTypes()
576 CharUnits totalSize = Entries.back().End; in shouldPassIndirectly()
595 CharUnits swiftcall::getMaximumVoluntaryIntegerSize(CodeGenModule &CGM) { in getMaximumVoluntaryIntegerSize()
601 CharUnits swiftcall::getNaturalAlignment(CodeGenModule &CGM, llvm::Type *type) { in getNaturalAlignment()
609 return CharUnits::fromQuantity(size); in getNaturalAlignment()
632 bool swiftcall::isLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, in isLegalVectorType()
638 bool swiftcall::isLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, in isLegalVectorType()
646 swiftcall::splitLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, in splitLegalVectorType()
660 void swiftcall::legalizeVectorType(CodeGenModule &CGM, CharUnits origVectorSize, in legalizeVectorType()
686 CharUnits eltSize = (origVectorSize / numElts); in legalizeVectorType()
687 CharUnits candidateSize = eltSize * candidateNumElts; in legalizeVectorType()
755 CharUnits alignmentForIndirect) { in classifyExpandedType()
778 lowering.addTypedData(recordType->getDecl(), CharUnits::Zero(), layout); in classifyType()
793 lowering.addTypedData(type, CharUnits::Zero()); in classifyType()
796 CharUnits alignment = CGM.getContext().getTypeAlignInChars(type); in classifyType()