Home
last modified time | relevance | path

Searched refs:fromQuantity (Results 1 – 25 of 39) sorted by relevance

12

/external/clang/lib/CodeGen/
DCodeGenTypeCache.h70 return CharUnits::fromQuantity(IntSizeInBytes); in getIntSize()
73 return CharUnits::fromQuantity(IntAlignInBytes); in getIntAlign()
87 return CharUnits::fromQuantity(SizeSizeInBytes); in getSizeSize()
90 return CharUnits::fromQuantity(SizeAlignInBytes); in getSizeAlign()
93 return CharUnits::fromQuantity(PointerSizeInBytes); in getPointerSize()
96 return CharUnits::fromQuantity(PointerAlignInBytes); in getPointerAlign()
DTargetInfo.cpp734 CharUnits::fromQuantity(4), in EmitVAArg()
1376 return ABIArgInfo::getIndirect(CharUnits::fromQuantity(4), /*ByVal=*/true); in getIndirectResult()
1381 return ABIArgInfo::getIndirect(CharUnits::fromQuantity(StackAlign), in getIndirectResult()
1632 CharUnits FieldAlign = CharUnits::fromQuantity(4); in addFieldToArgStruct()
1681 CharUnits StackAlign = CharUnits::fromQuantity(4); in rewriteWithInAlloca()
1728 TypeInfo.second = CharUnits::fromQuantity( in EmitVAArg()
1732 TypeInfo, CharUnits::fromQuantity(4), in EmitVAArg()
2736 return ABIArgInfo::getIndirect(CharUnits::fromQuantity(Align)); in getIndirectResult()
3323 VAListAddr, 2, CharUnits::fromQuantity(8), "overflow_arg_area_p"); in EmitX86_64VAArgFromMemory()
3332 if (Align > CharUnits::fromQuantity(8)) { in EmitX86_64VAArgFromMemory()
[all …]
DCGValue.h73 return Address(V1.getPointer(), CharUnits::fromQuantity(align)); in getAggregateAddress()
316 CharUnits getAlignment() const { return CharUnits::fromQuantity(Alignment); } in getAlignment()
571 return CharUnits::fromQuantity(Alignment); in getAlignment()
DCGCleanup.cpp59 CharUnits offset = CharUnits::fromQuantity( in save()
85 return Address(value, CharUnits::fromQuantity(alignment)); in restore()
93 return RValue::getAggregate(Address(Value, CharUnits::fromQuantity(Align))); in restore()
96 return RValue::getAggregate(Address(addr, CharUnits::fromQuantity(Align))); in restore()
102 CharUnits offset = CharUnits::fromQuantity( in restore()
1219 return Address(NormalCleanupDest, CharUnits::fromQuantity(4)); in getNormalCleanupDestSlot()
DSwiftCallingConv.cpp57 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeStoreSize(type)); in getTypeStoreSize()
405 return CharUnits::fromQuantity(offset.getQuantity() & unitMask); in getOffsetAtStartOfUnit()
540 CharUnits::fromQuantity( in getCoerceAndExpandTypes()
609 return CharUnits::fromQuantity(size); in getNaturalAlignment()
DCGRecordLayoutBuilder.cpp150 return CharUnits::fromQuantity(DataLayout.getTypeAllocSize(Type)); in getSize()
153 return CharUnits::fromQuantity(DataLayout.getABITypeAlignment(Type)); in getAlignment()
509 Members.push_back(StorageInfo(Offset - CharUnits::fromQuantity(4), in accumulateVBases()
656 CharUnits::fromQuantity(Types.getDataLayout().getTypeAllocSize(Ty)); in MakeInfo()
DCGBlocks.h176 return CharUnits::fromQuantity(Offset); in getOffset()
DCGExprConstant.cpp84 return CharUnits::fromQuantity( in getAlignment()
89 return CharUnits::fromQuantity( in getSizeInChars()
246 NextFieldOffsetInChars -= CharUnits::fromQuantity(AT->getNumElements()); in AppendBitField()
250 AppendPadding(CharUnits::fromQuantity(AT->getNumElements()-1)); in AppendBitField()
334 CharUnits ElementAlign = CharUnits::fromQuantity( in ConvertStructToPacked()
DItaniumCXXABI.cpp1146 return CharUnits::fromQuantity(-2ULL); in computeOffsetHint()
1162 return CharUnits::fromQuantity(-1ULL); in computeOffsetHint()
1176 return CharUnits::fromQuantity(-2ULL); in computeOffsetHint()
1180 return CharUnits::fromQuantity(-3ULL); in computeOffsetHint()
1662 CharUnits::fromQuantity(NonVirtualAdjustment)); in performTypeAdjustment()
1732 return std::max(CharUnits::fromQuantity(CGM.SizeSizeInBytes), in getArrayCookieSizeImpl()
1816 return std::max(CharUnits::fromQuantity(2 * CGM.SizeSizeInBytes), in getArrayCookieSizeImpl()
1944 guardAlignment = CharUnits::fromQuantity( in EmitGuardedInit()
DCGCall.cpp1040 CharUnits Align = std::max(MinAlign, CharUnits::fromQuantity(PrefAlign)); in CreateTempAllocaForCoercion()
1200 auto EltOffset = CharUnits::fromQuantity(Layout->getElementOffset(i)); in BuildAggStore()
1274 CharUnits::fromQuantity(offset)); in emitAddressAtOffset()
2155 CharUnits::fromQuantity(ArgStructLayout->getElementOffset(FieldIndex)); in EmitFunctionProlog()
2350 auto Offset = CharUnits::fromQuantity(SrcLayout->getElementOffset(i)); in EmitFunctionProlog()
2872 CharUnits Align = CharUnits::fromQuantity(4); in createPlaceholderSlot()
3548 CharUnits::fromQuantity(ArgMemoryLayout->getElementOffset(FieldIndex)); in EmitCall()
3761 auto Offset = CharUnits::fromQuantity(SrcLayout->getElementOffset(i)); in EmitCall()
3795 CharUnits::fromQuantity(std::max(layout->getAlignment(), in EmitCall()
DCGBuilder.h192 auto Offset = CharUnits::fromQuantity(Layout->getElementOffset(Index));
DCGObjCRuntime.cpp136 CharUnits::fromQuantity(0))); in EmitValueForIvarAtOffset()
DCGOpenMPRuntimeNVPTX.cpp388 CGF.CreateTempAlloca(CGF.Int32Ty, CharUnits::fromQuantity(4), in emitTeamsCall()
DCGBlocks.cpp295 return CharUnits::fromQuantity(v.getQuantity() & (~v.getQuantity() + 1)); in getLowBit()
2081 size += CharUnits::fromQuantity(4); in getBlockByrefInfo()
2085 size += CharUnits::fromQuantity(4); in getBlockByrefInfo()
2105 size += CharUnits::fromQuantity(PointerSizeInBytes); in getBlockByrefInfo()
DMicrosoftCXXABI.cpp1173 CharUnits::fromQuantity(4)); in initializeHiddenVirtualInheritanceMembers()
2059 CharUnits::fromQuantity(TA.Virtual.Microsoft.VtordispOffset)); in performThisAdjustment()
2353 CharUnits GuardAlign = CharUnits::fromQuantity(4); in EmitGuardedInit()
2858 CharUnits::fromQuantity(CI->getSExtValue())); in GetVBaseOffsetFromVBPtr()
2873 return Builder.CreateAlignedLoad(VBaseOffs, CharUnits::fromQuantity(4), in GetVBaseOffsetFromVBPtr()
3137 CharUnits::fromQuantity(4)); in EmitNonNullMemberPointerConversion()
DCGObjCMac.cpp2292 CharUnits Size = CharUnits::fromQuantity(UnsSize); in BuildRCRecordLayout()
2620 CharUnits::fromQuantity(layout->getElementOffset(capture.getIndex())); in BuildRCBlockLayout()
2630 fieldSize = CharUnits::fromQuantity(WordSizeInBytes); in BuildRCBlockLayout()
5025 CharUnits::fromQuantity(ComputeIvarBaseOffset(CGM, OMD, ivars[0])); in BuildIvarLayout()
5045 return CharUnits::fromQuantity(ComputeIvarBaseOffset(CGM, OMD, ivar)); in BuildIvarLayout()
5836 CharUnits beginInstance = CharUnits::fromQuantity(InstanceStart); in BuildClassRoTInitializer()
5837 CharUnits endInstance = CharUnits::fromQuantity(InstanceSize); in BuildClassRoTInitializer()
/external/clang/include/clang/AST/
DCharUnits.h63 static CharUnits fromQuantity(QuantityType Quantity) { in fromQuantity() function
220 return clang::CharUnits::fromQuantity(Quantity);
227 return clang::CharUnits::fromQuantity(Quantity);
DBaseSubobject.h58 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getEmptyKey()));
64 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getTombstoneKey()));
DVTableBuilder.h198 return CharUnits::fromQuantity(Value >> 3); in getOffset()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp1239 MaxFieldAlignment = CharUnits::fromQuantity(DefaultMaxFieldAlignment); in InitializeLayout()
1248 MaxFieldAlignment = CharUnits::fromQuantity(2); in InitializeLayout()
1249 Alignment = CharUnits::fromQuantity(2); in InitializeLayout()
1809 CharUnits ASanAlignment = CharUnits::fromQuantity(8); in LayoutField()
1813 ASanAlignment - CharUnits::fromQuantity(FieldSize % ASanAlignment); in LayoutField()
2391 MinEmptyStructSize = CharUnits::fromQuantity(4); in layout()
2435 MaxFieldAlignment = CharUnits::fromQuantity(DefaultMaxFieldAlignment); in initializeLayout()
2540 VBPtrOffset = CharUnits::fromQuantity(-1); in layoutNonVirtualBases()
2747 CharUnits VtorDispSize = CharUnits::fromQuantity(4); in layoutVirtualBases()
2984 CharUnits::fromQuantity(-1), DataSize, Builder.FieldOffsets, in getASTRecordLayout()
[all …]
DVTableBuilder.cpp3452 CharUnits Offset = CharUnits::fromQuantity(-1); in getOffsetOfFullPath()
3647 CharUnits LastVFPtrOffset = CharUnits::fromQuantity(-1); in dumpMethodLocations()
/external/clang/lib/StaticAnalyzer/Checkers/
DCastSizeChecker.cpp118 CharUnits regionSize = CharUnits::fromQuantity(extentInt->getSExtValue()); in checkPreStmt()
DPaddingChecker.cpp244 CharUnits CurAlignment = CharUnits::fromQuantity(CurAlignmentBits); in calculateOptimalPad()
/external/clang/include/clang/CodeGen/
DCGFunctionInfo.h311 return CharUnits::fromQuantity(IndirectAlign); in getIndirectAlign()
613 return CharUnits::fromQuantity(ArgStructAlign); in getArgStructAlignment()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineC.cpp780 CharUnits amt = CharUnits::fromQuantity(Value.getZExtValue()); in VisitUnaryExprOrTypeTraitExpr()

12