Searched refs:VlaSize (Results 1 – 4 of 4) sorted by relevance
1353 auto VlaSize = getVLAElements1D(Type1D); in EmitAndRegisterVariableArrayDimensions() local1354 if (auto *C = dyn_cast<llvm::ConstantInt>(VlaSize.NumElts)) in EmitAndRegisterVariableArrayDimensions()1364 CreateDefaultAlignTempAlloca(VlaSize.NumElts->getType(), NameRef); in EmitAndRegisterVariableArrayDimensions()1365 Builder.CreateStore(VlaSize.NumElts, SizeExprAddr); in EmitAndRegisterVariableArrayDimensions()1369 Type1D = VlaSize.Type; in EmitAndRegisterVariableArrayDimensions()1379 for (auto &VlaSize : Dimensions) { in EmitAndRegisterVariableArrayDimensions() local1381 if (auto *C = dyn_cast<llvm::ConstantInt>(VlaSize.NumElts)) in EmitAndRegisterVariableArrayDimensions()1386 auto VlaExprTy = VlaSize.NumElts->getType()->getPointerElementType(); in EmitAndRegisterVariableArrayDimensions()1395 MD = DI->EmitDeclareOfAutoVariable(ArtificialDecl, VlaSize.NumElts, in EmitAndRegisterVariableArrayDimensions()1399 DI->registerVLASizeExpression(VlaSize.Type, MD); in EmitAndRegisterVariableArrayDimensions()[all …]
1803 auto VlaSize = getVLASize(vlaType); in EmitNullInitialization() local1804 SizeVal = VlaSize.NumElts; in EmitNullInitialization()1805 CharUnits eltSize = getContext().getTypeSizeInChars(VlaSize.Type); in EmitNullInitialization()2008 llvm::Value *VlaSize = VLASizeMap[Vla->getSizeExpr()]; in getVLAElements1D() local2009 assert(VlaSize && "no size for VLA!"); in getVLAElements1D()2010 assert(VlaSize->getType() == SizeTy); in getVLAElements1D()2011 return { VlaSize, Vla->getElementType() }; in getVLAElements1D()
2835 auto VlaSize = CGF.getVLASize(VAT); in VisitUnaryExprOrTypeTraitExpr() local2836 llvm::Value *size = VlaSize.NumElts; in VisitUnaryExprOrTypeTraitExpr()2839 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(VlaSize.Type); in VisitUnaryExprOrTypeTraitExpr()3687 auto VlaSize = CGF.getVLASize(vla); in EmitSub() local3688 elementType = VlaSize.Type; in EmitSub()3689 divisor = VlaSize.NumElts; in EmitSub()
294 VlaSizePair VlaSize = getVLASize(VAT); in getTypeSize() local295 Ty = VlaSize.Type; in getTypeSize()296 Size = Size ? Builder.CreateNUWMul(Size, VlaSize.NumElts) in getTypeSize()297 : VlaSize.NumElts; in getTypeSize()