Searched refs:VLA (Results 1 - 4 of 4) sorted by relevance

/external/clang/test/CodeGen/
H A D2006-01-13-StackSave.c8 int VLA[i]; local
9 external(VLA);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp11 // performs checks for declaration of VLA of undefined or zero size.
13 // of the MemRegion that represents a VLA.
55 this, "Dangerous variable-length array (VLA) declaration"));
59 os << "Declared variable-length array (VLA) ";
90 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType()); local
91 if (!VLA)
95 const Expr *SE = VLA->getSizeExpr();
159 CharUnits EleSize = Ctx.getTypeSizeInChars(VLA->getElementType());
/external/clang/lib/CodeGen/
H A DCGExpr.cpp2778 // Note that VLA pointers are always decayed, so we don't need to do
2913 // the VLA bounds.
2916 // The element count here is the total number of non-VLA elements.
2919 // Effectively, the multiply by the VLA size is part of the GEP.
3015 // Note that VLA pointers are always decayed, so we don't need to do
3135 if (auto *VLA = getContext().getAsVariableArrayType(ResultExprTy)) {
3138 // the VLA bounds.
3141 VLA->getElementType(), IsLowerBound);
3142 // The element count here is the total number of non-VLA elements.
3143 llvm::Value *NumElements = getVLASize(VLA)
[all...]
H A DCGOpenMPRuntime.cpp4271 // Get array size and emit VLA type.
4276 auto *VLA = CGF.getContext().getAsVariableArrayType(PrivTy); local
4277 auto *OVE = cast<OpaqueValueExpr>(VLA->getSizeExpr());
5583 // If we don't have any VLA types or other types that require runtime
5737 // VLA sizes are passed to the outlined region by copy and do not have map

Completed in 1207 milliseconds