Home
last modified time | relevance | path

Searched refs:VlaSize (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang/lib/CodeGen/
DCGDecl.cpp1353 auto VlaSize = getVLAElements1D(Type1D); in EmitAndRegisterVariableArrayDimensions() local
1354 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() local
1381 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 …]
DCodeGenFunction.cpp1803 auto VlaSize = getVLASize(vlaType); in EmitNullInitialization() local
1804 SizeVal = VlaSize.NumElts; in EmitNullInitialization()
1805 CharUnits eltSize = getContext().getTypeSizeInChars(VlaSize.Type); in EmitNullInitialization()
2008 llvm::Value *VlaSize = VLASizeMap[Vla->getSizeExpr()]; in getVLAElements1D() local
2009 assert(VlaSize && "no size for VLA!"); in getVLAElements1D()
2010 assert(VlaSize->getType() == SizeTy); in getVLAElements1D()
2011 return { VlaSize, Vla->getElementType() }; in getVLAElements1D()
DCGExprScalar.cpp2835 auto VlaSize = CGF.getVLASize(VAT); in VisitUnaryExprOrTypeTraitExpr() local
2836 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() local
3688 elementType = VlaSize.Type; in EmitSub()
3689 divisor = VlaSize.NumElts; in EmitSub()
DCGStmtOpenMP.cpp294 VlaSizePair VlaSize = getVLASize(VAT); in getTypeSize() local
295 Ty = VlaSize.Type; in getTypeSize()
296 Size = Size ? Builder.CreateNUWMul(Size, VlaSize.NumElts) in getTypeSize()
297 : VlaSize.NumElts; in getTypeSize()