/external/clang/lib/CodeGen/ |
D | CGBuilder.h | 62 return llvm::ConstantInt::get(TypeCache.SizeTy, N.getQuantity()); in getSize() 72 Addr.getAlignment().getQuantity(), 79 Addr.getAlignment().getQuantity(), in CreateLoad() 85 Addr.getAlignment().getQuantity(), 93 return CreateAlignedLoad(Addr, Align.getQuantity(), Name); 97 return CreateAlignedLoad(Addr, Align.getQuantity(), Name); in CreateAlignedLoad() 103 return CreateAlignedLoad(Addr, Align.getQuantity(), Name); 108 return CreateAlignedLoad(Addr, Align.getQuantity(), IsVolatile, Name); 116 Addr.getAlignment().getQuantity(), IsVolatile); 122 return CreateAlignedStore(Val, Addr, Align.getQuantity(), IsVolatile); [all …]
|
D | CGValue.h | 111 auto align = static_cast<uintptr_t>(addr.getAlignment().getQuantity()); 227 this->Alignment = Alignment.getQuantity(); 228 assert(this->Alignment == Alignment.getQuantity() && 317 void setAlignment(CharUnits A) { Alignment = A.getQuantity(); } in setAlignment() 335 Alignment = address.getAlignment().getQuantity(); in setAddress() 511 AV.Alignment = addr.getAlignment().getQuantity();
|
D | SwiftCallingConv.cpp | 403 assert(isPowerOf2(unitSize.getQuantity())); in getOffsetAtStartOfUnit() 404 auto unitMask = ~(unitSize.getQuantity() - 1); in getOffsetAtStartOfUnit() 405 return CharUnits::fromQuantity(offset.getQuantity() & unitMask); in getOffsetAtStartOfUnit() 534 paddingSize.getQuantity()); in getCoerceAndExpandTypes() 604 auto size = (unsigned long long) getTypeStoreSize(CGM, type).getQuantity(); in getNaturalAlignment()
|
D | MicrosoftCXXABI.cpp | 1049 Context.getASTRecordLayout(ClassDecl).getVBPtrOffset().getQuantity(); in GetVirtualBaseClassOffset() 1056 llvm::ConstantInt::get(CGM.IntTy, VBTableChars.getQuantity()); in GetVirtualBaseClassOffset() 1155 Layout.getVBaseClassOffset(I->first).getQuantity(); in initializeHiddenVirtualInheritanceMembers() 1415 -Adjustment.getQuantity()); in adjustThisParameterInVirtualFunctionPrologue() 2011 Offsets[0] = llvm::ConstantInt::get(CGM.IntTy, -VBPtrOffset.getQuantity()); in emitVBTableDefinition() 2028 Offsets[VBIndex] = llvm::ConstantInt::get(CGM.IntTy, Offset.getQuantity()); in emitVBTableDefinition() 2107 int32_t IntSize = CGF.getIntSize().getQuantity(); in performReturnAdjustment() 2263 GV->setAlignment(Align.getQuantity()); in getInitThreadEpochPtr() 2403 GuardVar->setAlignment(GuardAlign.getQuantity()); in EmitGuardedInit() 2586 CGM.IntTy, NonVirtualBaseAdjustment.getQuantity())); in EmitFullMemberPointer() [all …]
|
D | CodeGenModule.cpp | 104 C.toCharUnitsFromBits(C.getTargetInfo().getPointerAlign(0)).getQuantity(); in CodeGenModule() 106 C.toCharUnitsFromBits(C.getTargetInfo().getIntAlign()).getQuantity(); in CodeGenModule() 459 Context.getTypeSizeInChars(Context.getWideCharType()).getQuantity(); in Release() 588 return llvm::ConstantInt::get(SizeTy, size.getQuantity()); in getSize() 2148 GV->setAlignment(getContext().getDeclAlign(D).getQuantity()); in GetOrCreateLLVMGlobal() 2544 GV->setAlignment(getContext().getDeclAlign(D).getQuantity()); in EmitGlobalVarDefinition() 3183 GV->setAlignment(Align.getQuantity()); in GetAddrOfConstantCFString() 3211 GV->setAlignment(Alignment.getQuantity()); in GetAddrOfConstantCFString() 3319 GV->setAlignment(Align.getQuantity()); in GetAddrOfConstantString() 3333 GV->setAlignment(Alignment.getQuantity()); in GetAddrOfConstantString() [all …]
|
D | CGExprAgg.cpp | 298 llvm::Value *size = llvm::ConstantInt::get(CGF.SizeTy, sz.getQuantity()); in EmitCopy() 1420 llvm::Constant *SizeVal = CGF.Builder.getInt64(Size.getQuantity()); in CheckAggExprForMemSetUse() 1516 llvm::ConstantInt::get(SizeTy, TypeInfo.first.getQuantity())); in EmitAggregateCopy() 1520 llvm::ConstantInt::get(SizeTy, TypeInfo.first.getQuantity())); in EmitAggregateCopy() 1523 SizeTy, LastElementTypeInfo.first.getQuantity())); in EmitAggregateCopy() 1528 SizeVal = llvm::ConstantInt::get(SizeTy, TypeInfo.first.getQuantity()); in EmitAggregateCopy()
|
D | CGBlocks.cpp | 99 blockInfo.BlockSize.getQuantity())); in buildBlockDescriptor() 295 return CharUnits::fromQuantity(v.getQuantity() & (~v.getQuantity() + 1)); in getLowBit() 526 padding.getQuantity())); in computeBlockInfo() 544 padding.getQuantity())); in computeBlockInfo() 1093 literal->setAlignment(blockInfo.BlockAlign.getQuantity()); in buildGlobalBlock() 2118 llvm::ArrayType::get(Int8Ty, (varOffset - size).getQuantity()); in getBlockByrefInfo() 2125 > varAlign.getQuantity()) { in getBlockByrefInfo() 2236 V = llvm::ConstantInt::get(IntTy, byrefSize.getQuantity()); in emitByrefStructureInit()
|
D | CGClass.cpp | 188 return llvm::ConstantInt::get(PtrDiffTy, Offset.getQuantity()); in GetNonVirtualBaseClassOffset() 237 nonVirtualOffset.getQuantity()); in ApplyNonVirtualAndVirtualOffset() 873 Context.toCharUnitsFromBits(Info.getFieldOffset(i)).getQuantity(); in EmitAsanPrologueOrEpilogue() 882 SSV[NumFields].Size = D->isBitField() ? 0 : FieldSize.getQuantity(); in EmitAsanPrologueOrEpilogue() 899 uint64_t TypeSize = Info.getNonVirtualSize().getQuantity(); in EmitAsanPrologueOrEpilogue() 1086 CGF.Builder.CreateMemCpy(DestPtr, SrcPtr, Size.getQuantity()); in emitMemcpyIR() 1755 .getQuantity()); in PoisonMembers() 1763 PoisonSize = Layout.getNonVirtualSize().getQuantity() - in PoisonMembers() 1766 .getQuantity(); in PoisonMembers() 1771 .getQuantity(); in PoisonMembers() [all …]
|
D | CGExprCXX.cpp | 409 NullVariable->setAlignment(Align.getQuantity()); in EmitNullBaseClassInitialization() 557 = llvm::ConstantInt::get(CGF.SizeTy, typeSize.getQuantity()); in EmitCXXNewAllocSize() 566 CalculateCookiePadding(CGF, e).getQuantity()); in EmitCXXNewAllocSize() 595 llvm::APInt typeSizeMultiplier(sizeWidth, typeSize.getQuantity()); in EmitCXXNewAllocSize() 938 getContext().getTypeSizeInChars(ElementType).getQuantity() * in EmitNewArrayInitializer() 1504 DeleteTypeSize.getQuantity()); in EmitDeleteCall() 1639 = llvm::ConstantInt::get(SizeTy, ElementTypeSize.getQuantity()); in Emit() 1646 = llvm::ConstantInt::get(SizeTy, CookieSize.getQuantity()); in Emit()
|
D | TargetInfo.cpp | 134 return (vectorSize.getQuantity() > 8 && vectorSize.getQuantity() <= 16); in isLegalVectorTypeForSwift() 225 OS << "Indirect Align=" << getIndirectAlign().getQuantity() in dump() 248 llvm::ConstantInt::get(CGF.IntPtrTy, Align.getQuantity() - 1)); in emitRoundPointerUpToAlignment() 250 llvm::ConstantInt::get(CGF.IntPtrTy, -Align.getQuantity())); in emitRoundPointerUpToAlignment() 1645 Ty = llvm::ArrayType::get(Ty, NumBytes.getQuantity()); in addFieldToArgStruct() 1729 getTypeStackAlignInBytes(Ty, TypeInfo.second.getQuantity())); in EmitVAArg() 2964 (unsigned)getContext().getTypeSizeInChars(SourceTy).getQuantity(); in GetINTEGERTypeAtOffset() 3479 uint64_t TySize = SizeAlign.first.getQuantity(); in EmitVAArg() 3484 if (TyAlign.getQuantity() > 8) { in EmitVAArg() 3766 Builder.CreateMul(NumRegs, Builder.getInt8(RegSize.getQuantity())); in EmitVAArg() [all …]
|
D | CGVTables.cpp | 546 Component.getVCallOffset().getQuantity()); in CreateVTableInitializer() 551 Component.getVBaseOffset().getQuantity()); in CreateVTableInitializer() 556 Component.getOffsetToTop().getQuantity()); in CreateVTableInitializer() 679 .mangleCXXCtorVTable(RD, Base.getBaseOffset().getQuantity(), in GenerateConstructionVTable()
|
D | ItaniumCXXABI.cpp | 776 return llvm::ConstantInt::get(CGM.PtrDiffTy, offset.getQuantity()); in EmitMemberDataPointer() 799 uint64_t VTableOffset = (Index * PointerWidth.getQuantity()); in BuildMemberPointer() 810 2 * ThisAdjustment.getQuantity() + 1); in BuildMemberPointer() 818 ThisAdjustment.getQuantity()); in BuildMemberPointer() 837 ThisAdjustment.getQuantity()); in BuildMemberPointer() 1076 uint64_t TypeSize = getContext().getTypeSizeInChars(ThrowType).getQuantity(); in emitThrow() 1241 computeOffsetHint(CGF.getContext(), SrcDecl, DestDecl).getQuantity()); in EmitDynamicCastCall() 1314 CGF.Builder.CreateConstGEP1_64(VTablePtr, VBaseOffsetOffset.getQuantity(), in GetVirtualBaseClassOffset() 1479 VTable->setAlignment(getContext().toCharUnitsFromBits(PAlign).getQuantity()); in emitVTableDefinitions() 1833 getContext().getTypeSizeInChars(elementType).getQuantity()); in InitializeArrayCookie() [all …]
|
D | CGCleanup.cpp | 70 V.getAlignment().getQuantity()); in save() 76 V.getAlignment().getQuantity()); in save() 311 store->setAlignment(addr.getAlignment().getQuantity()); in createStoreInstBefore() 317 load->setAlignment(addr.getAlignment().getQuantity()); in createLoadInstBefore()
|
D | CGBlocks.h | 195 v.Offset = offset.getQuantity(); in makeIndex()
|
D | CGDecl.cpp | 222 GV->setAlignment(getContext().getDeclAlign(&D).getQuantity()); in getOrCreateStaticVarDecl() 386 var->setAlignment(alignment.getQuantity()); in EmitStaticVarDecl() 1089 vla->setAlignment(alignment.getQuantity()); in EmitAutoVarAlloca() 1238 getContext().getTypeSizeInChars(type).getQuantity()); in EmitAutoVarInit() 1264 GV->setAlignment(Loc.getAlignment().getQuantity()); in EmitAutoVarInit()
|
D | CodeGenTBAA.cpp | 208 uint64_t Size = Context.getTypeSizeInChars(QTy).getQuantity(); in CollectFields()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | PaddingChecker.cpp | 80 assert(llvm::isPowerOf2_64(RL.getAlignment().getQuantity())); in visitRecord() 88 if (DiffPad.getQuantity() <= AllowedPad) { in visitRecord() 221 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad() 239 llvm::countTrailingZeros((unsigned long long)NewOffset.getQuantity()); in calculateOptimalPad() 296 Os << " (" << BaselinePad.getQuantity() << " padding bytes, where " in reportRecord() 297 << TargetPad.getQuantity() << " is optimal). Consider reordering " in reportRecord()
|
D | VLASizeChecker.cpp | 160 SVal EleSizeVal = svalBuilder.makeIntVal(EleSize.getQuantity(), SizeTy); in checkPreStmt()
|
D | ArrayBoundCheckerV2.cpp | 236 sb.makeArrayIndex(scaling.getQuantity()), in scaleValue()
|
/external/clang/lib/AST/ |
D | VTableBuilder.cpp | 408 Out << Base.getBaseOffset().getQuantity() << ")\n"; in dump() 422 Out << ", " << Overrider.Offset.getQuantity() << ')'; in dump() 435 Out << Offset.NonVirtualOffset.getQuantity() << " nv]"; in dump() 1197 VBaseOffsetOffsets.lookup(Offset.VirtualBase).getQuantity(); in ComputeReturnAdjustment() 1201 Offset.VirtualBase).getQuantity(); in ComputeReturnAdjustment() 1205 Adjustment.NonVirtual = Offset.NonVirtualOffset.getQuantity(); in ComputeReturnAdjustment() 1297 VCallOffsets.getVCallOffsetOffset(MD).getQuantity(); in ComputeThisAdjustment() 1301 Adjustment.NonVirtual = Offset.NonVirtualOffset.getQuantity(); in ComputeThisAdjustment() 1889 Out << MostDerivedClassOffset.getQuantity() << ") in '"; in dumpLayout() 1921 << Component.getVCallOffset().getQuantity() in dumpLayout() [all …]
|
D | RecordLayoutBuilder.cpp | 1902 assert(llvm::isPowerOf2_64(NewAlignment.getQuantity()) && in UpdateAlignment() 1908 assert(llvm::isPowerOf2_64(UnpackedNewAlignment.getQuantity()) && in UpdateAlignment() 3125 OS << llvm::format("%10" PRId64 " | ", (int64_t)Offset.getQuantity()); in PrintOffset() 3135 BufferOS << Offset.getQuantity() << ':'; in PrintBitFieldOffset() 3275 OS << "[sizeof=" << Layout.getSize().getQuantity(); in DumpRecordLayout() 3277 OS << ", dsize=" << Layout.getDataSize().getQuantity(); in DumpRecordLayout() 3278 OS << ", align=" << Layout.getAlignment().getQuantity(); in DumpRecordLayout() 3283 OS << " nvsize=" << Layout.getNonVirtualSize().getQuantity(); in DumpRecordLayout() 3284 OS << ", nvalign=" << Layout.getNonVirtualAlignment().getQuantity(); in DumpRecordLayout()
|
/external/clang/include/clang/AST/ |
D | CharUnits.h | 179 QuantityType getQuantity() const { return Quantity; } in getQuantity() function 231 clang::CharUnits::QuantityType Quantity = CU.getQuantity();
|
D | VTableBuilder.h | 179 assert(Offset.getQuantity() < (1LL << 56) && "Offset is too big!"); in VTableComponent() 180 assert(Offset.getQuantity() >= -(1LL << 56) && "Offset is too small!"); in VTableComponent() 182 Value = (uint64_t(Offset.getQuantity()) << 3) | ComponentKind; in VTableComponent()
|
/external/clang/lib/Sema/ |
D | SemaStmtAsm.cpp | 553 Info.Type = Info.Size = Context.getTypeSizeInChars(T).getQuantity(); in fillInlineAsmTypeInfo() 556 Info.Type = Context.getTypeSizeInChars(ATy->getElementType()).getQuantity(); in fillInlineAsmTypeInfo() 666 Offset += (unsigned)Result.getQuantity(); in LookupInlineAsmField()
|
/external/clang/include/clang/CodeGen/ |
D | CGFunctionInfo.h | 315 IndirectAlign = IA.getQuantity(); in setIndirectAlign() 617 ArgStructAlign = Align.getQuantity(); in setArgStruct()
|